summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2023-03-04 08:48:49 +0300
committerDanil Alexeev <danil@alexeev.xyz>2023-03-04 08:48:49 +0300
commit2edf1bd76a1c74cfa28c1ff3d608bf7fc4504ea5 (patch)
treef81eab011aa3bb0bdd125521a8766ce8d6ea21c7 /editor
parent61d2c855114c824f5ca27ded0a1fa71cc7b21134 (diff)
downloadredot-engine-2edf1bd76a1c74cfa28c1ff3d608bf7fc4504ea5.tar.gz
Use nearest with mipmaps texture filter in SpriteFrames editor plugin
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/sprite_frames_editor_plugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/sprite_frames_editor_plugin.cpp b/editor/plugins/sprite_frames_editor_plugin.cpp
index 20b3cf3618..abfd083f53 100644
--- a/editor/plugins/sprite_frames_editor_plugin.cpp
+++ b/editor/plugins/sprite_frames_editor_plugin.cpp
@@ -1705,6 +1705,7 @@ SpriteFramesEditor::SpriteFramesEditor() {
frame_list = memnew(ItemList);
frame_list->set_v_size_flags(SIZE_EXPAND_FILL);
frame_list->set_icon_mode(ItemList::ICON_MODE_TOP);
+ frame_list->set_texture_filter(TEXTURE_FILTER_NEAREST_WITH_MIPMAPS);
frame_list->set_max_columns(0);
frame_list->set_icon_mode(ItemList::ICON_MODE_TOP);
@@ -1853,6 +1854,7 @@ SpriteFramesEditor::SpriteFramesEditor() {
split_sheet_preview = memnew(TextureRect);
split_sheet_preview->set_expand_mode(TextureRect::EXPAND_IGNORE_SIZE);
+ split_sheet_preview->set_texture_filter(TEXTURE_FILTER_NEAREST_WITH_MIPMAPS);
split_sheet_preview->set_mouse_filter(MOUSE_FILTER_PASS);
split_sheet_preview->connect("draw", callable_mp(this, &SpriteFramesEditor::_sheet_preview_draw));
split_sheet_preview->connect("gui_input", callable_mp(this, &SpriteFramesEditor::_sheet_preview_input));