Changed the default origin from 0.5 0.5 to 0 0 for GIFAnimComponent and LottieAnimComponent.

This commit is contained in:
Leon Styhre 2022-09-10 11:24:43 +02:00
parent b055493894
commit f0fd5346c6
2 changed files with 0 additions and 2 deletions

View file

@ -52,7 +52,6 @@ GIFAnimComponent::GIFAnimComponent()
mAnimIO.tell_proc = tellProc;
// Set component defaults.
setOrigin(0.5f, 0.5f);
setSize(Renderer::getScreenWidth() * 0.2f, Renderer::getScreenHeight() * 0.2f);
setPosition(Renderer::getScreenWidth() * 0.3f, Renderer::getScreenHeight() * 0.3f);
setDefaultZIndex(10.0f);

View file

@ -53,7 +53,6 @@ LottieAnimComponent::LottieAnimComponent()
mMaxTotalFrameCache = static_cast<size_t>(maxTotalCache);
// Set component defaults.
setOrigin(0.5f, 0.5f);
setSize(mRenderer->getScreenWidth() * 0.2f, mRenderer->getScreenHeight() * 0.2f);
setPosition(mRenderer->getScreenWidth() * 0.3f, mRenderer->getScreenHeight() * 0.3f);
setDefaultZIndex(10.0f);