mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 07:29:49 +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
|
$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]:
|
func _get_shape_points(_size: Vector2i) -> Array[Vector2i]:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,11 @@ func update_config() -> void:
|
||||||
$ThicknessSlider.value = _thickness
|
$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:
|
func _input(event: InputEvent) -> void:
|
||||||
if _drawing:
|
if _drawing:
|
||||||
if event is InputEventMouseMotion:
|
if event is InputEventMouseMotion:
|
||||||
|
|
|
@ -50,6 +50,11 @@ func update_config() -> void:
|
||||||
$ThicknessSlider.value = _thickness
|
$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]:
|
func _get_shape_points(_size: Vector2i) -> Array[Vector2i]:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue