mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
wantsSmoothing
This commit is contained in:
parent
d3e7579bf0
commit
ad314b4dbd
@ -103,6 +103,11 @@ class DistributedSmoothNode(DistributedNode.DistributedNode):
|
|||||||
self.smoothPosition()
|
self.smoothPosition()
|
||||||
return Task.cont
|
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):
|
def startSmooth(self):
|
||||||
"""startSmooth(self)
|
"""startSmooth(self)
|
||||||
|
|
||||||
@ -112,6 +117,9 @@ class DistributedSmoothNode(DistributedNode.DistributedNode):
|
|||||||
position it.
|
position it.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
if not self.wantsSmoothing():
|
||||||
|
return
|
||||||
|
|
||||||
if self.isLocal():
|
if self.isLocal():
|
||||||
# If we've just finished banging on localToon, reload the
|
# If we've just finished banging on localToon, reload the
|
||||||
# drive interface's concept of our position.
|
# drive interface's concept of our position.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user