1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-15 18:13:15 +00:00

Compare commits

...

2 commits

Author SHA1 Message Date
Emmanouil Papadeas
9899734090 Ensure that the preview clears when switching to a different tool 2024-10-13 14:22:01 +03:00
HuanWuCode
a2e5d165cb
[skip ci] Update PerspectiveEditor.gd (#1119) 2024-10-13 14:03:52 +03:00
2 changed files with 3 additions and 2 deletions

View file

@ -374,3 +374,4 @@ func _add_polylines_segment(lines: Array, start: Vector2i, end: Vector2i) -> voi
func _exit_tree() -> void:
if is_moving:
draw_end(Global.canvas.current_pixel.floor())
Global.canvas.previews_sprite.texture = null

View file

@ -2,7 +2,7 @@ extends PanelContainer
var axes: Node2D
var do_pool := [] ## A pool that stores data of points removed by undo
var delete_pool := [] ## A pool that containing deleted data and their index
var delete_pool := [] ## A pool that contains deleted data and their index
## The vanishing point UI resource
var vanishing_point_res := preload("res://src/UI/PerspectiveEditor/VanishingPoint.tscn")
## Option to show/hide tracker guides. (guides whose end points follow the mouse)
@ -73,7 +73,7 @@ func _update_points() -> void:
# Delete old vanishing points
for c in vanishing_point_container.get_children():
c.queue_free()
# Add the "updated" vanising points from the current_project
# Add the "updated" vanishing points from the current_project
for idx in Global.current_project.vanishing_points.size():
# Create the point
var vanishing_point := vanishing_point_res.instantiate()