From b507c88cd9fd5d3a432aae42fdc9165422a527b4 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 2 Oct 2020 01:53:33 +0300 Subject: [PATCH] directtools: Fix empty scaling node of object handle Closes #1029 --- direct/src/directtools/DirectManipulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/directtools/DirectManipulation.py b/direct/src/directtools/DirectManipulation.py index d7aeb1ee3b..8a07b14702 100644 --- a/direct/src/directtools/DirectManipulation.py +++ b/direct/src/directtools/DirectManipulation.py @@ -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