[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32982] trunk/blender/source/blender/ editors/uvedit/uvedit_ops.c: "Fix" for [#24629] 2D-cursor coordinates in 254B UV and 3D views
Janne Karhu
jhkarh at gmail.com
Wed Nov 10 11:21:15 CET 2010
Revision: 32982
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32982
Author: jhk
Date: 2010-11-10 11:21:14 +0100 (Wed, 10 Nov 2010)
Log Message:
-----------
"Fix" for [#24629] 2D-cursor coordinates in 254B UV and 3D views
* This null check just prevents the crash, but the real bug is that 3d view toolbar redo even shows the image view operator..
* ..and since the redo is in the wrong view it doesn't work. Both of these are known issues.
Modified Paths:
--------------
trunk/blender/source/blender/editors/uvedit/uvedit_ops.c
Modified: trunk/blender/source/blender/editors/uvedit/uvedit_ops.c
===================================================================
--- trunk/blender/source/blender/editors/uvedit/uvedit_ops.c 2010-11-10 09:51:30 UTC (rev 32981)
+++ trunk/blender/source/blender/editors/uvedit/uvedit_ops.c 2010-11-10 10:21:14 UTC (rev 32982)
@@ -3029,6 +3029,9 @@
SpaceImage *sima = CTX_wm_space_image(C);
float location[2];
+ if(!sima)
+ return OPERATOR_CANCELLED;
+
RNA_float_get_array(op->ptr, "location", location);
sima->cursor[0]= location[0];
sima->cursor[1]= location[1];
More information about the Bf-blender-cvs
mailing list