Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-02-20 00:25:00 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-20 00:27:15 +0300
commita10dc319ca069a16ca103b867e96d2fb2c40c387 (patch)
treeccbb60168ff09c5a1fef12a5408622aa57de4afc /source/blender/modifiers/intern/MOD_normal_edit.c
parent39afc2775f8b3d46902b4c56841c4ab7bae86baa (diff)
Comment: clarify reason for using scale as size
Diffstat (limited to 'source/blender/modifiers/intern/MOD_normal_edit.c')
-rw-r--r--source/blender/modifiers/intern/MOD_normal_edit.c3
1 files changed, 3 insertions, 0 deletions
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);
}