App: fix property status restore

This commit is contained in:
Zheng, Lei
2021-12-21 21:41:02 -07:00
committed by Chris Hennes
parent 0029f3206d
commit d0b7bf1669
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -257,6 +257,7 @@ void Property::setStatusValue(unsigned long status) {
|(1<<PropTransient)
|(1<<PropOutput)
|(1<<PropHidden)
|(1<<PropNoPersist)
|(1<<Busy);
status &= ~mask;
+1 -1
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);