Blender Git Loki

Git Commits -> Revision 62f7985

Revision 62f7985 by Porteries Tristan (master)
April 19, 2015, 18:33 (GMT)
BGE : Standardization of callbacks execution.

A new function (RunPythonCallBackList) to call all python functions
contained in a python list was developed.

This function has:
- first argument is the python list of callbacks
- second argument is a python list of arguments
- third argument is the minimum quantity of arguments
- forth argument is the maximum quantity of arguments

It improves flexibility and supports *args.

Reviewers: moguri, dfelinto, campbellbarton, sybren

Reviewed By: campbellbarton, sybren

Subscribers: sybren

Projects: #game_engine

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

Commit Details:

Full Hash: 62f79856e9a14337e32355db8a6add14badb372f
Parent Commit: 6f0f1dc
Committed By: Jorge Bernal
Lines Changed: +169, -82

2 Added Paths:

/source/gameengine/Expressions/KX_PythonCallBack.cpp (+116, -0) (View)
/source/gameengine/Expressions/KX_PythonCallBack.h (+40, -0) (View)

3 Modified Paths:

/source/gameengine/Expressions/CMakeLists.txt (+2, -0) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+7, -59) (Diff)
/source/gameengine/Ketsji/KX_Scene.cpp (+4, -23) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021