[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32863] trunk/blender/source/blender/ editors/transform/transform_conversions.c: workaround/fix [#24451] Motion path not automatic recalculating + locking obj moving

Campbell Barton ideasman42 at gmail.com
Thu Nov 4 00:49:56 CET 2010


Revision: 32863
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32863
Author:   campbellbarton
Date:     2010-11-04 00:49:56 +0100 (Thu, 04 Nov 2010)

Log Message:
-----------
workaround/fix [#24451] Motion path not automatic recalculating + locking obj moving

Comment from source...
			/* re-calculating the frame positions means we loose our original transform if its not auto-keyed [#24451]
			 * this hack re-applies it, which is annoying, only alternatives are...
			 * - dont recalc paths.
			 * - have an object_handle_update() which gives is the new transform without touching the objects.
			 * - only recalc paths on auto-keying.
			 * - ED_objects_recalculate_paths could backup/restore transforms.
			 * - re-apply the transform which is simplest in this case. (2 lines below)
			 */

Martin, if you think this workaround is unacceptable, then automatic recalculating of paths after transform should probably be disabled since it looses data on non transform un-keyed values.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/transform/transform_conversions.c

Modified: trunk/blender/source/blender/editors/transform/transform_conversions.c
===================================================================
--- trunk/blender/source/blender/editors/transform/transform_conversions.c	2010-11-03 22:44:39 UTC (rev 32862)
+++ trunk/blender/source/blender/editors/transform/transform_conversions.c	2010-11-03 23:49:56 UTC (rev 32863)
@@ -5085,6 +5085,17 @@
 		if (C && recalcObPaths) {
 			//ED_objects_clear_paths(C); // XXX for now, don't need to clear
 			ED_objects_recalculate_paths(C, t->scene);
+
+			/* recalculating the frame positions means we loose our original transform if its not auto-keyed [#24451]
+			 * this hack re-applies it, which is annoying, only alternatives are...
+			 * - dont recalc paths.
+			 * - have an object_handle_update() which gives is the new transform without touching the objects.
+			 * - only recalc paths on auto-keying.
+			 * - ED_objects_recalculate_paths could backup/restore transforms.
+			 * - re-apply the transform which is simplest in this case. (2 lines below)
+			 */
+			t->redraw |= TREDRAW_HARD;
+			transformApply(C, t);
 		}
 	}
 





More information about the Bf-blender-cvs mailing list