wantsSmoothing

This commit is contained in:
David Rose 2002-09-18 19:08:36 +00:00
parent d3e7579bf0
commit ad314b4dbd

View File

@ -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.