Skip to content

Commit

Permalink
fix: pivot not centering at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
joelgomes1994 committed Feb 5, 2024
1 parent f68590a commit 8c1b91e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/simple-gui-transitions/transition.gd
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ class NodeInfo extends RefCounted:
if _auto_start:
node.modulate.a = 0.0

set_pivot_to_center()

# Invalidates existing tween and creates a new one.
func init_tween() -> void:
if tween and tween.is_valid():
Expand Down Expand Up @@ -296,6 +298,7 @@ func _ready() -> void:
_layout.modulate.a = 0.0

if _layout.visible and auto_start:
await get_tree().process_frame
_show()

else:
Expand Down

0 comments on commit 8c1b91e

Please sign in to comment.