Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarArmorWearer.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2025-03-16 09:18:34 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2025-03-16 09:18:34 +1100
commitfd56b7ed9568b7887b474b1df9b6526f2869d1e4 (patch)
tree6233293cfe084a1339de6eb384f9e541c238b21b /source/game/StarArmorWearer.cpp
parenta29c3e161648aef3b958fd76abdbe9e358e1bc9f (diff)
back rotateWithHead support
Diffstat (limited to 'source/game/StarArmorWearer.cpp')
-rw-r--r--source/game/StarArmorWearer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/game/StarArmorWearer.cpp b/source/game/StarArmorWearer.cpp
index c95eaad..ef67686 100644
--- a/source/game/StarArmorWearer.cpp
+++ b/source/game/StarArmorWearer.cpp
@@ -100,10 +100,12 @@ void ArmorWearer::setupHumanoidClothingDrawables(Humanoid& humanoid, bool forceN
if (backNeedsSync) {
humanoid.setBackArmorFrameset(backArmor->frameset(humanoid.identity().gender));
humanoid.setBackArmorDirectives(backArmor->directives());
+ humanoid.setBackRotatesWithHead(backArmor->instanceValue("rotateWithHead", false).optBool().value());
}
bodyHidden = bodyHidden || backArmor->hideBody();
} else {
humanoid.setBackArmorFrameset("");
+ humanoid.setBackRotatesWithHead(false);
}
if (chestNeedsSync || legsNeedsSync) {