diff options
author | kobewi <kobewi4e@gmail.com> | 2022-06-05 18:24:05 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-06-05 18:24:05 +0200 |
commit | 6ac85ccc3d78cb516c057f818296ccc5acacfdfd (patch) | |
tree | 546a26590928d13878aec29542994ede53f59f35 | |
parent | 3279fc7747b46da6a19a5bc15e3a51cdf68249e7 (diff) |
Enable nearest filtering in shrunk 3D viewport
-rw-r--r-- | editor/plugins/node_3d_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index 06ad0f8918..c2c5b63917 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -414,6 +414,7 @@ void Node3DEditorViewport::cancel_transform() { void Node3DEditorViewport::_update_shrink() { bool shrink = view_menu->get_popup()->is_item_checked(view_menu->get_popup()->get_item_index(VIEW_HALF_RESOLUTION)); subviewport_container->set_stretch_shrink(shrink ? 2 : 1); + subviewport_container->set_texture_filter(shrink ? TEXTURE_FILTER_NEAREST : TEXTURE_FILTER_PARENT_NODE); } float Node3DEditorViewport::get_znear() const { |