Skip to content

Commit 6110a2f

Browse files
committed
#157 Fix the GUI position
1 parent 0ea1b8f commit 6110a2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Projects/Skylicht/Engine/Source/Graphics2D/CCanvas.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ namespace Skylicht
9797
if (entity->isVisible() == false)
9898
continue;
9999

100+
// update position layout
100101
entity->update(camera);
101-
entity->calcAbsoluteTransform();
102102

103103
// apply mask
104104
entity->applyCurrentMask(entity->getMask());

Projects/Skylicht/Engine/Source/Graphics2D/GUI/CGUIElement.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ namespace Skylicht
246246

247247
const core::matrix4& CGUIElement::getRelativeTransform(bool forceRecalc)
248248
{
249-
if (forceRecalc == true)
249+
// if (forceRecalc == true)
250250
{
251251
m_relativeTransform.makeIdentity();
252252
m_relativeTransform.setRotationDegrees(m_rotation);

0 commit comments

Comments
 (0)