folder_features="ParametersMgr"/>
<folder name="Constructions" group_type="Construction" icon=":pictures/constr_folder.png"/>
<folder name="Groups" group_type="Groups" icon=":pictures/constr_folder.png" show_empty="false"/>
- <folder name="Bodies" group_type="Bodies" icon=":pictures/constr_folder.png"/>
+ <folder name="Results" group_type="Bodies" icon=":pictures/constr_folder.png"/>
</sub_document>
</data_model>
\ No newline at end of file
std::list<ResultPtr>::const_iterator aIt;
for (aIt = aResList.cbegin(); aIt != aResList.cend(); ++aIt) {
aResult = (*aIt);
+ aSelectedPrs.append(std::shared_ptr<ModuleBase_ViewerPrs>(
+ new ModuleBase_ViewerPrs(aResult, GeomShapePtr(), NULL)));
aCompSolid = std::dynamic_pointer_cast<ModelAPI_ResultCompSolid>(aResult);
if (aCompSolid.get()) {
for (int i = 0; i < aCompSolid->numberOfSubs(); i++) {
+ ResultBodyPtr aResult = aCompSolid->subResult(i);
aSelectedPrs.append(std::shared_ptr<ModuleBase_ViewerPrs>(
- new ModuleBase_ViewerPrs(aCompSolid->subResult(i), GeomShapePtr(), NULL)));
+ new ModuleBase_ViewerPrs(aResult, aResult->shape(), NULL)));
}
- } else {
- aSelectedPrs.append(std::shared_ptr<ModuleBase_ViewerPrs>(
- new ModuleBase_ViewerPrs(aResult, GeomShapePtr(), NULL)));
}
}
}