mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-25 08:50:36 +05:00
tracker_salome #16492 EDF 18458 - Restoregivensubshapes
This commit is contained in:
parent
fa02ef2a4f
commit
2f5ed2c56a
@ -1642,7 +1642,8 @@ GEOM::ListOfGO* GEOM_Gen_i::RestoreGivenSubShapes(GEOM::GEOM_Object_ptr theObj
|
||||
|
||||
// Get all arguments
|
||||
GEOM::ListOfGBO_var anOpArgsList = theObject->GetDependency();
|
||||
Standard_Integer nbArgsActual = anOpArgsList->length();
|
||||
Standard_Integer nbOpArgs = anOpArgsList->length();
|
||||
Standard_Integer nbArgsActual = nbOpArgs;
|
||||
|
||||
// If anOpArgsList list is empty, nothing to do
|
||||
if (nbArgsActual == 0)
|
||||
@ -1674,7 +1675,7 @@ GEOM::ListOfGO* GEOM_Gen_i::RestoreGivenSubShapes(GEOM::GEOM_Object_ptr theObj
|
||||
if (nbArgsActual < 1)
|
||||
return aParts._retn();
|
||||
|
||||
if (theInheritFirstArg || (nbArgsActual == 1)) {
|
||||
if (theInheritFirstArg || (nbOpArgs == 1)) {
|
||||
// Do not publish argument's reflection,
|
||||
// but only reconstruct its published sub-shapes
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user