[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34190] trunk/blender/source/blender/ editors/transform/transform_ops.c: Bugfix #25551
Ton Roosendaal
ton at blender.org
Sun Jan 9 13:08:30 CET 2011
Revision: 34190
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=34190
Author: ton
Date: 2011-01-09 12:08:29 +0000 (Sun, 09 Jan 2011)
Log Message:
-----------
Bugfix #25551
Transform crash on autokey during animplay.
Transform event handling requires Context, for inserting keys.
Marked it with XXX warning; we have to be more careful with which
API calls require context; like inserting keys shouldn't need it?
Originally Context was meant for operators; to define user level
or scripted context, not for underlying APIs to work.
Modified Paths:
--------------
trunk/blender/source/blender/editors/transform/transform_ops.c
Modified: trunk/blender/source/blender/editors/transform/transform_ops.c
===================================================================
--- trunk/blender/source/blender/editors/transform/transform_ops.c 2011-01-09 11:54:12 UTC (rev 34189)
+++ trunk/blender/source/blender/editors/transform/transform_ops.c 2011-01-09 12:08:29 UTC (rev 34190)
@@ -320,7 +320,10 @@
TransInfo *t = op->customdata;
+ /* XXX insert keys are called here, and require context */
+ t->context= C;
exit_code = transformEvent(t, event);
+ t->context= NULL;
transformApply(C, t);
More information about the Bf-blender-cvs
mailing list