mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 10:08:35 +05:00
Corrections for bug IPAL12999.
This commit is contained in:
parent
8ca4c231a8
commit
c759def283
@ -272,10 +272,7 @@ bool GEOM_Object::IsMainShape()
|
||||
Handle(GEOM_Function) GEOM_Object::AddFunction(const Standard_GUID& theGUID, int theFunctionType)
|
||||
{
|
||||
Standard_Integer nb = GetNbFunctions();
|
||||
|
||||
//if(nb == 1 && theGUID == GetSubShapeID()) return NULL; //It's impossible to add a function to sub shape
|
||||
// change by skl (+srn) for IPAL12999
|
||||
if(nb == 1 && GetFunction(1)->GetDriverGUID() == GetSubShapeID()) return NULL; //It's impossible to add a function to sub shape
|
||||
if(nb == 1 && theGUID == GetSubShapeID()) return NULL; //It's impossible to add a function to sub shape
|
||||
nb++;
|
||||
TDF_Label aChild = FUNCTION_LABEL(nb);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user