diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-10 08:46:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-10 08:46:17 +0300 |
commit | 854b6cd327ddcef6533651c30386e86f10227a56 (patch) | |
tree | 2c0abc5fe88171b4e487d34e8f7be6a5005708e2 /source/blender/editors/transform/transform_conversions.c | |
parent | 9471855be5a2d83ececd54641fde533871069b13 (diff) |
fix for the crash reported in [#24625] Duplifaces not generated using spacebar to activate
Diffstat (limited to 'source/blender/editors/transform/transform_conversions.c')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index edae59fc00c..da68f7abc4e 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -4403,8 +4403,11 @@ static void set_trans_object_base_flags(TransInfo *t) while(parsel) { if(parsel->flag & SELECT) { Base *parbase = object_in_scene(parsel, scene); - if TESTBASELIB_BGMODE(v3d, scene, parbase) + if(parbase) { /* in rare cases this can fail */ + if TESTBASELIB_BGMODE(v3d, scene, parbase) { break; + } + } } parsel= parsel->parent; } |