From d400a98ef0408ccbd2cc4c72f8b48c3813dfce41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= <34514239+appgurueu@users.noreply.github.com> Date: Sun, 17 Jul 2022 15:45:57 +0200 Subject: [PATCH] Fix automatic rotate for attached entities (#12392) --- src/client/content_cao.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/content_cao.cpp b/src/client/content_cao.cpp index 3126ee5e8..568d25fb7 100644 --- a/src/client/content_cao.cpp +++ b/src/client/content_cao.cpp @@ -1197,7 +1197,7 @@ void GenericCAO::step(float dtime, ClientEnvironment *env) } } - if (!getParent() && node && fabs(m_prop.automatic_rotate) > 0.001f) { + if (node && fabs(m_prop.automatic_rotate) > 0.001f) { // This is the child node's rotation. It is only used for automatic_rotate. v3f local_rot = node->getRotation(); local_rot.Y = modulo360f(local_rot.Y - dtime * core::RADTODEG *