Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
PropertyContainer: skip saving trasient dynamic property
  • Loading branch information
realthunder authored and wwmayer committed Aug 17, 2019
1 parent ce30645 commit 3fcb3e6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/App/PropertyContainer.cpp
Expand Up @@ -267,8 +267,17 @@ void PropertyContainer::Save (Base::Writer &writer) const
auto status = it->second->getStatus();
if(status)
writer.Stream() << "\" status=\"" << status;
writer.Stream() << "\">" << std::endl;
writer.Stream() << "\">";

if(it->second->testStatus(Property::Transient)
|| it->second->getType() & Prop_Transient)
{
writer.Stream() << "</Property>" << std::endl;
continue;
}

writer.Stream() << std::endl;

writer.incInd(); // indentation for the actual property

try {
Expand Down

0 comments on commit 3fcb3e6

Please sign in to comment.