mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
fix toon furniture moving
This commit is contained in:
parent
5f55e19c98
commit
7f31a5fb83
@ -68,6 +68,14 @@ class DistributedSmoothNode(DistributedNode.DistributedNode,
|
||||
DistributedSmoothNodeBase.DistributedSmoothNodeBase.__init__(self)
|
||||
self.smoothStarted = 0
|
||||
|
||||
# Set this True to assert that the local process has
|
||||
# complete authority over the position of this object when
|
||||
# smoothing is not in effect. When this is True, position
|
||||
# reports received over the wire will not be applied to
|
||||
# this node's position, unless those position reports are
|
||||
# received between startSmooth() and endSmooth().
|
||||
self.localControl = False
|
||||
|
||||
def generate(self):
|
||||
self.smoother = SmoothMover()
|
||||
self.smoothStarted = 0
|
||||
@ -296,7 +304,7 @@ class DistributedSmoothNode(DistributedNode.DistributedNode,
|
||||
self.smoother.setTimestamp(local)
|
||||
self.smoother.markPosition()
|
||||
|
||||
if not self.smoothStarted and \
|
||||
if not self.localControl and not self.smoothStarted and \
|
||||
self.smoother.getLatestPosition():
|
||||
self.smoother.applySmoothMat(self)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user