GUI: Refactor - removed soft dependency from freeze toggle
This commit is contained in:
committed by
Benjamin Nauck
parent
6c7ffe87e3
commit
7a5487670c
@@ -186,14 +186,8 @@ void StdCmdToggleFreeze::activated(int iMsg)
|
||||
obj->unfreeze();
|
||||
for (auto child : obj->getInListRecursive())
|
||||
child->unfreeze();
|
||||
if (obj->isDerivedFrom(Base::Type::fromName("PartDesign::Body"))) {
|
||||
for (auto child : obj->getOutListRecursive())
|
||||
child->unfreeze();
|
||||
}
|
||||
else {
|
||||
for (auto child : obj->getOutList())
|
||||
child->unfreeze();
|
||||
}
|
||||
for (auto child : obj->getOutListRecursive())
|
||||
child->unfreeze();
|
||||
} else {
|
||||
obj->freeze();
|
||||
for (auto parent : obj->getOutListRecursive())
|
||||
|
||||
Reference in New Issue
Block a user