Few small fixes so tools=no and target=release compiles

This commit is contained in:
BastiaanOlij
2017-01-10 21:08:40 +11:00
parent 48097f6df3
commit bf990b0822
4 changed files with 13 additions and 5 deletions

View File

@@ -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
}