mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-20 20:43:14 +00:00
Fixed regression where it was possible to draw on locked layers
This commit is contained in:
parent
44ecf375fc
commit
687819413d
2 changed files with 3 additions and 1 deletions
|
@ -94,7 +94,7 @@ func update_pattern() -> void:
|
|||
|
||||
|
||||
func draw_start(position : Vector2) -> void:
|
||||
if not position in Global.current_project.selected_pixels:
|
||||
if not position in Global.current_project.selected_pixels or Global.current_project.layers[Global.current_project.current_layer].locked:
|
||||
return
|
||||
var undo_data = _get_undo_data()
|
||||
if _fill_area == 0:
|
||||
|
|
|
@ -177,6 +177,8 @@ func commit_undo(action : String) -> void:
|
|||
|
||||
|
||||
func draw_tool(position : Vector2) -> void:
|
||||
if Global.current_project.layers[Global.current_project.current_layer].locked:
|
||||
return
|
||||
var strength := _strength
|
||||
if Global.pressure_sensitivity_mode == Global.Pressure_Sensitivity.ALPHA:
|
||||
strength *= Tools.pen_pressure
|
||||
|
|
Loading…
Add table
Reference in a new issue