Blender Git Loki

Git Commits -> Revision 5660533

Revision 5660533 by Benoit Bolsee (master)
April 14, 2008, 20:54 (GMT)
fix BGE bug #8309: After Parent Object added to the visual layer, Child Camera won't follow.

This bug fix is made of two parts:
1) It's now possible to dynamically add a camera.
2) Empty camera name on a SetCamera actuator now points to the actuator's parent object if this object is a camera.
This trick is useful to make current a dynamically created camera: just add a SetCamera actuator on the camera itself and leave the name empty. Later, when the camera is added in the scene with an AddObject actuator, either directly or via a parent object, you just need to activate the actuator to make the newly created camera current. If you set a name on a SetCamera actuator, it will always point to the original camera, even after replication.

Commit Details:

Full Hash: 566053319a47119bf718154f800659f9f0b86472
SVN Revision: 14424
Parent Commit: 0b8b436
Lines Changed: +43, -5

4 Modified Paths:

/source/gameengine/Converter/KX_ConvertActuators.cpp (+1, -5) (Diff)
/source/gameengine/Ketsji/KX_Camera.cpp (+15, -0) (Diff)
/source/gameengine/Ketsji/KX_Camera.h (+18, -0) (Diff)
/source/gameengine/Ketsji/KX_SceneActuator.cpp (+9, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021