mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-30 02:10:32 +05:00
0020701: Additional fix concerned to the GetName Method changes.
This commit is contained in:
parent
729f97bad6
commit
7ca0689d93
@ -455,10 +455,12 @@ def TreatHypoStatus(status, hypName, geomName, isAlgo):
|
|||||||
return
|
return
|
||||||
hypName = '"' + hypName + '"'
|
hypName = '"' + hypName + '"'
|
||||||
geomName= '"' + geomName+ '"'
|
geomName= '"' + geomName+ '"'
|
||||||
if status < HYP_UNKNOWN_FATAL:
|
if status < HYP_UNKNOWN_FATAL and not geomName =='""':
|
||||||
print hypName, "was assigned to", geomName,"but", reason
|
print hypName, "was assigned to", geomName,"but", reason
|
||||||
else:
|
elif not geomName == '""':
|
||||||
print hypName, "was not assigned to",geomName,":", reason
|
print hypName, "was not assigned to",geomName,":", reason
|
||||||
|
else:
|
||||||
|
print hypName, "was not assigned:", reason
|
||||||
pass
|
pass
|
||||||
|
|
||||||
## Check meshing plugin availability
|
## Check meshing plugin availability
|
||||||
@ -1309,7 +1311,11 @@ class Mesh:
|
|||||||
pass
|
pass
|
||||||
status = self.mesh.AddHypothesis(geom, hyp)
|
status = self.mesh.AddHypothesis(geom, hyp)
|
||||||
isAlgo = hyp._narrow( SMESH_Algo )
|
isAlgo = hyp._narrow( SMESH_Algo )
|
||||||
TreatHypoStatus( status, GetName( hyp ), GetName( geom ), isAlgo )
|
hyp_name = GetName( hyp )
|
||||||
|
geom_name = ""
|
||||||
|
if geom:
|
||||||
|
hyp_name = GetName( geom )
|
||||||
|
TreatHypoStatus( status, hyp_name, geom_name, isAlgo )
|
||||||
return status
|
return status
|
||||||
|
|
||||||
## Unassigns a hypothesis
|
## Unassigns a hypothesis
|
||||||
|
Loading…
Reference in New Issue
Block a user