This commit is contained in:
Enrico Turri committed 2019-01-14 14:42:21 +01:00
1 parent 01dc8e77ac
commit 6094512f8f
2 files changed
+12 -3

No files matched your search

+2 -1
View File
@@ -760,7 +760,8 @@ Sidebar& GUI_App::sidebar()
ObjectManipulation* GUI_App::obj_manipul()
{
return sidebar().obj_manipul();
// If this method is called before plater_ has been initialized, return nullptr (to avoid a crash)
return (plater_ != nullptr) ? sidebar().obj_manipul() : nullptr;
}
ObjectSettings* GUI_App::obj_settings()