From ad314b4dbd748be5f9e7e02301c4d66c3a66869d Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 18 Sep 2002 19:08:36 +0000 Subject: [PATCH] wantsSmoothing --- direct/src/distributed/DistributedSmoothNode.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/direct/src/distributed/DistributedSmoothNode.py b/direct/src/distributed/DistributedSmoothNode.py index cf9f8f7a98..eb936a5c00 100644 --- a/direct/src/distributed/DistributedSmoothNode.py +++ b/direct/src/distributed/DistributedSmoothNode.py @@ -103,6 +103,11 @@ class DistributedSmoothNode(DistributedNode.DistributedNode): self.smoothPosition() return Task.cont + def wantsSmoothing(self): + # Override this function to return 0 if this particular kind + # of smooth node doesn't really want to be smoothed. + return 1 + def startSmooth(self): """startSmooth(self) @@ -112,6 +117,9 @@ class DistributedSmoothNode(DistributedNode.DistributedNode): position it. """ + if not self.wantsSmoothing(): + return + if self.isLocal(): # If we've just finished banging on localToon, reload the # drive interface's concept of our position.