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:
parent
e527b5f48d
commit
0bb50c0d8b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user