Skip to content

Commit

Permalink
Fix automatic rotate for attached entities (minetest#12392)
Browse files Browse the repository at this point in the history
  • Loading branch information
appgurueu committed Jul 17, 2022
1 parent 7b6c4bf commit d400a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/content_cao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down

0 comments on commit d400a98

Please sign in to comment.