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):