0021526: EDF 1855 SMESH: Regression in the Radial Quadrangle hypothesis

fix algoCreator.__call__()
This commit is contained in:
eap 2012-03-21 10:22:32 +00:00
parent b0b291e152
commit 5ea2cc6434

View File

@ -4326,7 +4326,7 @@ class algoCreator:
# creates an instance of algorithm # creates an instance of algorithm
def __call__(self,algo="",geom=0,*args): def __call__(self,algo="",geom=0,*args):
algoType = self.defaultAlgoType algoType = self.defaultAlgoType
for arg in args + (algo,): for arg in args + (algo,geom):
if isinstance( arg, geompyDC.GEOM._objref_GEOM_Object ): if isinstance( arg, geompyDC.GEOM._objref_GEOM_Object ):
geom = arg geom = arg
if isinstance( arg, str ) and arg: if isinstance( arg, str ) and arg: