GUI: Refactor - removed soft dependency from freeze toggle
This commit is contained in:
committed by
Benjamin Nauck
parent
14d276b120
commit
68e7ce375b
@@ -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