mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-03 23:21:15 +00:00 
			
		
		
		
	Use nearest with mipmaps texture filter in SpriteFrames editor plugin
This commit is contained in:
		
							parent
							
								
									61d2c85511
								
							
						
					
					
						commit
						2edf1bd76a
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -1705,6 +1705,7 @@ SpriteFramesEditor::SpriteFramesEditor() {
 | 
				
			||||||
	frame_list = memnew(ItemList);
 | 
						frame_list = memnew(ItemList);
 | 
				
			||||||
	frame_list->set_v_size_flags(SIZE_EXPAND_FILL);
 | 
						frame_list->set_v_size_flags(SIZE_EXPAND_FILL);
 | 
				
			||||||
	frame_list->set_icon_mode(ItemList::ICON_MODE_TOP);
 | 
						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_max_columns(0);
 | 
				
			||||||
	frame_list->set_icon_mode(ItemList::ICON_MODE_TOP);
 | 
						frame_list->set_icon_mode(ItemList::ICON_MODE_TOP);
 | 
				
			||||||
| 
						 | 
					@ -1853,6 +1854,7 @@ SpriteFramesEditor::SpriteFramesEditor() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	split_sheet_preview = memnew(TextureRect);
 | 
						split_sheet_preview = memnew(TextureRect);
 | 
				
			||||||
	split_sheet_preview->set_expand_mode(TextureRect::EXPAND_IGNORE_SIZE);
 | 
						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->set_mouse_filter(MOUSE_FILTER_PASS);
 | 
				
			||||||
	split_sheet_preview->connect("draw", callable_mp(this, &SpriteFramesEditor::_sheet_preview_draw));
 | 
						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));
 | 
						split_sheet_preview->connect("gui_input", callable_mp(this, &SpriteFramesEditor::_sheet_preview_input));
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue