From eced93a3f57765a7c82b522314511c5e93c48971 Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Thu, 18 May 2023 21:41:34 +0200 Subject: Revert "Improve the UX of ViewportTexture in the editor" This reverts commit b91b8fce43ab9cb9f8c96f8c640acc801774b6b5. --- editor/editor_properties.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'editor') 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 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(); -- cgit v1.2.3