Revision: 37559
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37559
Author:   psy-fi
Date:     2011-06-16 15:57:54 +0000 (Thu, 16 Jun 2011)
Log Message:
-----------
warning added when unwrapping a scaled mesh.

Modified Paths:
--------------
    branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_unwrap_ops.c

Modified: 
branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_unwrap_ops.c
===================================================================
--- branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_unwrap_ops.c   
2011-06-16 15:31:35 UTC (rev 37558)
+++ branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_unwrap_ops.c   
2011-06-16 15:57:54 UTC (rev 37559)
@@ -57,6 +57,7 @@
 #include "BKE_depsgraph.h"
 #include "BKE_image.h"
 #include "BKE_mesh.h"
+#include "BKE_report.h"
 
 #include "PIL_time.h"
 
@@ -1129,6 +1130,11 @@
                return OPERATOR_CANCELLED;
        }
 
+       if(obedit->size[0] != 1.0 || obedit->size[1] != 1.0 || obedit->size[2] 
!= 1.0 ||
+               obedit->dsize[0] != 1.0 || obedit->dsize[1] != 1.0 || 
obedit->dsize[2] != 1.0){
+               BKE_report(op->reports, RPT_WARNING, "Object scale is not 1.0. 
Unwrap will operate on a non-scaled version of the mesh.");
+       }
+
        /* remember last method for live unwrap */
        scene->toolsettings->unwrapper = method;
        

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to