summaryrefslogtreecommitdiffstats
path: root/scene/3d/visible_on_screen_notifier_3d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/3d/visible_on_screen_notifier_3d.cpp')
-rw-r--r--scene/3d/visible_on_screen_notifier_3d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/visible_on_screen_notifier_3d.cpp b/scene/3d/visible_on_screen_notifier_3d.cpp
index 60a0b03c0d..afddfdb749 100644
--- a/scene/3d/visible_on_screen_notifier_3d.cpp
+++ b/scene/3d/visible_on_screen_notifier_3d.cpp
@@ -128,7 +128,7 @@ void VisibleOnScreenEnabler3D::set_enable_node_path(NodePath p_path) {
return;
}
enable_node_path = p_path;
- if (is_inside_tree()) {
+ if (is_inside_tree() && !Engine::get_singleton()->is_editor_hint()) {
node_id = ObjectID();
Node *node = get_node(enable_node_path);
if (node) {