mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
wantsSmoothing
This commit is contained in:
parent
d3e7579bf0
commit
ad314b4dbd
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user