mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 02:00:34 +05:00
Allow smeshBuilder.New(salome.myStudy) but print a warning
This commit is contained in:
parent
7e7ad126e7
commit
ed26bf4db7
@ -1416,7 +1416,6 @@ def New( instance=None, instanceGeom=None):
|
|||||||
smesh = smeshBuilder.New()
|
smesh = smeshBuilder.New()
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
study: SALOME study, generally obtained by salome.myStudy.
|
|
||||||
instance: CORBA proxy of SMESH Engine. If None, the default Engine is used.
|
instance: CORBA proxy of SMESH Engine. If None, the default Engine is used.
|
||||||
instanceGeom: CORBA proxy of GEOM Engine. If None, the default Engine is used.
|
instanceGeom: CORBA proxy of GEOM Engine. If None, the default Engine is used.
|
||||||
Returns:
|
Returns:
|
||||||
@ -1425,6 +1424,10 @@ def New( instance=None, instanceGeom=None):
|
|||||||
global engine
|
global engine
|
||||||
global smeshInst
|
global smeshInst
|
||||||
global doLcc
|
global doLcc
|
||||||
|
if instance and isinstance( instance, SALOMEDS._objref_Study ):
|
||||||
|
import sys
|
||||||
|
sys.stderr.write("Warning: 'study' argument is no more needed in smeshBuilder.New(). Consider updating your script!!!\n\n")
|
||||||
|
instance = None
|
||||||
engine = instance
|
engine = instance
|
||||||
if engine is None:
|
if engine is None:
|
||||||
doLcc = True
|
doLcc = True
|
||||||
|
Loading…
Reference in New Issue
Block a user