Moved update of selected object's position to cluster network layer

This commit is contained in:
Mark Mine 2002-04-16 00:53:53 +00:00
parent edabd48a6f
commit 0d1b70edee

View File

@ -173,17 +173,6 @@ class SelectedNodePaths(PandaObject):
def moveWrtWidgetAll(self):
self.forEachSelectedNodePathDo(self.moveWrtWidget)
# Update cluster if current display is a cluster client
if (direct.clusterMode == 'client') and (last is not None):
pos = Point3(0)
hpr = VBase3(0)
scale = VBase3(1)
decomposeMatrix(last.getMat(), scale, hpr, pos)
direct.cluster.cmd(
'last.setPosHprScale(%f,%f,%f,%f,%f,%f,%f,%f,%f)' %
(pos[0], pos[1], pos[2],
hpr[0], hpr[1], hpr[2],
scale[0], scale[1], scale[2]))
def moveWrtWidget(self, nodePath):
nodePath.setMat(direct.widget, nodePath.mDnp2Widget)