Browse Source

fixed cluster sendCamFrustum

Mark Mine 22 years ago
parent
commit
14d2a62796
1 changed files with 5 additions and 6 deletions
  1. 5 6
      direct/src/cluster/ClusterClient.py

+ 5 - 6
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):