From c68c6cfbe82671d541ad07cbd9a6a19af9bd56e5 Mon Sep 17 00:00:00 2001 From: Samir Naik Date: Mon, 24 Nov 2003 22:07:42 +0000 Subject: [PATCH] move walls down on crate model --- direct/src/level/ModelEntity.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/direct/src/level/ModelEntity.py b/direct/src/level/ModelEntity.py index 3d77e9d2fb..e9c563f222 100755 --- a/direct/src/level/ModelEntity.py +++ b/direct/src/level/ModelEntity.py @@ -24,10 +24,10 @@ class ModelEntity(BasicEntities.NodePathEntity): self.model.reparentTo(self) # HACK SDN: special code for moving crate wall collisions down - # Uniquify the collision name - cNode = self.find("**/wall_collsion") - if not cNode.isEmpty(): - cNode.setZ(-1.2) + if self.modelPath == "phase_9/models/cogHQ/woodCrateB": + cNode = self.find("**/wall") + if not cNode.isEmpty(): + cNode.setZ(-.5) def setModelPath(self, path): self.modelPath = path