App: fix property status restore
This commit is contained in:
@@ -257,6 +257,7 @@ void Property::setStatusValue(unsigned long status) {
|
||||
|(1<<PropTransient)
|
||||
|(1<<PropOutput)
|
||||
|(1<<PropHidden)
|
||||
|(1<<PropNoPersist)
|
||||
|(1<<Busy);
|
||||
|
||||
status &= ~mask;
|
||||
|
||||
@@ -358,7 +358,7 @@ void PropertyContainer::Restore(Base::XMLReader &reader)
|
||||
if (!prop->testStatus(Property::Transient)
|
||||
&& !status.test(Property::Transient)
|
||||
&& !status.test(Property::PropTransient)
|
||||
&& !(getPropertyType(prop) & Prop_Transient))
|
||||
&& !prop->testStatus(Property::PropTransient))
|
||||
{
|
||||
FC_TRACE("restore property '" << prop->getName() << "'");
|
||||
prop->Restore(reader);
|
||||
|
||||
Reference in New Issue
Block a user