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
Angle presentation from NewGEOM_2.0.0. It is moved here to prepare a patch for OCCT...
[modules/shaper.git]
/
src
/
ModelAPI
/
ModelAPI_Attribute.cpp
diff --git
a/src/ModelAPI/ModelAPI_Attribute.cpp
b/src/ModelAPI/ModelAPI_Attribute.cpp
index 249353c542248d346501ff94ba5b969318307846..e7553a05da282865ec233007a0e627e3a8b4e446 100644
(file)
--- a/
src/ModelAPI/ModelAPI_Attribute.cpp
+++ b/
src/ModelAPI/ModelAPI_Attribute.cpp
@@
-30,7
+30,17
@@
bool ModelAPI_Attribute::isInitialized()
void ModelAPI_Attribute::setInitialized()
{
void ModelAPI_Attribute::setInitialized()
{
- myIsInitialized = true;
+ if (!mySetInitializedBlocked)
+ myIsInitialized = true;
+}
+
+bool ModelAPI_Attribute::blockSetInitialized(const bool theBlock)
+{
+ bool aBlocked = mySetInitializedBlocked;
+
+ mySetInitializedBlocked = theBlock;
+
+ return aBlocked;
}
void ModelAPI_Attribute::setIsArgument(const bool theFlag)
}
void ModelAPI_Attribute::setIsArgument(const bool theFlag)
@@
-62,6
+72,7
@@
const std::string& ModelAPI_Attribute::id() const
ModelAPI_Attribute::ModelAPI_Attribute()
{
ModelAPI_Attribute::ModelAPI_Attribute()
{
+ mySetInitializedBlocked = false;
myIsInitialized = false;
myIsArgument = true;
myIsImmutable = false;
myIsInitialized = false;
myIsArgument = true;
myIsImmutable = false;