fix for the crash reported in [#24625] Duplifaces not generated using spacebar to activate

This commit is contained in:
Campbell Barton
2010-11-10 05:46:17 +00:00
parent 9471855be5
commit 854b6cd327

View File

@@ -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;
}