From 0bb50c0d8b51e069c3a20010350924a3cf73b994 Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Sat, 14 Nov 2015 16:32:46 +0300 Subject: [PATCH] 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. --- latticeArrayFilter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/latticeArrayFilter.py b/latticeArrayFilter.py index f6b1bd1..eb969a9 100644 --- a/latticeArrayFilter.py +++ b/latticeArrayFilter.py @@ -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