mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Merge pull request #10319 from neikeq/pr-engine-editor-hint
Adds Engine::is_editor_hint() method
This commit is contained in:
commit
541fdffc0a
52 changed files with 167 additions and 114 deletions
|
@ -1164,7 +1164,7 @@ void VisualScriptPropertySet::_update_cache() {
|
|||
if (!OS::get_singleton()->get_main_loop()->cast_to<SceneTree>())
|
||||
return;
|
||||
|
||||
if (!OS::get_singleton()->get_main_loop()->cast_to<SceneTree>()->is_editor_hint()) //only update cache if editor exists, it's pointless otherwise
|
||||
if (!Engine::get_singleton()->is_editor_hint()) //only update cache if editor exists, it's pointless otherwise
|
||||
return;
|
||||
|
||||
if (call_mode == CALL_MODE_BASIC_TYPE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue