Skip to content

Commit

Permalink
Now Corretly fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
juliamauri committed Jun 6, 2019
1 parent a2f5631 commit 4b975a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified Game/Alita.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions Source/ComponentRectTransform.cpp
Expand Up @@ -843,7 +843,7 @@ void ComponentRectTransform::OnUniqueEditor()
needed_recalculate = true;

if (needed_recalculate)
SetRect(rectToModify, (parent->cmp_uiAnimation && (parent->cmp_uiAnimation->IsRecording() || !parent->cmp_uiAnimation->IsFinished())) ? true : false);
SetRect(rectToModify, (parent->cmp_uiAnimation && parent->cmp_uiAnimation->IsRecording()) ? true : false);

if(ImGui::Checkbox("Use Pivot", &usePivot))
if (!usePivot)
Expand Down Expand Up @@ -1064,7 +1064,7 @@ void ComponentRectTransform::OnUniqueEditor()
if (!needed_recalculate && recalculate4Pivot)
{
System_Event rectChanged;
rectChanged.type = (parent->cmp_uiAnimation && (parent->cmp_uiAnimation->IsRecording() || !parent->cmp_uiAnimation->IsFinished())) ? System_Event_Type::RectTransformUpdatedFromAnimation : System_Event_Type::RectTransformUpdated;
rectChanged.type = (parent->cmp_uiAnimation && parent->cmp_uiAnimation->IsRecording()) ? System_Event_Type::RectTransformUpdatedFromAnimation : System_Event_Type::RectTransformUpdated;

std::vector<GameObject*> rectChilds;
parent->GetChildrenAndThisVectorFromLeaf(rectChilds);
Expand Down

0 comments on commit 4b975a5

Please sign in to comment.