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:
parent
8bc5a8847c
commit
b146c88a5e
|
@ -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 []
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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 []
|
||||
|
||||
|
|
Loading…
Reference in a new issue