[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53813] trunk/blender/source/blender/ editors/uvedit/uvedit_unwrap_ops.c: Fix #33875: minimize stretch UV tool incremented in steps of 0.2 instead of 0.1,
Brecht Van Lommel
brechtvanlommel at pandora.be
Tue Jan 15 12:14:31 CET 2013
Revision: 53813
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53813
Author: blendix
Date: 2013-01-15 11:14:27 +0000 (Tue, 15 Jan 2013)
Log Message:
-----------
Fix #33875: minimize stretch UV tool incremented in steps of 0.2 instead of 0.1,
and now also shows the shortcut keys for setting the blend value.
Modified Paths:
--------------
trunk/blender/source/blender/editors/uvedit/uvedit_unwrap_ops.c
Modified: trunk/blender/source/blender/editors/uvedit/uvedit_unwrap_ops.c
===================================================================
--- trunk/blender/source/blender/editors/uvedit/uvedit_unwrap_ops.c 2013-01-15 10:47:44 UTC (rev 53812)
+++ trunk/blender/source/blender/editors/uvedit/uvedit_unwrap_ops.c 2013-01-15 11:14:27 UTC (rev 53813)
@@ -603,7 +603,7 @@
param_flush(ms->handle);
if (sa) {
- BLI_snprintf(str, sizeof(str), "Minimize Stretch. Blend %.2f", ms->blend);
+ BLI_snprintf(str, sizeof(str), "Minimize Stretch. Blend %.2f (Press + and -, or scroll wheel to set)", ms->blend);
ED_area_headerprint(sa, str);
}
@@ -686,20 +686,24 @@
return OPERATOR_FINISHED;
case PADPLUSKEY:
case WHEELUPMOUSE:
- if (ms->blend < 0.95f) {
- ms->blend += 0.1f;
- ms->lasttime = 0.0f;
- RNA_float_set(op->ptr, "blend", ms->blend);
- minimize_stretch_iteration(C, op, 1);
+ if(event->val == KM_PRESS) {
+ if (ms->blend < 0.95f) {
+ ms->blend += 0.1f;
+ ms->lasttime = 0.0f;
+ RNA_float_set(op->ptr, "blend", ms->blend);
+ minimize_stretch_iteration(C, op, 1);
+ }
}
break;
case PADMINUS:
case WHEELDOWNMOUSE:
- if (ms->blend > 0.05f) {
- ms->blend -= 0.1f;
- ms->lasttime = 0.0f;
- RNA_float_set(op->ptr, "blend", ms->blend);
- minimize_stretch_iteration(C, op, 1);
+ if(event->val == KM_PRESS) {
+ if (ms->blend > 0.05f) {
+ ms->blend -= 0.1f;
+ ms->lasttime = 0.0f;
+ RNA_float_set(op->ptr, "blend", ms->blend);
+ minimize_stretch_iteration(C, op, 1);
+ }
}
break;
case TIMER:
More information about the Bf-blender-cvs
mailing list