1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Fix shape tools indicator being reset after drawing

This commit is contained in:
Emmanouil Papadeas 2024-06-27 01:25:17 +03:00
parent 8bc5a8847c
commit b146c88a5e
3 changed files with 15 additions and 0 deletions

View file

@ -65,6 +65,11 @@ func update_config() -> void:
$ThicknessSlider.value = _thickness
## This tool has no brush, so just return the indicator as it is.
func _create_brush_indicator() -> BitMap:
return _indicator
func _get_shape_points(_size: Vector2i) -> Array[Vector2i]:
return []

View file

@ -57,6 +57,11 @@ func update_config() -> void:
$ThicknessSlider.value = _thickness
## This tool has no brush, so just return the indicator as it is.
func _create_brush_indicator() -> BitMap:
return _indicator
func _input(event: InputEvent) -> void:
if _drawing:
if event is InputEventMouseMotion:

View file

@ -50,6 +50,11 @@ func update_config() -> void:
$ThicknessSlider.value = _thickness
## This tool has no brush, so just return the indicator as it is.
func _create_brush_indicator() -> BitMap:
return _indicator
func _get_shape_points(_size: Vector2i) -> Array[Vector2i]:
return []