[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [42828] branches/soc-2011-onion-uv-tools/ source/blender/editors/uvedit/uvedit_unwrap_ops.c: correct fix for scale warning
Antony Riakiotakis
kalast at gmail.com
Thu Dec 22 19:08:23 CET 2011
Revision: 42828
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42828
Author: psy-fi
Date: 2011-12-22 18:08:17 +0000 (Thu, 22 Dec 2011)
Log Message:
-----------
correct fix for scale warning
Modified Paths:
--------------
branches/soc-2011-onion-uv-tools/source/blender/editors/uvedit/uvedit_unwrap_ops.c
Modified: branches/soc-2011-onion-uv-tools/source/blender/editors/uvedit/uvedit_unwrap_ops.c
===================================================================
--- branches/soc-2011-onion-uv-tools/source/blender/editors/uvedit/uvedit_unwrap_ops.c 2011-12-22 16:39:57 UTC (rev 42827)
+++ branches/soc-2011-onion-uv-tools/source/blender/editors/uvedit/uvedit_unwrap_ops.c 2011-12-22 18:08:17 UTC (rev 42828)
@@ -1204,8 +1204,8 @@
}
if((fabs(obedit->size[0] - 1.0) > UNWRAP_SCALE_EPSILON) || (fabs(obedit->size[1] - 1.0) > UNWRAP_SCALE_EPSILON) ||
- (fabs(obedit->size[2] - 1.0) > UNWRAP_SCALE_EPSILON) || (fabs(obedit->dsize[0] - 1.0) > UNWRAP_SCALE_EPSILON) ||
- (fabs(obedit->dsize[1] - 1.0) > UNWRAP_SCALE_EPSILON) || (fabs(obedit->dsize[2] - 1.0) > UNWRAP_SCALE_EPSILON)){
+ (fabs(obedit->size[2] - 1.0) > UNWRAP_SCALE_EPSILON) || (fabs(obedit->dscale[0] - 1.0) > UNWRAP_SCALE_EPSILON) ||
+ (fabs(obedit->dscale[1] - 1.0) > UNWRAP_SCALE_EPSILON) || (fabs(obedit->dscale[2] - 1.0) > UNWRAP_SCALE_EPSILON)){
BKE_report(op->reports, RPT_WARNING, "Object scale is not 1.0. Unwrap will operate on a non-scaled version of the mesh.");
}
More information about the Bf-blender-cvs
mailing list