[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15302] trunk/blender/source/blender/src/ transform_generics.c: Bugfix:

Joshua Leung aligorith at gmail.com
Sun Jun 22 03:32:30 CEST 2008


Revision: 15302
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15302
Author:   aligorith
Date:     2008-06-22 03:31:29 +0200 (Sun, 22 Jun 2008)

Log Message:
-----------
Bugfix:

Update-automatically option in IPO-Editor now updates objects using the active IPO-block as their ObAction when transforming keyframes.

Modified Paths:
--------------
    trunk/blender/source/blender/src/transform_generics.c

Modified: trunk/blender/source/blender/src/transform_generics.c
===================================================================
--- trunk/blender/source/blender/src/transform_generics.c	2008-06-21 23:55:54 UTC (rev 15301)
+++ trunk/blender/source/blender/src/transform_generics.c	2008-06-22 01:31:29 UTC (rev 15302)
@@ -325,7 +325,7 @@
 		else {
 			for (base=G.scene->base.first; base; base=base->next) {
 				/* recalculate scale of selected nla-strips */
-				if (base->object->nlastrips.first) {
+				if (base->object && base->object->nlastrips.first) {
 					Object *bob= base->object;
 					bActionStrip *strip;
 					
@@ -398,8 +398,15 @@
 				}
 			}
 			else if(G.sipo->blocktype==ID_OB) {
+				Object *ob= OBACT;
 				Base *base= FIRSTBASE;
 				
+				/* only if this if active object has this ipo in an action (assumes that current ipo is in action) */
+				if ((ob) && (ob->ipoflag & OB_ACTION_OB) && (G.sipo->pin==0)) {
+					ob->ctime= -1234567.0f;
+					DAG_object_flush_update(G.scene, ob, OB_RECALC_OB);
+				}
+				
 				while(base) {
 					if(base->object->ipo==G.sipo->ipo) {
 						do_ob_ipo(base->object);





More information about the Bf-blender-cvs mailing list