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:
OverloadedOrama 2020-04-20 19:12:22 +03:00
parent b21455cfd0
commit 79a4c0232e
4 changed files with 11 additions and 1 deletions

View file

@ -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