From f7b9fbbbf2f95cfb30db0ce4e35883626ba7c9ae Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sat, 17 Jan 2004 17:12:05 +0000 Subject: [PATCH] - Add new scene, and choose "Full Copy", didn't create a new Ipo for a Camera block; it remained linked to 2 camera's. Fixed! --- source/blender/src/editobject.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index 9c955d81bd0..56620554efc 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -6052,6 +6052,7 @@ void single_obdata_users(int flag) Lamp *la; Curve *cu; Ika *ika; + Camera *cam; Deform *def; Base *base; Mesh *me; @@ -6150,6 +6151,7 @@ void single_obdata_users(int flag) id->newid= (ID *)ob->ipo; } } + /* other ipos */ switch(ob->type) { case OB_LAMP: la= ob->data; @@ -6157,6 +6159,14 @@ void single_obdata_users(int flag) la->ipo->id.us--; la->ipo= copy_ipo(la->ipo); } + break; + case OB_CAMERA: + cam= ob->data; + if(cam->ipo && cam->ipo->id.us>1) { + cam->ipo->id.us--; + cam->ipo= copy_ipo(cam->ipo); + } + break; } }