bugfix: "glsl lamp not (directly) updated when there is no material in the object" reported by Olivier Amrein

lamps require a depsgraph update.
There is no more need to ED_render_id_flush_update because this is called by the DAG_id_flush_update.
help (and the right fix) from Brecht.
This commit is contained in:
Dalai Felinto 2010-10-31 12:12:57 +00:00
parent 06abc862b0
commit 89ceb3b87a

@ -1647,7 +1647,7 @@ static int duplicate_exec(bContext *C, wmOperator *op)
if(BASACT==base)
ED_base_object_activate(C, basen);
ED_render_id_flush_update(bmain, basen->object->data);
DAG_id_flush_update(base->object->data, 0);
}
CTX_DATA_END;