fix for crash on missing NULL check,

Brecht, changed this to update the duplicate objects data rather then the old ones incase they are not linked.
This commit is contained in:
Campbell Barton
2010-12-07 00:48:36 +00:00
parent 8e8b07cc07
commit 4425331729

View File

@@ -1658,8 +1658,10 @@ static int duplicate_exec(bContext *C, wmOperator *op)
/* new object becomes active */
if(BASACT==base)
ED_base_object_activate(C, basen);
DAG_id_tag_update(base->object->data, 0);
if(basen->object->data) {
DAG_id_tag_update(basen->object->data, 0);
}
}
CTX_DATA_END;