[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [47463] trunk/blender/source/blender/ editors/mask/mask_add.c: missed this last commit - account for weight scaling on adding points.

Campbell Barton ideasman42 at gmail.com
Tue Jun 5 14:58:18 CEST 2012


Revision: 47463
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=47463
Author:   campbellbarton
Date:     2012-06-05 12:58:17 +0000 (Tue, 05 Jun 2012)
Log Message:
-----------
missed this last commit - account for weight scaling on adding points.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/mask/mask_add.c

Modified: trunk/blender/source/blender/editors/mask/mask_add.c
===================================================================
--- trunk/blender/source/blender/editors/mask/mask_add.c	2012-06-05 12:51:11 UTC (rev 47462)
+++ trunk/blender/source/blender/editors/mask/mask_add.c	2012-06-05 12:58:17 UTC (rev 47463)
@@ -654,7 +654,12 @@
 	if (find_nearest_diff_point(C, mask, co, threshold, TRUE, &masklay, &spline, &point, &u, NULL)) {
 		Scene *scene = CTX_data_scene(C);
 		float w = BKE_mask_point_weight(spline, point, u);
+		float weight_scalar = BKE_mask_point_weight_scalar(spline, point, u);
 
+		if (weight_scalar != 0.0f) {
+			w = w / weight_scalar;
+		}
+
 		BKE_mask_point_add_uw(point, u, w);
 
 		BKE_mask_update_display(mask, scene->r.cfra);




More information about the Bf-blender-cvs mailing list