summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2023-05-18 21:41:34 +0200
committerYuri Sizov <yuris@humnom.net>2023-05-18 21:46:40 +0200
commiteced93a3f57765a7c82b522314511c5e93c48971 (patch)
tree73f27b56af342907ccf267b798cb7b94af848586 /editor
parent589306a9d81c8d63c86269c53990c52fb6d1b503 (diff)
Revert "Improve the UX of ViewportTexture in the editor"
This reverts commit b91b8fce43ab9cb9f8c96f8c640acc801774b6b5.
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_properties.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp
index 348e1ead4a..01a574def6 100644
--- a/editor/editor_properties.cpp
+++ b/editor/editor_properties.cpp
@@ -3998,6 +3998,7 @@ void EditorPropertyResource::_viewport_selected(const NodePath &p_path) {
Ref<ViewportTexture> vt;
vt.instantiate();
vt->set_viewport_path_in_scene(get_tree()->get_edited_scene_root()->get_path_to(to_node));
+ vt->setup_local_to_scene();
emit_changed(get_edited_property(), vt);
update_property();