reparent shtickerbook actors when swapping toon torso, fixes #108

This commit is contained in:
demiurgeQuantified 2023-10-31 20:25:36 +00:00
parent c50df48a06
commit 347829eb57

View file

@ -860,6 +860,9 @@ class Toon(Avatar.Avatar, ToonHead):
self.resetHeight() self.resetHeight()
self.setupToonNodes() self.setupToonNodes()
self.generateBackpack() self.generateBackpack()
hands = self.getRightHands()
for bookActor, hand in zip(self.__bookActors, hands):
bookActor.reparentTo(hand)
def generateToonHead(self, copy = 1): def generateToonHead(self, copy = 1):
headHeight = ToonHead.generateToonHead(self, copy, self.style, ('1000', '500', '250')) headHeight = ToonHead.generateToonHead(self, copy, self.style, ('1000', '500', '250'))