-
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
Previously the global dict (stored in bge.logic) was add to the next bge.logic module in case of game restart in LA_Launcher::ExitEngine. But this action is useless and dangerous. First it is dangerous because the globalDict in GPG_ghost could be decref an then delete before calling ExitEngine. Secondly this is useless because the global dict is reset at each call of setupGamePython. So the decref of global dict is removed in ExitEngine. In the same time an extra incref was procceed in initBGE for sub modules. The call to PyModule_AddObject was not incref but the call to PyDict_SetItemString was incref. So no need of manually incref. This incref is removed ant the sub modules add functions are moved into addSubModule(…). Orignal works of youle. Fix issue #350.
- Loading branch information
There are no files selected for viewing
7 comments
on commit d13c519
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow and a clean up! super!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have an issue with that commit whereas I had not issue with my implementation (by just commenting Py_INCREF) in water demo. All is rendered white. Error in the console about texture module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@youle31, can you paste the console output ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 58744db.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh ok I check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All right :)
I'm dumb :S textures -> texture……