Commit: 49a18cc91e55c92d5e0261d70b56eb3e2a10b0fa
Author: Antonio Vazquez
Date: Thu Dec 30 11:17:55 2021 +0100
Branches: master
https://developer.blender.org/rB49a18cc91e55c92d5e0261d70b56eb3e2a10b0fa
Fix T93163: GPencil scale thickness fails in negative scales
Before the negative scales produced a thickness invalid. Now, the value is used
in absolute value to avoid this situation.
===================================================================
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 d2e7f9f83df..2ab4cdff5e6 100644
--- a/source/blender/editors/transform/transform_mode.c
+++ b/source/blender/editors/transform/transform_mode.c
@@ -1042,7 +1042,7 @@ void ElementResize(const TransInfo *t,
applyNumInput(&num_evil, values_final_evil);
float ratio = values_final_evil[0];
- *td->val = td->ival * ratio * gps->runtime.multi_frame_falloff;
+ *td->val = td->ival * fabs(ratio) * gps->runtime.multi_frame_falloff;
CLAMP_MIN(*td->val, 0.001f);
}
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs