[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35185] trunk/blender/source/blender/ editors/armature/poselib.c: Bug fix, irc report.
Ton Roosendaal
ton at blender.org
Fri Feb 25 17:05:26 CET 2011
Revision: 35185
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35185
Author: ton
Date: 2011-02-25 16:05:26 +0000 (Fri, 25 Feb 2011)
Log Message:
-----------
Bug fix, irc report.
Menu Help -> Operator Cheat Sheet crashed, calling function with NULL context.
Modified Paths:
--------------
trunk/blender/source/blender/editors/armature/poselib.c
Modified: trunk/blender/source/blender/editors/armature/poselib.c
===================================================================
--- trunk/blender/source/blender/editors/armature/poselib.c 2011-02-25 15:46:43 UTC (rev 35184)
+++ trunk/blender/source/blender/editors/armature/poselib.c 2011-02-25 16:05:26 UTC (rev 35185)
@@ -141,14 +141,17 @@
}
/* Get object that Pose Lib should be found on */
+ /* XXX C can be zero */
static Object *get_poselib_object (bContext *C)
{
- ScrArea *sa = CTX_wm_area(C);
+ ScrArea *sa;
/* sanity check */
if (C == NULL)
return NULL;
+ sa = CTX_wm_area(C);
+
if (sa && (sa->spacetype == SPACE_BUTS))
return CTX_data_pointer_get_type(C, "object", &RNA_Object).data;
else
More information about the Bf-blender-cvs
mailing list