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);
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs