Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ef8794e
)
An additional fix for the issue 2861 : Can't use a parameter created on the fly in...
author
mpv
<mpv@opencascade.com>
Wed, 13 Feb 2019 11:20:34 +0000
(14:20 +0300)
committer
mpv
<mpv@opencascade.com>
Wed, 13 Feb 2019 11:20:34 +0000
(14:20 +0300)
src/Model/Model_Document.cpp
patch
|
blob
|
history
diff --git
a/src/Model/Model_Document.cpp
b/src/Model/Model_Document.cpp
index 337161e6f40128d7d8162c04249865a0953b1c47..bf42687a936f822b91ffd9299d6f6678d5a627d7 100755
(executable)
--- a/
src/Model/Model_Document.cpp
+++ b/
src/Model/Model_Document.cpp
@@
-1026,7
+1026,8
@@
FeaturePtr Model_Document::addFeature(std::string theID, const bool theMakeCurre
}
}
// #2861: if the parameter is added, add it after parameters existing in the list
- if (aCurrent.get() && aFeature->getKind() == "Parameter") {
+ if (aCurrent.get() &&
+ (aFeature->getKind() == "Parameter" || aFeature->getKind() == "ParametersMgr")) {
int anIndex = kUNDEFINED_FEATURE_INDEX;
for(FeaturePtr aNextFeat = myObjs->nextFeature(aCurrent, anIndex);
aNextFeat.get() && aNextFeat->getKind() == "Parameter";