diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index dcf2769c8d5..abc4f826e24 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -4455,7 +4455,24 @@ void adduplicate(int mode, int dupflag) } } - /* ipos */ + /* lamps */ + if( dupflag & USER_DUP_IPO) { + Lamp *la= G.main->lamp.first; + while(la) { + if(la->id.newid) { + Lamp *lan= (Lamp *)la->id.newid; + id= (ID *)lan->ipo; + if(id) { + ID_NEW_US(lan->ipo) + else lan->ipo= copy_ipo(lan->ipo); + id->us--; + } + } + la= la->id.next; + } + } + +/* ipos */ ipo= G.main->ipo.first; while(ipo) { if(ipo->id.lib==NULL && ipo->id.newid) {