From b5e6e35c1d268e1e1f7166603b9677e073ed6a4a Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Wed, 23 Dec 2015 14:39:43 +0300 Subject: [PATCH] CompoundFilter: fix no warning when applying to arrays --- CompoundFilter2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CompoundFilter2.py b/CompoundFilter2.py index a7cf0cd..db49508 100644 --- a/CompoundFilter2.py +++ b/CompoundFilter2.py @@ -31,10 +31,10 @@ __url__ = "" try: - from lattice2BaseFeature import isObjectLattice2 + from lattice2BaseFeature import isObjectLattice except Exception: # I want to keep the module easy to strip off Lattice2 wb, so: - def isObjectLattice2(obj): + def isObjectLattice(obj): return False # -------------------------- common stuff -------------------------------------------------- @@ -77,9 +77,9 @@ class _CompoundFilter: def execute(self,obj): #validity check - if isObjectLattice2(obj.Base): + if isObjectLattice(obj.Base): import lattice2Executer - lattice2Executer.warning(obj,"A generic shape is expected, but a lattice2 object was supplied. It will be treated as a generic shape.") + lattice2Executer.warning(obj,"A generic shape is expected, but an array of placements was supplied. It will be treated as a generic shape.") rst = [] #variable to receive the final list of shapes shps = obj.Base.Shape.childShapes()