Few small fixes so tools=no and target=release compiles
This commit is contained in:
@@ -1695,12 +1695,16 @@ void BakedLight::create_debug_mesh(DebugMode p_mode) {
|
||||
MultiMeshInstance *mmi = memnew( MultiMeshInstance );
|
||||
mmi->set_multimesh(mm);
|
||||
add_child(mmi);
|
||||
#ifdef TOOLS_ENABLED
|
||||
if (get_tree()->get_edited_scene_root()==this){
|
||||
mmi->set_owner(this);
|
||||
} else {
|
||||
mmi->set_owner(get_owner());
|
||||
|
||||
}
|
||||
#else
|
||||
mmi->set_owner(get_owner());
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user