Revision: 39028
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39028
Author:   jason_hays22
Date:     2011-08-04 16:07:24 +0000 (Thu, 04 Aug 2011)
Log Message:
-----------
Fixed a small problem with the Fix Deforms op involving the case where a weight 
was zero.
Adjusted the distance limitations on the UI to be more reasonable.

Modified Paths:
--------------
    branches/soc-2011-radish/source/blender/editors/object/object_vgroup.c

Modified: branches/soc-2011-radish/source/blender/editors/object/object_vgroup.c
===================================================================
--- branches/soc-2011-radish/source/blender/editors/object/object_vgroup.c      
2011-08-04 16:06:24 UTC (rev 39027)
+++ branches/soc-2011-radish/source/blender/editors/object/object_vgroup.c      
2011-08-04 16:07:24 UTC (rev 39028)
@@ -935,6 +935,7 @@
                        if(!dw->weight) {
                                changes[i][0] = 0;
                                changes[i][1] = 0;
+                               dists[i] = distToStart;
                                continue;
                        }
                        for(k = 0; k < 2; k++) {
@@ -2324,7 +2325,7 @@
        
        /* flags */
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
-       RNA_def_float(ot->srna, "dist", 0.0f, -FLT_MAX, FLT_MAX, "Distance", 
"The distance to move to.", -FLT_MAX, FLT_MAX);    
+       RNA_def_float(ot->srna, "dist", 0.0f, -FLT_MAX, FLT_MAX, "Distance", 
"The distance to move to.", -10.0f, 10.0f);        
        RNA_def_float(ot->srna, "strength", 1.f, -2.0f, FLT_MAX, "Strength", 
"The distance moved can be changed by this multiplier.", -2.0f, 2.0f);
        RNA_def_float(ot->srna, "cp", 1.0f, 0.05f, FLT_MAX, "Change 
Sensitivity", "Changes the amount weights are altered with each iteration: 
lower values are slower.", 0.05f, 1.f);
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to