Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for the issue #1766 : treat face as equal with different orientation to find...
[modules/shaper.git]
/
src
/
BuildPlugin
/
BuildPlugin_SubShapes.cpp
diff --git
a/src/BuildPlugin/BuildPlugin_SubShapes.cpp
b/src/BuildPlugin/BuildPlugin_SubShapes.cpp
index 000fb19e34cb48c77d0abdb621c4ee4416f3ae9e..ebbe753ba399013a53324d0db56337176fe8d58c 100644
(file)
--- a/
src/BuildPlugin/BuildPlugin_SubShapes.cpp
+++ b/
src/BuildPlugin/BuildPlugin_SubShapes.cpp
@@
-42,10
+42,11
@@
void BuildPlugin_SubShapes::attributeChanged(const std::string& theID)
if(!aShapeAttrSelection.get() || !aSubShapesAttrList.get()) {
return;
}
if(!aShapeAttrSelection.get() || !aSubShapesAttrList.get()) {
return;
}
- ResultPtr aContext = aShapeAttrSelection->context();
aSubShapesAttrList->clear();
aSubShapesAttrList->clear();
+ ResultPtr aContext = aShapeAttrSelection->context();
+
GeomShapePtr aBaseShape = aShapeAttrSelection->value();
if(!aBaseShape.get()) {
return;
GeomShapePtr aBaseShape = aShapeAttrSelection->value();
if(!aBaseShape.get()) {
return;
@@
-103,7
+104,7
@@
void BuildPlugin_SubShapes::execute()
// Copy sub-shapes from list to new shape.
if(!aShapesToAdd.empty()) {
// Copy sub-shapes from list to new shape.
if(!aShapesToAdd.empty()) {
- aBuilder.add(aResultShape, aShapesToAdd);
+ aBuilder.add
Internal
(aResultShape, aShapesToAdd);
aResultShape = aBuilder.shape();
}
aResultShape = aBuilder.shape();
}