From aeb99256159b35ff94c9849eec833ead89d1c7d3 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Fri, 4 Feb 2022 13:54:47 +0800 Subject: [PATCH] Revert "Fix ViewportPreview upside-down in 3.x." This reverts commit 1426df66a8397f3f03aaa541399054f0487fc8a1. --- editor/plugins/viewport_preview_editor_plugin.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/editor/plugins/viewport_preview_editor_plugin.cpp b/editor/plugins/viewport_preview_editor_plugin.cpp index 866c8c825c4..4bc5906a7c8 100644 --- a/editor/plugins/viewport_preview_editor_plugin.cpp +++ b/editor/plugins/viewport_preview_editor_plugin.cpp @@ -38,8 +38,6 @@ void EditorInspectorPluginViewportPreview::parse_begin(Object *p_object) { Viewport *viewport = Object::cast_to(p_object); TexturePreview *viewport_preview = memnew(TexturePreview(viewport->get_texture(), false)); - viewport_preview->get_texture_display()->set_flip_v(true); // flip as ViewportTexture in 3.x is upside-down. - // Otherwise `viewport_preview`'s `texture_display` doesn't update properly when `viewport`'s size changes. viewport->connect("size_changed", viewport_preview->get_texture_display(), "update"); add_custom_control(viewport_preview);