Fix T39081: Crash duplicating objects

This commit is contained in:
Campbell Barton 2014-03-11 17:46:11 +11:00
parent 4cfd14644b
commit 41dde55325
Notes: blender-bot 2023-11-20 12:14:32 +01:00
Referenced by issue #39081, Full crash when hitting crtl+D to duplicate all the objects from a layer.
1 changed files with 5 additions and 2 deletions

View File

@ -512,18 +512,21 @@ static void image_listener(bScreen *sc, ScrArea *sa, wmNotifier *wmn)
}
case NC_OBJECT:
{
Object *ob = OBACT;
switch (wmn->data) {
case ND_TRANSFORM:
case ND_MODIFIER:
if (ob == (Object *)wmn->reference && (ob->mode & OB_MODE_EDIT)) {
{
Object *ob = OBACT;
if (ob && (ob == wmn->reference) && (ob->mode & OB_MODE_EDIT)) {
if (sima->lock && (sima->flag & SI_DRAWSHADOW)) {
ED_area_tag_refresh(sa);
ED_area_tag_redraw(sa);
}
}
break;
}
}
break;
}
}