Revision: 49164
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49164
Author: psy-fi
Date: 2012-07-24 00:57:40 +0000 (Tue, 24 Jul 2012)
Log Message:
-----------
Mirrored Unwrap
===============
Pack after unwrap to get rid of the extra mirrored faces.
Modified Paths:
--------------
branches/soc-2012-bratwurst/source/blender/editors/uvedit/uvedit_unwrap_ops.c
Modified:
branches/soc-2012-bratwurst/source/blender/editors/uvedit/uvedit_unwrap_ops.c
===================================================================
---
branches/soc-2012-bratwurst/source/blender/editors/uvedit/uvedit_unwrap_ops.c
2012-07-24 00:39:20 UTC (rev 49163)
+++
branches/soc-2012-bratwurst/source/blender/editors/uvedit/uvedit_unwrap_ops.c
2012-07-24 00:57:40 UTC (rev 49164)
@@ -1367,11 +1367,20 @@
param_lscm_end(handle);
param_average(handle);
- param_pack(handle, scene->toolsettings->uvcalc_margin);
+ if(!use_mirror)
+ param_pack(handle, scene->toolsettings->uvcalc_margin);
param_flush(handle);
param_delete(handle);
+
+ /* we need to repack properly to discard mirrored faces */
+ if(use_mirror) {
+ handle = construct_param_handle(scene, obedit, 0, 0, 1, 1, 0);
+ param_pack(handle, scene->toolsettings->uvcalc_margin);
+ param_flush(handle);
+ param_delete(handle);
+ }
}
static int unwrap_exec(bContext *C, wmOperator *op)
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs