quiet shadow warnings and remove redundant NULL check
[blender.git] / source / blender / editors / space_view3d / space_view3d.c
index dfbc973ee859238f441ebc1d74f649888c76fc4d..a65f0af74a5e184631c277ef6004d7e0bb0b06b1 100644 (file)
@@ -881,8 +881,8 @@ static void view3d_main_area_listener(bScreen *sc, ScrArea *sa, ARegion *ar, wmN
                                        /* screen was changed, need to update used layers due to NC_SCENE|ND_LAYER_CONTENT */
                                        /* updates used layers only for View3D in active screen */
                                        if (wmn->reference) {
-                                               bScreen *sc = wmn->reference;
-                                               view3d_recalc_used_layers(ar, wmn, sc->scene);
+                                               bScreen *sc_ref = wmn->reference;
+                                               view3d_recalc_used_layers(ar, wmn, sc_ref->scene);
                                        }
                                        ED_region_tag_redraw(ar);
                                        break;