mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-30 21:21:10 +00:00 
			
		
		
		
	Make texture preview and picker use mipmap filter
This commit is contained in:
		
							parent
							
								
									72b845b287
								
							
						
					
					
						commit
						4bddec7003
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		|  | @ -29,7 +29,6 @@ | |||
| /*************************************************************************/ | ||||
| 
 | ||||
| #include "texture_editor_plugin.h" | ||||
| 
 | ||||
| #include "editor/editor_scale.h" | ||||
| 
 | ||||
| TextureRect *TexturePreview::get_texture_display() { | ||||
|  | @ -123,6 +122,7 @@ TexturePreview::TexturePreview(Ref<Texture2D> p_texture, bool p_show_metadata) { | |||
| 	add_child(checkerboard); | ||||
| 
 | ||||
| 	texture_display = memnew(TextureRect); | ||||
| 	texture_display->set_texture_filter(TEXTURE_FILTER_NEAREST_WITH_MIPMAPS); | ||||
| 	texture_display->set_texture(p_texture); | ||||
| 	texture_display->set_anchors_preset(TextureRect::PRESET_FULL_RECT); | ||||
| 	texture_display->set_stretch_mode(TextureRect::STRETCH_KEEP_ASPECT_CENTERED); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 MrBlockers
						MrBlockers