directtools: Fix empty scaling node of object handle

Closes #1029
This commit is contained in:
Daniel 2020-10-02 01:53:33 +03:00 committed by rdb
parent 0e70fcf1ef
commit b507c88cd9

View File

@ -1066,7 +1066,7 @@ class ObjectHandles(NodePath, DirectObject):
# Load up object handles model and assign it to self
self.assign(loader.loadModel('models/misc/objectHandles'))
self.setName(name)
self.scalingNode = NodePath(self)
self.scalingNode = self.getChild(0)
self.scalingNode.setName('ohScalingNode')
self.ohScalingFactor = 1.0
self.directScalingFactor = 1.0