-
-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPBGE: Allow KX_LibLoadStatus.onFinish to call python method. (#896)
Previously KX_LibLoadStatus finish callback was only permitted to be python function not method. To allow calling a method, work from EXP_RunPythonCallBackList is reused and the calling of a python function is moved into new function EXP_RunPythonCallback. This function is in charge of checking that the python object is callable and construct a tuple of the arguments. EXP_RunPythonCallback is now called into KX_LibLoadStatus::RunFinishCallback.
- Loading branch information
1 parent
9eff631
commit 0da4cda
Showing
3 changed files
with
27 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters