App: fix property status restore

This commit is contained in:
Zheng, Lei
2020-04-24 16:04:03 +08:00
committed by Chris Hennes
parent 0029f3206d
commit d0b7bf1669
2 changed files with 2 additions and 1 deletions

View File

@@ -257,6 +257,7 @@ void Property::setStatusValue(unsigned long status) {
|(1<<PropTransient)
|(1<<PropOutput)
|(1<<PropHidden)
|(1<<PropNoPersist)
|(1<<Busy);
status &= ~mask;

View File

@@ -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);