[Bf-blender-cvs] [a10dc319ca0] master: Comment: clarify reason for using scale as size

Campbell Barton noreply at git.blender.org
Tue Feb 19 22:27:40 CET 2019


Commit: a10dc319ca069a16ca103b867e96d2fb2c40c387
Author: Campbell Barton
Date:   Wed Feb 20 08:25:00 2019 +1100
Branches: master
https://developer.blender.org/rBa10dc319ca069a16ca103b867e96d2fb2c40c387

Comment: clarify reason for using scale as size

===================================================================

M	source/blender/modifiers/intern/MOD_normal_edit.c

===================================================================

diff --git a/source/blender/modifiers/intern/MOD_normal_edit.c b/source/blender/modifiers/intern/MOD_normal_edit.c
index 8252347f53d..9421c61f14f 100644
--- a/source/blender/modifiers/intern/MOD_normal_edit.c
+++ b/source/blender/modifiers/intern/MOD_normal_edit.c
@@ -61,6 +61,9 @@ static void generate_vert_coordinates(
 	/* Get size (i.e. deformation of the spheroid generating normals), either from target object, or own geometry. */
 	if (r_size != NULL) {
 		if (ob_center != NULL) {
+			/* Using 'scale' as 'size' here. The input object is typically an empty
+			 * who's scale is used to define an ellipsoid instead of a simple sphere. */
+
 			/* Not we are not interested in signs here - they are even troublesome actually, due to security clamping! */
 			abs_v3_v3(r_size, ob_center->scale);
 		}



More information about the Bf-blender-cvs mailing list