Fix typos and some whitespace
`codespell -q 3 -L ang,typ,vals,vertexes`
This commit is contained in:
parent
39031ce730
commit
bf8b2f2c5e
|
@ -174,7 +174,7 @@ def _getMetacontainerChildren(container, isrightcontainer_func):
|
|||
|
||||
def isAContainer(obj):
|
||||
'''isAContainer(obj): returns True if obj is an object container, such as
|
||||
Group, Part, Body. The important characterisic of an object being a
|
||||
Group, Part, Body. The important characteristic of an object being a
|
||||
container is that it can be activated to receive new objects. Documents
|
||||
are considered containers, too.'''
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ class LatticeFeature(object):
|
|||
# Auto-On an Auto-Off can be modified when recomputing. Force values are going to stay.
|
||||
|
||||
prop = "ExposePlacement"
|
||||
obj.addProperty("App::PropertyBool",prop,"Lattice","Makes the placement synchronized to Placement property. This will oftem make this object unmoveable. Not applicable to arrays.")
|
||||
obj.addProperty("App::PropertyBool",prop,"Lattice","Makes the placement synchronized to Placement property. This will oftem make this object unmovable. Not applicable to arrays.")
|
||||
|
||||
self.derivedInit(obj)
|
||||
|
||||
|
@ -375,4 +375,3 @@ def splitSelection(sel):
|
|||
else:
|
||||
shapes.append(selobj)
|
||||
return (lattices, shapes)
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ class _BoundBox:
|
|||
obj.CompoundTraversal = ["Use as a whole","Direct children only","Recursive"]
|
||||
obj.CompoundTraversal = "Use as a whole"
|
||||
|
||||
obj.addProperty("App::PropertyBool","Precision","BoundBox","Use precise alorithm (slower).")
|
||||
obj.addProperty("App::PropertyBool","Precision","BoundBox","Use precise algorithm (slower).")
|
||||
obj.Precision = True
|
||||
|
||||
obj.addProperty("App::PropertyEnumeration","OrientMode","BoundBox","Choose the orientation of bounding boxes to be made.")
|
||||
|
|
|
@ -315,7 +315,7 @@ class _CommandLatticePopulateChildren_Move:
|
|||
infoMessage("Move children",
|
||||
"Moved Children command. Creates a compound from another compound, by moving its children.\n\n"+
|
||||
"Each child is moved from one placement to another placement. Please select a compound, then a placement/array to move from, and an array of placements to move to (order matters).\n"+
|
||||
"An array of placements can be used insead of a compound.")
|
||||
"An array of placements can be used instead of a compound.")
|
||||
return
|
||||
cmdPopulate_shapes_FromTo()
|
||||
except Exception as err:
|
||||
|
@ -350,4 +350,3 @@ if FreeCAD.GuiUp:
|
|||
exportedCommands = ['Lattice2_PopulateChildrenGroupCommand']
|
||||
|
||||
# -------------------------- /Gui command --------------------------------------------------
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ class ValueSeriesGenerator:
|
|||
|
||||
# first, try to guess interface version. If we are re-adding properties to old feature,
|
||||
# it already has some other properties, but not Version. So we should default to 0
|
||||
# in this case. Therwise the Version property already exists, so default desn't matter;
|
||||
# in this case. Otherwise the Version property already exists, so default doesn't matter;
|
||||
# or we are creating a new generator, so default to 1.
|
||||
self._addProperty("App::PropertyInteger" ,"VSGVersion" , 0 if hasattr(self.documentObject, "Values") else 1 , groupname_gen, "Interface version")
|
||||
self.documentObject.setEditorMode("VSGVersion", 2) #hide this property
|
||||
|
@ -268,4 +268,3 @@ class ValueSeriesGenerator:
|
|||
# finally. Fill in the values.
|
||||
if obj.ValuesSource != "Values Property":
|
||||
obj.Values = [str(v) for v in values]
|
||||
|
Loading…
Reference in New Issue
Block a user