From 6dac874d68bde7ffb72ce44d9916ceeeeb5fb2a1 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Fri, 13 Mar 2015 22:03:26 +1300 Subject: Fix for various small issues which may cause crashes --- source/blender/blenkernel/intern/fcurve.c | 2 +- source/blender/editors/space_outliner/outliner_draw.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender') diff --git a/source/blender/blenkernel/intern/fcurve.c b/source/blender/blenkernel/intern/fcurve.c index a9866405827..86454576b98 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 68d7cd8c475..5a11b9a2395 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; -- cgit v1.2.3