Change guides when switching project

This commit is contained in:
OverloadedOrama 2020-06-05 16:21:19 +03:00
parent fc03e83377
commit 736521246d
3 changed files with 12 additions and 3 deletions

View file

@ -13,6 +13,7 @@ var type = Types.HORIZONTAL
func _ready() -> void:
width = 0.1
default_color = Global.guide_color
Global.current_project.guides.append(self)
func _input(_event : InputEvent):
@ -31,7 +32,7 @@ func _input(_event : InputEvent):
has_focus = true
Global.has_focus = false
update()
if has_focus:
if has_focus and visible:
if Input.is_action_just_pressed("left_mouse"):
previous_points = points
if Input.is_action_pressed("left_mouse"):