diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2012-05-12 20:42:50 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2012-05-12 20:42:50 +0400 |
commit | d4258c4ad6aed3c57073bd532ef91f74181ed27e (patch) | |
tree | eb8750a5af8faa0a23bab32769622a5982be7ac5 /source/blender/editors/uvedit | |
parent | 85fd56a3a8b3435c2101dcaf80d2e5a95a03ef57 (diff) |
Fix [#31426] Unwrapping, First unwrap unwraps with LSCM, not with Angle Based
When operator method property is not set, the operator uses the one from current scene settings. We must update the operator property accordingly...
Also updated default startup.blend file, to match default AngleBased method (was on Conformal one).
Diffstat (limited to 'source/blender/editors/uvedit')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_unwrap_ops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.c b/source/blender/editors/uvedit/uvedit_unwrap_ops.c index 7c05d08a774..6b03b5a1a8a 100644 --- a/source/blender/editors/uvedit/uvedit_unwrap_ops.c +++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.c @@ -1184,7 +1184,9 @@ static int unwrap_exec(bContext *C, wmOperator *op) /* remember last method for live unwrap */ if (RNA_struct_property_is_set(op->ptr, "method")) scene->toolsettings->unwrapper = method; - + else + RNA_enum_set(op->ptr, "method", scene->toolsettings->unwrapper); + scene->toolsettings->uv_subsurf_level = subsurf_level; if (fill_holes) scene->toolsettings->uvcalc_flag |= UVCALC_FILLHOLES; |