Blender Git Commit Log

Git Commits -> Revision 3031f1f

Revision 3031f1f by Joseph Eagar (master)
July 27, 2007, 06:14 (GMT)
=Draw Module Fixed=

This commit fixes the Draw module. All buttons/widgets created via the Draw
module in a SpaceScript area are now inserted into a global list attached to
the SpaceScript data. This list is cleared before each draw, when freeing
the space, and when the area is switched to another space.c

This is necessary to prevent Blender's internal UI code from getting invalid
pointers to python data. In addition, it allows storing widget tooltips
inside the python Button objects, which solves that little bit of stupidity.

Note that this reverts the previous weaklist solution. In fact, I had to go
over each previous commit by Campbell after this code originally branched
before the weaklist commit and re-add each commit. So if anything is
missing, just tell me, or feel free to re-add it.

Commit Details:

Full Hash: 3031f1f2bd13d0265e3214bf9f17a8bdd1b1dc2f
SVN Revision: 11387
Parent Commit: c540888
Lines Changed: +169, -93

7 Modified Paths:

/source/blender/blenloader/intern/writefile.c (+2, -0) (Diff)
/source/blender/makesdna/DNA_space_types.h (+3, -2) (Diff)
/source/blender/python/api2_2x/Draw.c (+119, -86) (Diff)
/source/blender/python/api2_2x/Draw.h (+5, -3) (Diff)
/source/blender/python/BPY_extern.h (+19, -0) (Diff)
/source/blender/src/drawscript.c (+7, -1) (Diff)
/source/blender/src/space.c (+14, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021