From 14d2a627966cbfd7f4e95ce818eb8a60692d50ee Mon Sep 17 00:00:00 2001 From: Mark Mine Date: Tue, 5 Aug 2003 00:40:54 +0000 Subject: [PATCH] fixed cluster sendCamFrustum --- direct/src/cluster/ClusterClient.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/direct/src/cluster/ClusterClient.py b/direct/src/cluster/ClusterClient.py index 6559123452..875edaf8bc 100644 --- a/direct/src/cluster/ClusterClient.py +++ b/direct/src/cluster/ClusterClient.py @@ -110,14 +110,13 @@ class ClusterClient(DirectObject.DirectObject): def deselectNodePath(self, nodePath): self(self.getNodePathFindCmd(nodePath) + '.deselect()', 0) - def sendCamFrustum(self, focalLength, filmSize, filmOffset, serverList=[]): - self.notify.debug('updating camera %d frustum' % i) - print 'frustumData', serverList, - print focalLength, filmSize[0],filmSize[1],filmOffset[0],filmOffset[1] - return - if not serverList: + def sendCamFrustum(self, focalLength, filmSize, filmOffset, indexList=[]): + if indexList: + serverList = map(lambda i: self.serverList[i], indexList) + else: serverList = self.serverList for server in serverList: + self.notify.debug('updating camera frustum') server.sendCamFrustum(focalLength, filmSize, filmOffset) def loadModel(self, nodePath):