[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [10891] trunk/blender/source/blender/src/ editnla.c: Removed useless comment from previous commit.

Joshua Leung aligorith at gmail.com
Fri Jun 8 13:26:59 CEST 2007


Revision: 10891
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=10891
Author:   aligorith
Date:     2007-06-08 13:26:59 +0200 (Fri, 08 Jun 2007)

Log Message:
-----------
Removed useless comment from previous commit.

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

Modified: trunk/blender/source/blender/src/editnla.c
===================================================================
--- trunk/blender/source/blender/src/editnla.c	2007-06-08 07:31:03 UTC (rev 10890)
+++ trunk/blender/source/blender/src/editnla.c	2007-06-08 11:26:59 UTC (rev 10891)
@@ -422,6 +422,11 @@
 			}
 		}
 		
+		/* object has ipo */
+		if (base->object->ipo) {
+			snap_ipo_keys(base->object->ipo, snap_mode);
+		}
+		
 		/* object has action */
 		if (base->object->action) {
 			ListBase act_data = {NULL, NULL};
@@ -440,20 +445,13 @@
 			}
 			BLI_freelistN(&act_data);
 			
-			// err
 			remake_action_ipos(base->object->action);
 		}
-		
-		/* object has ipo */
-		/* for now, this is done regardless of whether there is an action. However, 
-		 * there may be errors later on... this needs further testing. Until then, this code stays.
-		 */
-		if (base->object->ipo) {
-			snap_ipo_keys(base->object->ipo, snap_mode);
-		}
 	}
 	BIF_undo_push("Snap NLA strips");
 	allqueue (REDRAWVIEW3D, 0);
+	allqueue (REMAKEIPO, 0);
+	allqueue (REDRAWIPO, 0);
 	allqueue (REDRAWACTION, 0);
 	allqueue (REDRAWNLA, 0);
 }





More information about the Bf-blender-cvs mailing list