mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
Remove filter from PreviewDialog's TextureRect
This commit is contained in:
parent
5932f83831
commit
cab057b73c
|
@ -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…
Reference in a new issue