Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_opdefines.c')
-rw-r--r--source/blender/bmesh/intern/bmesh_opdefines.c22
1 files changed, 19 insertions, 3 deletions
diff --git a/source/blender/bmesh/intern/bmesh_opdefines.c b/source/blender/bmesh/intern/bmesh_opdefines.c
index 7865c79323d..bf53e84efa7 100644
--- a/source/blender/bmesh/intern/bmesh_opdefines.c
+++ b/source/blender/bmesh/intern/bmesh_opdefines.c
@@ -1064,6 +1064,21 @@ static BMOpDefine bmo_extrude_face_region_def = {
(BMO_OPTYPE_FLAG_NORMALS_CALC),
};
+extern void bmo_test_mres_smooth_exec(BMesh *bm, BMOperator *op);
+
+static BMOpDefine bmo_test_mres_smooth_def = {
+ "test_mres_smooth",
+ /* slots_in */
+ {{{'\0'}}}, /* no input */
+ {{{'\0'}}}, /* no output */
+ bmo_test_mres_smooth_exec,
+ (
+ BMO_OPTYPE_FLAG_UNTAN_MULTIRES |
+ BMO_OPTYPE_FLAG_NORMALS_CALC |
+ BMO_OPTYPE_FLAG_SELECT_FLUSH |
+ BMO_OPTYPE_FLAG_SELECT_VALIDATE)
+};
+
/*
* Dissolve Verts.
*/
@@ -1909,7 +1924,7 @@ static BMOpDefine bmo_inset_individual_def = {
},
bmo_inset_individual_exec,
/* caller needs to handle BMO_OPTYPE_FLAG_SELECT_FLUSH */
- (BMO_OPTYPE_FLAG_NORMALS_CALC),
+ (BMO_OPTYPE_FLAG_NORMALS_CALC | BMO_OPTYPE_FLAG_UNTAN_MULTIRES),
};
/*
@@ -1938,7 +1953,7 @@ static BMOpDefine bmo_inset_region_def = {
},
bmo_inset_region_exec,
(BMO_OPTYPE_FLAG_NORMALS_CALC |
- BMO_OPTYPE_FLAG_SELECT_FLUSH),
+ BMO_OPTYPE_FLAG_SELECT_FLUSH | BMO_OPTYPE_FLAG_UNTAN_MULTIRES),
};
/*
@@ -1959,7 +1974,7 @@ static BMOpDefine bmo_offset_edgeloops_def = {
},
bmo_offset_edgeloops_exec,
(BMO_OPTYPE_FLAG_NORMALS_CALC |
- BMO_OPTYPE_FLAG_SELECT_FLUSH),
+ BMO_OPTYPE_FLAG_SELECT_FLUSH | BMO_OPTYPE_FLAG_UNTAN_MULTIRES),
};
/*
@@ -2178,6 +2193,7 @@ const BMOpDefine *bmo_opdefines[] = {
&bmo_unsubdivide_def,
&bmo_weld_verts_def,
&bmo_wireframe_def,
+ &bmo_test_mres_smooth_def
};
const int bmo_opdefines_total = ARRAY_SIZE(bmo_opdefines);