Fixed a bug with the Zoom tool, removed Godot's version check from Tools.gd and updated AboutDialog, CHANGELOG and Translations

This commit is contained in:
Manolis Papadeas 2021-01-26 16:34:25 +02:00
parent eff0adbf21
commit 6edfbad663
5 changed files with 12 additions and 7 deletions

View file

@ -264,7 +264,7 @@ func centralize() -> void:
used_rect = cel_rect if used_rect.has_no_area() else used_rect.merge(cel_rect)
if used_rect.has_no_area():
return
var offset : Vector2 = (0.5 * (Global.current_project.size - used_rect.size)).floor()
general_do_centralize()
for c in Global.current_project.frames[Global.current_project.current_frame].cels:

View file

@ -40,7 +40,7 @@ signal color_changed(color, button)
var _tools = {
"RectSelect" : "res://src/Tools/RectSelect.tscn",
"Zoom" : "res://src/Tools/Pan.tscn",
"Zoom" : "res://src/Tools/Zoom.tscn",
"Pan" : "res://src/Tools/Pan.tscn",
"ColorPicker" : "res://src/Tools/ColorPicker.tscn",
"Pencil" : "res://src/Tools/Pencil.tscn",
@ -184,10 +184,9 @@ func handle_draw(position : Vector2, event : InputEvent) -> void:
_active_button = -1
if event is InputEventMouseMotion:
if Engine.get_version_info().major == 3 && Engine.get_version_info().minor >= 2:
pen_pressure = event.pressure
if Global.pressure_sensitivity_mode == Global.PressureSensitivity.NONE:
pen_pressure = 1.0
pen_pressure = event.pressure
if Global.pressure_sensitivity_mode == Global.PressureSensitivity.NONE:
pen_pressure = 1.0
if not position.is_equal_approx(_last_position):
_last_position = position

View file

@ -106,6 +106,7 @@ func create_donors() -> void:
donors.create_item(donors_root).set_text(0, " MysteryStudio")
donors.create_item(donors_root).set_text(0, " Daniel Gagnon")
donors.create_item(donors_root).set_text(0, " Ryan C. Gordon (icculus)")
donors.create_item(donors_root).set_text(0, " Benedikt")
func create_contributors() -> void:
@ -139,6 +140,7 @@ func create_contributors() -> void:
contributors.create_item(contributor_root).set_text(0, " Vriska Weaver (henlo-birb)")
contributors.create_item(contributor_root).set_text(0, " Rémi Verschelde (akien-mga)")
contributors.create_item(contributor_root).set_text(0, " gschwind")
contributors.create_item(contributor_root).set_text(0, " Variable-ind")
func create_translators() -> void: