Skip to content

Commit

Permalink
[GRM] Deactivate (global) auto update XML schema loading
Browse files Browse the repository at this point in the history
  • Loading branch information
IngoMeyer441 committed Jul 21, 2024
1 parent ac172ba commit 5307cd3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/grm/src/grm/plot.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -6566,6 +6566,10 @@ std::shared_ptr<GRM::Document> grm_load_graphics_tree_schema(bool with_private_a
return nullptr;
}

bool auto_update;
global_render->getAutoUpdate(&auto_update);
global_render->setAutoUpdate(false);

std::shared_ptr<GRM::Document> private_schema_document;
XMLSize_t errorCount = 0;
if (with_private_attributes)
Expand Down Expand Up @@ -6636,6 +6640,8 @@ std::shared_ptr<GRM::Document> grm_load_graphics_tree_schema(bool with_private_a

XMLPlatformUtils::Terminate();

global_render->setAutoUpdate(auto_update);

return (errorCount == 0) ? schema_document : nullptr;
}
#endif
Expand Down

0 comments on commit 5307cd3

Please sign in to comment.