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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-05-21 14:13:44 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-05-21 14:13:44 +0400
commit0c4cc6c53f7ac29c3431106b8cae9a87db742389 (patch)
tree1a774cbb16c2b0d94bb5d6c7c51a55e5273e87f4 /source/blender/editors/uvedit/uvedit_unwrap_ops.c
parentbc0e3ffc0c3fee50926ef4e100f03bfad5178d62 (diff)
Related to #35452: show warning when unwrapping object with negative scale, same
as we already do for non-uniform scale.
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_unwrap_ops.c')
-rw-r--r--source/blender/editors/uvedit/uvedit_unwrap_ops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.c b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
index 1a32d9007c9..8d7b8dc4e28 100644
--- a/source/blender/editors/uvedit/uvedit_unwrap_ops.c
+++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
@@ -1184,6 +1184,9 @@ static int unwrap_exec(bContext *C, wmOperator *op)
if (!(fabsf(obsize[0] - obsize[1]) < 1e-4f && fabsf(obsize[1] - obsize[2]) < 1e-4f))
BKE_report(op->reports, RPT_INFO,
"Object has non-uniform scale, unwrap will operate on a non-scaled version of the mesh");
+ else if (is_negative_m4(obedit->obmat))
+ BKE_report(op->reports, RPT_INFO,
+ "Object has negative scale, unwrap will operate on a non-flipped version of the mesh");
/* remember last method for live unwrap */
if (RNA_struct_property_is_set(op->ptr, "method"))