[Bf-blender-cvs] [6dac874] master: Fix for various small issues which may cause crashes
Joshua Leung
noreply at git.blender.org
Sat Mar 28 15:08:06 CET 2015
Commit: 6dac874d68bde7ffb72ce44d9916ceeeeb5fb2a1
Author: Joshua Leung
Date: Fri Mar 13 22:03:26 2015 +1300
Branches: master
https://developer.blender.org/rB6dac874d68bde7ffb72ce44d9916ceeeeb5fb2a1
Fix for various small issues which may cause crashes
===================================================================
M source/blender/blenkernel/intern/fcurve.c
M source/blender/editors/space_outliner/outliner_draw.c
===================================================================
diff --git a/source/blender/blenkernel/intern/fcurve.c b/source/blender/blenkernel/intern/fcurve.c
index a986640..8645457 100644
--- a/source/blender/blenkernel/intern/fcurve.c
+++ b/source/blender/blenkernel/intern/fcurve.c
@@ -386,7 +386,7 @@ FCurve *rna_get_fcurve_context_ui(bContext *C, PointerRNA *ptr, PropertyRNA *pro
}
/* if we still haven't found anything, check whether it's a "special" property */
- if ((fcu == NULL) && (adt->nla_tracks.first)) {
+ if ((fcu == NULL) && (adt && adt->nla_tracks.first)) {
NlaTrack *nlt;
const char *propname = RNA_property_identifier(prop);
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c
index 68d7cd8..5a11b9a 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -198,11 +198,11 @@ static void restrictbutton_recursive_child(bContext *C, Scene *scene, Object *ob
ID *id;
bAction *action;
FCurve *fcu;
- bool driven;
+ bool driven, special;
RNA_id_pointer_create(&ob->id, &ptr);
prop = RNA_struct_find_property(&ptr, rnapropname);
- fcu = rna_get_fcurve_context_ui(C, &ptr, prop, 0, NULL, &action, &driven, NULL);
+ fcu = rna_get_fcurve_context_ui(C, &ptr, prop, 0, NULL, &action, &driven, &special);
if (fcu && !driven) {
id = ptr.id.data;
More information about the Bf-blender-cvs
mailing list