Commit: ae5b912f7800978275a4c13502400c6217b6b231
Author: Antonio Vazquez
Date:   Sat Dec 17 16:35:54 2022 +0100
Branches: blender-v3.3-release
https://developer.blender.org/rBae5b912f7800978275a4c13502400c6217b6b231

Fix T103293: GPencil Multiframe Scale affects stroke thickness inversely

The problem was the falloff factor was applied directly
and in the thickness must be inversed. Now the thickess
is calculated using an interpolation.

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

M       source/blender/editors/transform/transform_mode.c

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

diff --git a/source/blender/editors/transform/transform_mode.c 
b/source/blender/editors/transform/transform_mode.c
index d8da7a11d28..0872f368ff4 100644
--- a/source/blender/editors/transform/transform_mode.c
+++ b/source/blender/editors/transform/transform_mode.c
@@ -1029,8 +1029,9 @@ void ElementResize(const TransInfo *t,
       applyNumInput(&num_evil, values_final_evil);
 
       float ratio = values_final_evil[0];
-      *td->val = td->ival * fabs(ratio) * gps->runtime.multi_frame_falloff;
-      CLAMP_MIN(*td->val, 0.001f);
+      float transformed_value = td->ival * fabs(ratio);
+      *td->val = max_ff(interpf(transformed_value, td->ival, 
gps->runtime.multi_frame_falloff),
+                        0.001f);
     }
   }
   else {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to