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
Recalculate DoF when removing feature without constraints (issue #1456)
[modules/shaper.git]
/
src
/
Model
/
Model_AttributeSelection.cpp
diff --git
a/src/Model/Model_AttributeSelection.cpp
b/src/Model/Model_AttributeSelection.cpp
index 25f5d35339a28c04cd3e9a44af6e16c93b604f4f..be028e276f5cab1909cd0c0bdd9840588e7e1a4f 100644
(file)
--- a/
src/Model/Model_AttributeSelection.cpp
+++ b/
src/Model/Model_AttributeSelection.cpp
@@
-181,11
+181,16
@@
void Model_AttributeSelection::setValue(const ResultPtr& theContext,
std::shared_ptr<GeomAPI_Shape> Model_AttributeSelection::value()
{
std::shared_ptr<GeomAPI_Shape> Model_AttributeSelection::value()
{
+ GeomShapePtr aResult;
if (myTmpContext.get() || myTmpSubShape.get()) {
if (myTmpContext.get() || myTmpSubShape.get()) {
+ ResultConstructionPtr aResulConstruction = std::dynamic_pointer_cast<ModelAPI_ResultConstruction>(myTmpContext);
+ if(aResulConstruction.get()) {
+ // it is just reference to construction.
+ return myTmpSubShape;
+ }
return myTmpSubShape.get() ? myTmpSubShape : myTmpContext->shape();
}
return myTmpSubShape.get() ? myTmpSubShape : myTmpContext->shape();
}
- std::shared_ptr<GeomAPI_Shape> aResult;
TDF_Label aSelLab = selectionLabel();
if (aSelLab.IsAttribute(kINVALID_SELECTION))
return aResult;
TDF_Label aSelLab = selectionLabel();
if (aSelLab.IsAttribute(kINVALID_SELECTION))
return aResult;