mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 15:54:44 -04:00
Implemented locking/unlocking layers
When a layer is locked, no changes can be made to it.
This commit is contained in:
parent
f02afbe371
commit
7a008cfc3f
31 changed files with 470 additions and 22 deletions
|
@ -19,6 +19,8 @@ func _ready() -> void:
|
|||
|
||||
# warning-ignore:unused_argument
|
||||
func _process(delta : float) -> void:
|
||||
if Global.layers[Global.current_layer][2]:
|
||||
return
|
||||
var mouse_pos: Vector2 = get_local_mouse_position() - Global.canvas.location
|
||||
var mouse_pos_floored := mouse_pos.floor()
|
||||
var start_pos := polygon[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue