mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-26 02:44:42 -04:00
Minor TransparentChecker performance boost
Got rid of its _process, using _ready() instead. It also gets called when the canvas size changes, or the checker settings in the preferences change.
This commit is contained in:
parent
b21455cfd0
commit
79a4c0232e
4 changed files with 11 additions and 1 deletions
|
@ -531,6 +531,8 @@ func camera_zoom() -> void:
|
|||
Global.horizontal_ruler.update()
|
||||
Global.vertical_ruler.update()
|
||||
|
||||
Global.transparent_checker._ready() # To update the rect size
|
||||
|
||||
func handle_undo(action : String) -> void:
|
||||
if !can_undo:
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue