ExplodeArray: fix fail to explode a non-lattice

Should do that after displaying a warning. It didn't display the warning
because of a syntax error.
This commit is contained in:
DeepSOIC 2015-11-14 16:32:46 +03:00
parent e527b5f48d
commit 0bb50c0d8b

View File

@ -320,7 +320,7 @@ class _CommandExplodeArray:
try:
obj = FreeCADGui.Selection.getSelection()[0]
if not latticeBaseFeature.isObjectLattice(obj):
latticeExecuter.warning("ExplodeArray expects a lattice object; a generic shape was provided instead. Results may be unexpected.")
latticeExecuter.warning(None,"ExplodeArray expects a lattice object; a generic shape was provided instead. Results may be unexpected.")
sh = obj.Shape
n_elem = len(LCE.AllLeaves(sh))
latticeExecuter.globalIsCreatingLatticeFeature = False