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

[skip ci] Update PerspectiveEditor.gd (#1119)

This commit is contained in:
HuanWuCode 2024-10-13 04:03:52 -07:00 committed by GitHub
parent 084bdcccb1
commit a2e5d165cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,7 +2,7 @@ extends PanelContainer
var axes: Node2D var axes: Node2D
var do_pool := [] ## A pool that stores data of points removed by undo 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 ## The vanishing point UI resource
var vanishing_point_res := preload("res://src/UI/PerspectiveEditor/VanishingPoint.tscn") var vanishing_point_res := preload("res://src/UI/PerspectiveEditor/VanishingPoint.tscn")
## Option to show/hide tracker guides. (guides whose end points follow the mouse) ## 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 # Delete old vanishing points
for c in vanishing_point_container.get_children(): for c in vanishing_point_container.get_children():
c.queue_free() 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(): for idx in Global.current_project.vanishing_points.size():
# Create the point # Create the point
var vanishing_point := vanishing_point_res.instantiate() var vanishing_point := vanishing_point_res.instantiate()