Blender Git Loki

Git Commits -> Revision 5efbd2a

Revision 5efbd2a by Porteries Tristan (master)
April 26, 2015, 14:29 (GMT)
BGE : addObject in python without reference object.

Making the reference argument optional for the addObject function.
```
scene.addObject("Cube")
```

This allows to keep the rotation, scale and position of the original object.
To avoid layer problems with lights if the reference arguments is None, the new object have the same layer than the active layers in scene.

Reviewers: lordloki, moguri, hg1, sybren

Reviewed By: hg1, sybren

Subscribers: agoose77

Projects: #game_engine

Differential Revision: https://developer.blender.org/D1222

Commit Details:

Full Hash: 5efbd2a4076af7de8d4c9256ff8f6aacbfa6b49f
Parent Commit: 3524676
Committed By: Thomas Szepe
Lines Changed: +30, -33

5 Modified Paths:

/doc/python_api/rst/bge_types/bge.types.KX_Scene.rst (+2, -2) (Diff)
/source/gameengine/Ketsji/KX_GameObject.h (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_Light.cpp (+1, -0) (Diff)
/source/gameengine/Ketsji/KX_Light.h (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_Scene.cpp (+25, -29) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021