1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #10319 from neikeq/pr-engine-editor-hint

Adds Engine::is_editor_hint() method
This commit is contained in:
Juan Linietsky
2017-08-20 12:55:46 -03:00
committed by GitHub
52 changed files with 167 additions and 114 deletions

View File

@@ -2905,7 +2905,7 @@ Object *SpatialEditor::_get_editor_data(Object *p_what) {
si->sbox_instance = VisualServer::get_singleton()->instance_create2(selection_box->get_rid(), sp->get_world()->get_scenario());
VS::get_singleton()->instance_geometry_set_cast_shadows_setting(si->sbox_instance, VS::SHADOW_CASTING_SETTING_OFF);
if (get_tree()->is_editor_hint())
if (Engine::get_singleton()->is_editor_hint())
editor->call("edit_node", sp);
return si;