mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Modifications to support fourd demo
This commit is contained in:
parent
3711545a76
commit
f0ed071ee8
@ -113,8 +113,10 @@ class ClusterClient(DirectObject.DirectObject):
|
|||||||
def loadModel(self, nodePath):
|
def loadModel(self, nodePath):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def __call__(self, commandString, fLocally = 1):
|
def __call__(self, commandString, fLocally = 1, serverNum = None):
|
||||||
# Execute remotely
|
# Execute remotely
|
||||||
|
if serverNum is not None:
|
||||||
|
self.serverList[serverNum].sendCommandString(commandString)
|
||||||
for server in self.serverList:
|
for server in self.serverList:
|
||||||
server.sendCommandString(commandString)
|
server.sendCommandString(commandString)
|
||||||
if fLocally:
|
if fLocally:
|
||||||
@ -348,7 +350,7 @@ class DummyClusterClient(DirectObject.DirectObject):
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def __call__(self, commandString, fLocally = 1):
|
def __call__(self, commandString, fLocally = 1, serverNum = None):
|
||||||
if fLocally:
|
if fLocally:
|
||||||
# Execute locally
|
# Execute locally
|
||||||
exec( commandString, __builtins__ )
|
exec( commandString, __builtins__ )
|
||||||
|
@ -3,6 +3,7 @@ from PandaObject import *
|
|||||||
from DirectDeviceManager import *
|
from DirectDeviceManager import *
|
||||||
from DirectUtil import *
|
from DirectUtil import *
|
||||||
import OnscreenText
|
import OnscreenText
|
||||||
|
import Task
|
||||||
|
|
||||||
"""
|
"""
|
||||||
TODO:
|
TODO:
|
||||||
|
@ -60,6 +60,11 @@ if [ "$VRIDE" ]; then
|
|||||||
VRIDE=`cygpath -w $VRIDE`
|
VRIDE=`cygpath -w $VRIDE`
|
||||||
export VRIDE
|
export VRIDE
|
||||||
fi
|
fi
|
||||||
|
if [ "$FOURD" ]; then
|
||||||
|
if [ "$debug" ]; then echo "FOURD $FOURD"; fi
|
||||||
|
FOURD=`cygpath -w $FOURD`
|
||||||
|
export FOURD
|
||||||
|
fi
|
||||||
if [ "$WINTOOLS" ]; then
|
if [ "$WINTOOLS" ]; then
|
||||||
if [ "$debug" ]; then echo "WINTOOLS $WINTOOLS"; fi
|
if [ "$debug" ]; then echo "WINTOOLS $WINTOOLS"; fi
|
||||||
WINTOOLS=`cygpath -w $WINTOOLS`
|
WINTOOLS=`cygpath -w $WINTOOLS`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user