Skip to content
Snippets Groups Projects
Commit 99f238bb authored by Ansgar Philippsen's avatar Ansgar Philippsen
Browse files

fixed XCS Editor update in buffered mode; added ForceUpdate just in case

parent aa1b5d11
No related branches found
No related tags found
No related merge requests found
......@@ -266,7 +266,9 @@ void export_Editors()
.def("SetTransform", set_transform1)
.def("SetTransform", set_transform2)
.def("UpdateICS", &XCSEditor::UpdateICS)
.def("__exit__", &XCSEditor::UpdateICS)
.def("ForceUpdate", &XCSEditor::ForceUpdate)
.def("__exit__", &XCSEditor::ForceUpdate)
.def("__del__", &XCSEditor::ForceUpdate)
;
class_<ICSEditor, bases<EditorBase> >("ICSEditor", no_init)
......
......@@ -218,6 +218,12 @@ void XCSEditor::Update()
}
}
void XCSEditor::ForceUpdate()
{
ent_.Impl()->UpdateICSIfNeeded();
ent_.Impl()->UpdateOrganizerIfNeeded();
}
void XCSEditor::UpdateICS()
{
ent_.Impl()->UpdateICSIfNeeded();
......
......@@ -110,6 +110,10 @@ public:
/// \brief immediately update internal coordinate system
void UpdateICS();
/// \brief force spatial organizer and ics update
/// workaround for delayed dtor call from Python garbage collection
void ForceUpdate();
protected:
XCSEditor(const EntityHandle& ent, EditMode mode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment