mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-15 01:22:37 -07:00
Fix of #1645
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user