correct switch statement: image_listener NC_GEOM was falling through to NC_OBJECT

This commit is contained in:
Campbell Barton
2013-07-21 17:04:54 +00:00
parent 4d47f5fe05
commit cfc13e179a

View File

@@ -492,6 +492,7 @@ static void image_listener(bScreen *UNUSED(sc), ScrArea *sa, wmNotifier *wmn)
break;
}
case NC_GEOM:
{
switch (wmn->data) {
case ND_DATA:
case ND_SELECT:
@@ -500,6 +501,8 @@ static void image_listener(bScreen *UNUSED(sc), ScrArea *sa, wmNotifier *wmn)
ED_area_tag_redraw(sa);
break;
}
break;
}
case NC_OBJECT:
{
Object *ob = (Object *)wmn->reference;
@@ -873,7 +876,7 @@ static void image_header_area_listener(bScreen *UNUSED(sc), ScrArea *UNUSED(sa),
ED_region_tag_redraw(ar);
break;
}
break;
}
}