diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2004-12-05 07:01:57 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2004-12-05 07:01:57 +0300 |
commit | a368426d260bd8243eb657cb5a7046e4cc9d9795 (patch) | |
tree | e00586748558e40f6feb718f94c6bbbd4baf1874 /source/blender/python/api2_2x/logic.c | |
parent | 263479dfbadc4e99354e0cf54fb6fa21c900fce5 (diff) |
BPython, two bug fixes:
- #1911: http://projects.blender.org/tracker/?func=detail&atid=125&aid=1911&group_id=9
BOOL properties were returning True always, small mistake in logic.c's getData method.
- #1944: http://projects.blender.org/tracker/?func=detail&atid=125&aid=1944&group_id=9
G.vd was not being checked against NULL in Window.ViewLayer, causing a crash when this function was called from a command line script. Now it returns an error in such cases.
- small doc updates, tiny minor change in Object.c.
Diffstat (limited to 'source/blender/python/api2_2x/logic.c')
-rw-r--r-- | source/blender/python/api2_2x/logic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/logic.c b/source/blender/python/api2_2x/logic.c index d3631a00ba9..2dc74a8b479 100644 --- a/source/blender/python/api2_2x/logic.c +++ b/source/blender/python/api2_2x/logic.c @@ -429,7 +429,7 @@ static PyObject *Property_getData( BPy_Property * self ) attr = EXPP_incr_ret( self->data ); } else { if( self->property->type == PROP_BOOL ) { - if( *( ( int * ) &self->property->poin ) ) + if( self->property->data ) attr = EXPP_incr_ret( Py_True ); else attr = EXPP_incr_ret( Py_False ); |