Skip to content

Commit

Permalink
Changed AdvancedPosition to set the position before object update
Browse files Browse the repository at this point in the history
  • Loading branch information
Neko-Box-Coder committed May 7, 2023
1 parent 7391b5e commit e237a06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/ssGUI/Extensions/AdvancedPosition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ namespace Extensions
//TODO : Cache if parent's global position and size hasn't changed

//This should be done in post update
if(isPreUpdate || Container == nullptr || Container->GetParent() == nullptr || !Enabled)
if(!isPreUpdate || Container == nullptr || Container->GetParent() == nullptr || !Enabled)
{
ssLOG_FUNC_EXIT();
return;
Expand Down

0 comments on commit e237a06

Please sign in to comment.