From 7f31a5fb83afeb238a4331e2b60d782bf20bc98d Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 13 Nov 2007 00:36:03 +0000 Subject: [PATCH] fix toon furniture moving --- direct/src/distributed/DistributedSmoothNode.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/direct/src/distributed/DistributedSmoothNode.py b/direct/src/distributed/DistributedSmoothNode.py index dd1dde881b..cfb4af6300 100644 --- a/direct/src/distributed/DistributedSmoothNode.py +++ b/direct/src/distributed/DistributedSmoothNode.py @@ -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)