[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45175] trunk/blender/source/blender/ editors/uvedit/uvedit_unwrap_ops.c: Fix #30676: UV unwrap did not create UV map with proper default coordinates.

Brecht Van Lommel brechtvanlommel at pandora.be
Mon Mar 26 15:21:21 CEST 2012


Revision: 45175
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45175
Author:   blendix
Date:     2012-03-26 13:21:13 +0000 (Mon, 26 Mar 2012)
Log Message:
-----------
Fix #30676: UV unwrap did not create UV map with proper default coordinates.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/uvedit/uvedit_unwrap_ops.c

Modified: trunk/blender/source/blender/editors/uvedit/uvedit_unwrap_ops.c
===================================================================
--- trunk/blender/source/blender/editors/uvedit/uvedit_unwrap_ops.c	2012-03-26 12:45:28 UTC (rev 45174)
+++ trunk/blender/source/blender/editors/uvedit/uvedit_unwrap_ops.c	2012-03-26 13:21:13 UTC (rev 45175)
@@ -105,6 +105,7 @@
 	if (em && em->bm->totface && !CustomData_has_layer(&em->bm->pdata, CD_MTEXPOLY)) {
 		BM_data_layer_add(em->bm, &em->bm->pdata, CD_MTEXPOLY);
 		BM_data_layer_add(em->bm, &em->bm->ldata, CD_MLOOPUV);
+		ED_mesh_uv_loop_reset_ex(C, obedit->data, 0);
 	}
 
 	if (!ED_uvedit_test(obedit)) {




More information about the Bf-blender-cvs mailing list