1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-30 23:19:49 +00:00

Fix dimension label showing fractions in the final image size in the export dialog

This commit is contained in:
Emmanouil Papadeas 2024-04-13 20:48:56 +03:00
parent 29f241a607
commit fe9eb4a5e1
2 changed files with 2 additions and 0 deletions

View file

@ -43,6 +43,7 @@ Built using Godot 3.5.2
- Fixed issue where the override.cfg file would be created at the wrong location, if Pixelorama is launched through a shortcut. [0c6566de761a683a0e8a781131024a1dedb9734f](https://github.com/Orama-Interactive/Pixelorama/commit/0c6566de761a683a0e8a781131024a1dedb9734f)
- The gizmo in the rotation image effect dialog is now accurately following the mouse.
- Fixed the size label not being updated on the Export dialog's spritesheet tab when the direction changes. [9a5eb9720d2328f914f8efc3b9aa605dadca99b0](https://github.com/Orama-Interactive/Pixelorama/commit/9a5eb9720d2328f914f8efc3b9aa605dadca99b0)
- The "Export dimensions" label in the export dialog no longer shows fractions as the final image's size.
## [v0.11.3] - 2023-10-30
This update has been brought to you by the contributions of:

View file

@ -226,6 +226,7 @@ func create_layer_list() -> void:
func update_dimensions_label() -> void:
if Export.processed_images.size() > 0:
var new_size: Vector2 = Export.processed_images[0].get_size() * (Export.resize / 100.0)
new_size = new_size.floor()
dimension_label.text = str(new_size.x, "×", new_size.y)