Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code
This commit is contained in:
commit
84d579186c
|
@ -176,7 +176,7 @@ def makeWindowPreset(windowtype,width,height,h1,h2,h3,w1,w2,o1,o2,placement=None
|
|||
|
||||
if windowtype == "Fixed":
|
||||
wp = outerFrame(s,width,height,h1,w1,o1)
|
||||
wp.extend(["Glass","Glass panel","Wire1",str(w1/gla),str(w1/2)])
|
||||
wp.extend(["Glass","Glass panel","Wire1",str(w1/gla),str(w1+w1/2)])
|
||||
|
||||
elif windowtype == "Open 1-pane":
|
||||
wp = outerFrame(s,width,height,h1,w1,o1)
|
||||
|
@ -811,6 +811,10 @@ class _ViewProviderWindow(ArchComponent.ViewProviderComponent):
|
|||
|
||||
def colorize(self,obj):
|
||||
"setting different part colors"
|
||||
if hasattr(obj,"CloneOf"):
|
||||
if obj.CloneOf:
|
||||
obj.ViewObject.DiffuseColor = obj.CloneOf.ViewObject.DiffuseColor
|
||||
return
|
||||
solids = obj.Shape.copy().Solids
|
||||
#print "Colorizing ", solids
|
||||
colors = []
|
||||
|
|
|
@ -597,7 +597,14 @@ def getMovableChildren(objectslist,recursive=False):
|
|||
for child in children:
|
||||
if hasattr(child,"MoveWithHost"):
|
||||
if child.MoveWithHost:
|
||||
added.append(child)
|
||||
if hasattr(obj,"CloneOf"):
|
||||
if obj.CloneOf:
|
||||
if obj.CloneOf.Name != child.Name:
|
||||
added.append(child)
|
||||
else:
|
||||
added.append(child)
|
||||
else:
|
||||
added.append(child)
|
||||
if recursive:
|
||||
added.extend(getMovableChildren(children))
|
||||
return added
|
||||
|
|
|
@ -2622,7 +2622,7 @@ class Downgrade(Modifier):
|
|||
return {'Pixmap' : 'Draft_Downgrade',
|
||||
'Accel' : "D, N",
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("Draft_Downgrade", "Downgrade"),
|
||||
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Draft_Downgrade", "Explodes the selected objects into simpler objects, or subtract faces")}
|
||||
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Draft_Downgrade", "Explodes the selected objects into simpler objects, or subtracts faces")}
|
||||
|
||||
def Activated(self):
|
||||
Modifier.Activated(self,"Downgrade")
|
||||
|
|
Loading…
Reference in New Issue
Block a user