Blender Git Loki

Git Commits -> Revision 5e2ee19

Revision 5e2ee19 by Benoit Bolsee (master)
July 18, 2008, 19:56 (GMT)
BGE patch: support for partial hierarchy in dupligroup instantiation; removal of links that point to inactive objects during group instantiation.

This situation corresponds to a group containing only a portion
of a parent hierarchy (the Apricot team needed that to avoid
logic duplication). The BGE will instantiate only the
children that are in the group so that it follows the 3D view
more closely.
As a result, the logic links to the objects in the portion of the
hierarchy that was not replicated will point to inactive objects
(if the groups are stored in inactive layers as they should be).
To keep the logic system consistent, these links are automatically
removed.
This last part of the patch is a general fix that could go in
2.47 but as this situation does not normally occurs in pre-2.47
games, it is not needed.

Commit Details:

Full Hash: 5e2ee191877d1073a20da32c52d9e97cfab8f5c8
SVN Revision: 15628
Parent Commit: a397b4b
Lines Changed: +78, -20

6 Modified Paths:

/source/gameengine/Ketsji/KX_Scene.cpp (+34, -10) (Diff)
/source/gameengine/Ketsji/KX_Scene.h (+15, -0) (Diff)
/source/gameengine/SceneGraph/SG_IObject.cpp (+4, -2) (Diff)
/source/gameengine/SceneGraph/SG_IObject.h (+1, -1) (Diff)
/source/gameengine/SceneGraph/SG_Node.cpp (+23, -6) (Diff)
/source/gameengine/SceneGraph/SG_Node.h (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021