fix for crash on active camera poll (from own recent commit)
authorCampbell Barton <ideasman42@gmail.com>
Tue, 6 Jul 2010 11:50:59 +0000 (11:50 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 6 Jul 2010 11:50:59 +0000 (11:50 +0000)
source/blender/editors/space_view3d/view3d_edit.c

index 56714143fe99bdbbde84c4ff56daef6e4f6a5b11..9ac3d7cacdd724b5dc6bec1bae7b378bcdd71baa 100644 (file)
@@ -732,7 +732,7 @@ static int view3d_camera_active_poll(bContext *C)
 {
        if(ED_operator_view3d_active(C)) {
                RegionView3D *rv3d= CTX_wm_region_view3d(C);
-               if(rv3d->persp==RV3D_CAMOB) {
+               if(rv3d && rv3d->persp==RV3D_CAMOB) {
                        return 1;
                }
        }