fix for the crash reported in [#24625] Duplifaces not generated using spacebar to...
authorCampbell Barton <ideasman42@gmail.com>
Wed, 10 Nov 2010 05:46:17 +0000 (05:46 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 10 Nov 2010 05:46:17 +0000 (05:46 +0000)
source/blender/editors/transform/transform_conversions.c

index edae59fc00c87ea60ad0354705225f4a87b93a4c..da68f7abc4ecaec30108bccd96e360827c7f46c7 100644 (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;
                        }