Go to file
Porteries Tristan 5efbd2a407 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
2015-04-26 16:29:58 +02:00
build_files CMake: resolve linking error on Linux 2015-04-08 11:50:57 +10:00
doc BGE : addObject in python without reference object. 2015-04-26 16:29:58 +02:00
extern Cleanup: warnings 2015-04-19 22:03:42 +10:00
intern Cleanup: Code style. 2015-04-26 00:42:26 +02:00
release Py API: Remove deprecated callback_add 2015-04-23 12:58:49 +10:00
scons@625d446ae8 Fixed border extension for the sunbeams node. 2014-09-23 11:42:11 +02:00
source BGE : addObject in python without reference object. 2015-04-26 16:29:58 +02:00
tests Cleanup: pep8, spelling 2015-04-22 16:26:54 +10:00
.arcconfig Use HTTPS protocol for arc 2013-12-24 22:57:27 +06:00
.gitignore Revert "ignore conflict files" 2014-08-08 06:00:49 +10:00
.gitmodules Initialize git submodules for addons, locales and scons 2013-11-15 12:19:08 +06:00
CMakeLists.txt CMake: add -Wformat-signedness 2015-04-24 19:11:02 +10:00
COPYING == docs == 2010-10-13 14:44:22 +00:00
GNUmakefile tweaks to packman build 2015-03-24 07:49:17 +11:00
SConstruct Fix T31546 fragment program gets created every frame 2015-04-09 20:20:50 +02:00