mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-05-05 12:14:49 -04:00
Remove filter from PreviewDialog's TextureRect
This commit is contained in:
parent
5932f83831
commit
cab057b73c
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ onready var new_brush_name = $VBoxContainer/HBoxContainer/NewBrushOptions/BrushN
|
||||||
|
|
||||||
func _on_PreviewDialog_about_to_show() -> void:
|
func _on_PreviewDialog_about_to_show() -> void:
|
||||||
var img_texture := ImageTexture.new()
|
var img_texture := ImageTexture.new()
|
||||||
img_texture.create_from_image(image)
|
img_texture.create_from_image(image, 0)
|
||||||
texture_rect.texture = img_texture
|
texture_rect.texture = img_texture
|
||||||
spritesheet_options.get_node("HorizontalFrames").max_value = min(spritesheet_options.get_node("HorizontalFrames").max_value, image.get_size().x)
|
spritesheet_options.get_node("HorizontalFrames").max_value = min(spritesheet_options.get_node("HorizontalFrames").max_value, image.get_size().x)
|
||||||
spritesheet_options.get_node("VerticalFrames").max_value = min(spritesheet_options.get_node("VerticalFrames").max_value, image.get_size().y)
|
spritesheet_options.get_node("VerticalFrames").max_value = min(spritesheet_options.get_node("VerticalFrames").max_value, image.get_size().y)
|
||||||
|
|
Loading…
Add table
Reference in a new issue