From f0fd5346c65114a4dc957f20f5afd430e9e66115 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 10 Sep 2022 11:24:43 +0200 Subject: [PATCH] Changed the default origin from 0.5 0.5 to 0 0 for GIFAnimComponent and LottieAnimComponent. --- es-core/src/components/GIFAnimComponent.cpp | 1 - es-core/src/components/LottieAnimComponent.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/es-core/src/components/GIFAnimComponent.cpp b/es-core/src/components/GIFAnimComponent.cpp index 131b75dbc..0ac60e580 100644 --- a/es-core/src/components/GIFAnimComponent.cpp +++ b/es-core/src/components/GIFAnimComponent.cpp @@ -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); diff --git a/es-core/src/components/LottieAnimComponent.cpp b/es-core/src/components/LottieAnimComponent.cpp index 76b396763..e4b1badc5 100644 --- a/es-core/src/components/LottieAnimComponent.cpp +++ b/es-core/src/components/LottieAnimComponent.cpp @@ -53,7 +53,6 @@ LottieAnimComponent::LottieAnimComponent() mMaxTotalFrameCache = static_cast(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);