- Previous commit broke selection of non-subsurf meshes :)

- fixed crash reported by SimonC on linked dupli meshes, editmode, set
  subsurf on, crash...
This commit is contained in:
2004-09-29 21:44:12 +00:00
parent c42f0fc5cf
commit 2c3e294ed5
2 changed files with 10 additions and 8 deletions

View File

@@ -1072,14 +1072,16 @@ void do_curvebuts(unsigned short event)
case B_MAKEDISP:
if(ob->type==OB_FONT) text_to_curve(ob, 0);
makeDispList(ob);
/* we need signal to send to other users of same data to recalc... */
base= FIRSTBASE;
while(base) {
if(base->lay & G.vd->lay) {
if(base->object->data==ob->data && base->object!=ob)
makeDispList(base->object);
if(ob!=G.obedit) { // subsurf with linked dupli will crash
/* we need signal to send to other users of same data to recalc... */
base= FIRSTBASE;
while(base) {
if(base->lay & G.vd->lay) {
if(base->object->data==ob->data && base->object!=ob)
makeDispList(base->object);
}
base= base->next;
}
base= base->next;
}
allqueue(REDRAWVIEW3D, 0);
allqueue(REDRAWINFO, 1); /* 1, because header->win==0! */