[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [19982] trunk/blender/source/blender/ blenkernel/intern/object.c: Bugfix #18632

Ton Roosendaal ton at blender.org
Wed Apr 29 19:41:42 CEST 2009


Revision: 19982
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19982
Author:   ton
Date:     2009-04-29 19:41:41 +0200 (Wed, 29 Apr 2009)

Log Message:
-----------
Bugfix #18632

Duplicating an armature, with constraints having a local Ipo, didn't
make a copy of this Ipo too, frustrating its drivers too.

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/object.c

Modified: trunk/blender/source/blender/blenkernel/intern/object.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/object.c	2009-04-29 17:01:35 UTC (rev 19981)
+++ trunk/blender/source/blender/blenkernel/intern/object.c	2009-04-29 17:41:41 UTC (rev 19982)
@@ -1169,6 +1169,9 @@
 			 * is changed to object->proxy_from when evaluating the driver. */
 			if(con->ipo && !con->ipo->id.lib) {
 				IpoCurve *icu;
+				
+				con->ipo= copy_ipo(con->ipo);
+				
 				for(icu= con->ipo->curve.first; icu; icu= icu->next) {
 					if(icu->driver && icu->driver->ob==ob)
 						icu->driver->ob= obn;





More information about the Bf-blender-cvs mailing list