GEOM::TPythonDump pd (aMainShape, /*append=*/true);
pd << "[" << anAsciiList.ToCString();
pd << "] = geompy.GetExistingSubObjects(";
- pd << theShape << ", " << (int)theGroupsOnly << ")";
+ pd << theShape << ", " << (bool)theGroupsOnly << ")";
SetErrorCode(OK);
// because GEOM_SubShapeDriver will build TopTools_IndexedMapOfShape
// on the main shape for each being calculated sub-shape separately.
aFunction->SetValue(aValue);
+
+ // Put this subshape in the list of subshapes of theMainShape
+ aMainShape->AddSubShapeReference(aFunction);
}
if (!anObj.IsNull()) {