From 2e22468684caa0fde57f9e300073be507e4919c3 Mon Sep 17 00:00:00 2001 From: Gyedo Jeon Date: Thu, 6 Nov 2008 21:40:34 +0000 Subject: [PATCH] Changed upondDeath assignments to call setUponDeath --- direct/src/directtools/DirectCameraControl.py | 14 +++++++------- direct/src/directtools/DirectSession.py | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/direct/src/directtools/DirectCameraControl.py b/direct/src/directtools/DirectCameraControl.py index 6a447ec2e3..55b2835604 100644 --- a/direct/src/directtools/DirectCameraControl.py +++ b/direct/src/directtools/DirectCameraControl.py @@ -537,7 +537,7 @@ class DirectCameraControl(DirectObject): task = 'manipulateCamera') # Upon death, reparent Cam to parent t.parent = parent - t.uponDeath = self.reparentCam + t.setUponDeath(self.reparentCam) def centerCam(self): self.centerCamIn(1.0) @@ -560,7 +560,7 @@ class DirectCameraControl(DirectObject): other = self.camManipRef, blendType = 'easeInOut', task = 'manipulateCamera') - t.uponDeath = self.updateCoaMarkerSizeOnDeath + t.setUponDeath(self.updateCoaMarkerSizeOnDeath) def zoomCam(self, zoomFactor, t): taskMgr.remove('manipulateCamera') @@ -577,7 +577,7 @@ class DirectCameraControl(DirectObject): other = self.camManipRef, blendType = 'easeInOut', task = 'manipulateCamera') - t.uponDeath = self.updateCoaMarkerSizeOnDeath + t.setUponDeath(self.updateCoaMarkerSizeOnDeath) def spawnMoveToView(self, view): # Kill any existing tasks @@ -627,7 +627,7 @@ class DirectCameraControl(DirectObject): other = self.camManipRef, blendType = 'easeInOut', task = 'manipulateCamera') - t.uponDeath = self.updateCoaMarkerSizeOnDeath + t.setUponDeath(self.updateCoaMarkerSizeOnDeath) def swingCamAboutWidget(self, degrees, t): @@ -651,7 +651,7 @@ class DirectCameraControl(DirectObject): task = 'manipulateCamera') # Upon death, reparent Cam to parent manipTask.parent = parent - manipTask.uponDeath = self.reparentCam + manipTask.setUponDeath(self.reparentCam) def reparentCam(self, state): base.direct.camera.wrtReparentTo(state.parent) @@ -693,7 +693,7 @@ class DirectCameraControl(DirectObject): task = 'manipulateCamera') # Upon death, reparent Cam to parent fitTask.parent = parent - fitTask.uponDeath = self.reparentCam + fitTask.setUponDeath(self.reparentCam) def moveToFit(self): # How big is the active widget? @@ -720,7 +720,7 @@ class DirectCameraControl(DirectObject): other = base.direct.camera, blendType = 'easeInOut', task = 'moveToFitTask') - t.uponDeath = lambda state: taskMgr.remove('stickToWidget') + t.setUponDeath(lambda state: taskMgr.remove('stickToWidget')) def stickToWidgetTask(self, state): # Move the objects with the widget diff --git a/direct/src/directtools/DirectSession.py b/direct/src/directtools/DirectSession.py index 266d0a77a2..6e30af839d 100644 --- a/direct/src/directtools/DirectSession.py +++ b/direct/src/directtools/DirectSession.py @@ -297,7 +297,7 @@ class DirectSession(DirectObject): task = 'manipulateCamera', blendType = 'easeInOut') # When move is done, switch to oobe mode - t.uponDeath = self.endOOBE + t.setUponDeath(self.endOOBE) else: # Place camera marker at true camera location self.oobeVis.reparentTo(self.trueCamera) @@ -320,7 +320,7 @@ class DirectSession(DirectObject): task = 'manipulateCamera', blendType = 'easeInOut') # When move is done, switch to oobe mode - t.uponDeath = self.beginOOBE + t.setUponDeath(self.beginOOBE) def beginOOBE(self, state): # Make sure we've reached our final destination