|
|
|
@ -134,19 +134,20 @@ void MESH_OT_subdivide(wmOperatorType *ot)
|
|
|
|
|
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
|
|
|
|
|
|
|
|
|
/* properties */
|
|
|
|
|
prop = RNA_def_int(ot->srna, "number_cuts", 1, 1, INT_MAX, "Number of Cuts", "", 1, 10);
|
|
|
|
|
prop = RNA_def_int(ot->srna, "number_cuts", 1, 1, 100, "Number of Cuts", "", 1, 10);
|
|
|
|
|
/* avoid re-using last var because it can cause _very_ high poly meshes and annoy users (or worse crash) */
|
|
|
|
|
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
|
|
|
|
|
|
|
|
|
RNA_def_float(ot->srna, "smoothness", 0.0f, 0.0f, FLT_MAX, "Smoothness", "Smoothness factor", 0.0f, 1.0f);
|
|
|
|
|
RNA_def_float(ot->srna, "smoothness", 0.0f, 0.0f, 1e3f, "Smoothness", "Smoothness factor", 0.0f, 1.0f);
|
|
|
|
|
|
|
|
|
|
RNA_def_boolean(ot->srna, "quadtri", 0, "Quad/Tri Mode", "Tries to prevent ngons");
|
|
|
|
|
RNA_def_enum(ot->srna, "quadcorner", prop_mesh_cornervert_types, SUBD_CORNER_STRAIGHT_CUT,
|
|
|
|
|
"Quad Corner Type", "How to subdivide quad corners (anything other than Straight Cut will prevent ngons)");
|
|
|
|
|
|
|
|
|
|
RNA_def_float(ot->srna, "fractal", 0.0f, 0.0f, FLT_MAX, "Fractal", "Fractal randomness factor", 0.0f, 1000.0f);
|
|
|
|
|
RNA_def_float(ot->srna, "fractal_along_normal", 0.0f, 0.0f, 1.0f, "Along Normal", "Apply fractal displacement along normal only", 0.0f, 1.0f);
|
|
|
|
|
RNA_def_int(ot->srna, "seed", 0, 0, 10000, "Random Seed", "Seed for the random number generator", 0, 50);
|
|
|
|
|
RNA_def_float(ot->srna, "fractal", 0.0f, 0.0f, 1e6f, "Fractal", "Fractal randomness factor", 0.0f, 1000.0f);
|
|
|
|
|
RNA_def_float(ot->srna, "fractal_along_normal", 0.0f, 0.0f, 1.0f,
|
|
|
|
|
"Along Normal", "Apply fractal displacement along normal only", 0.0f, 1.0f);
|
|
|
|
|
RNA_def_int(ot->srna, "seed", 0, 0, INT_MAX, "Random Seed", "Seed for the random number generator", 0, 50);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* -------------------------------------------------------------------- */
|
|
|
|
@ -176,18 +177,18 @@ static void mesh_operator_edgering_props(wmOperatorType *ot, const int cuts_defa
|
|
|
|
|
|
|
|
|
|
PropertyRNA *prop;
|
|
|
|
|
|
|
|
|
|
prop = RNA_def_int(ot->srna, "number_cuts", cuts_default, 0, INT_MAX, "Number of Cuts", "", 0, 64);
|
|
|
|
|
prop = RNA_def_int(ot->srna, "number_cuts", cuts_default, 0, 1000, "Number of Cuts", "", 0, 64);
|
|
|
|
|
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
|
|
|
|
|
|
|
|
|
RNA_def_enum(ot->srna, "interpolation", prop_subd_edgering_types, SUBD_RING_INTERP_PATH,
|
|
|
|
|
"Interpolation", "Interpolation method");
|
|
|
|
|
|
|
|
|
|
RNA_def_float(ot->srna, "smoothness", 1.0f, 0.0f, FLT_MAX,
|
|
|
|
|
RNA_def_float(ot->srna, "smoothness", 1.0f, 0.0f, 1e3f,
|
|
|
|
|
"Smoothness", "Smoothness factor", 0.0f, 2.0f);
|
|
|
|
|
|
|
|
|
|
/* profile-shape */
|
|
|
|
|
RNA_def_float(ot->srna, "profile_shape_factor", 0.0f, -FLT_MAX, FLT_MAX,
|
|
|
|
|
"Profile Factor", "", -2.0f, 2.0f);
|
|
|
|
|
RNA_def_float(ot->srna, "profile_shape_factor", 0.0f, -1e3f, 1e3f,
|
|
|
|
|
"Profile Factor", "How much intermediary new edges are shrunk/expanded", -2.0f, 2.0f);
|
|
|
|
|
|
|
|
|
|
prop = RNA_def_property(ot->srna, "profile_shape", PROP_ENUM, PROP_NONE);
|
|
|
|
|
RNA_def_property_enum_items(prop, proportional_falloff_curve_only_items);
|
|
|
|
@ -289,7 +290,7 @@ void MESH_OT_unsubdivide(wmOperatorType *ot)
|
|
|
|
|
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
|
|
|
|
|
|
|
|
|
/* props */
|
|
|
|
|
RNA_def_int(ot->srna, "iterations", 2, 1, INT_MAX, "Iterations", "Number of times to unsubdivide", 1, 100);
|
|
|
|
|
RNA_def_int(ot->srna, "iterations", 2, 1, 1000, "Iterations", "Number of times to unsubdivide", 1, 100);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void EMBM_project_snap_verts(bContext *C, ARegion *ar, BMEditMesh *em)
|
|
|
|
@ -1343,7 +1344,7 @@ void MESH_OT_face_make_planar(wmOperatorType *ot)
|
|
|
|
|
|
|
|
|
|
/* props */
|
|
|
|
|
RNA_def_float(ot->srna, "factor", 1.0f, -10.0f, 10.0f, "Factor", "", 0.0f, 1.0f);
|
|
|
|
|
RNA_def_int(ot->srna, "repeat", 1, 1, 200, "Iterations", "", 1, 200);
|
|
|
|
|
RNA_def_int(ot->srna, "repeat", 1, 1, 10000, "Iterations", "", 1, 200);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1580,7 +1581,7 @@ void MESH_OT_hide(wmOperatorType *ot)
|
|
|
|
|
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
|
|
|
|
|
|
|
|
|
/* props */
|
|
|
|
|
RNA_def_boolean(ot->srna, "unselected", 0, "Unselected", "Hide unselected rather than selected");
|
|
|
|
|
RNA_def_boolean(ot->srna, "unselected", false, "Unselected", "Hide unselected rather than selected");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int edbm_reveal_exec(bContext *C, wmOperator *UNUSED(op))
|
|
|
|
@ -1642,7 +1643,7 @@ void MESH_OT_normals_make_consistent(wmOperatorType *ot)
|
|
|
|
|
/* flags */
|
|
|
|
|
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
|
|
|
|
|
|
|
|
|
RNA_def_boolean(ot->srna, "inside", 0, "Inside", "");
|
|
|
|
|
RNA_def_boolean(ot->srna, "inside", false, "Inside", "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1729,9 +1730,9 @@ void MESH_OT_vertices_smooth(wmOperatorType *ot)
|
|
|
|
|
|
|
|
|
|
RNA_def_float(ot->srna, "factor", 0.5f, -10.0f, 10.0f, "Smoothing", "Smoothing factor", 0.0f, 1.0f);
|
|
|
|
|
RNA_def_int(ot->srna, "repeat", 1, 1, 1000, "Repeat", "Number of times to smooth the mesh", 1, 100);
|
|
|
|
|
RNA_def_boolean(ot->srna, "xaxis", 1, "X-Axis", "Smooth along the X axis");
|
|
|
|
|
RNA_def_boolean(ot->srna, "yaxis", 1, "Y-Axis", "Smooth along the Y axis");
|
|
|
|
|
RNA_def_boolean(ot->srna, "zaxis", 1, "Z-Axis", "Smooth along the Z axis");
|
|
|
|
|
RNA_def_boolean(ot->srna, "xaxis", true, "X-Axis", "Smooth along the X axis");
|
|
|
|
|
RNA_def_boolean(ot->srna, "yaxis", true, "Y-Axis", "Smooth along the Y axis");
|
|
|
|
|
RNA_def_boolean(ot->srna, "zaxis", true, "Z-Axis", "Smooth along the Z axis");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int edbm_do_smooth_laplacian_vertex_exec(bContext *C, wmOperator *op)
|
|
|
|
@ -1806,16 +1807,16 @@ void MESH_OT_vertices_smooth_laplacian(wmOperatorType *ot)
|
|
|
|
|
/* flags */
|
|
|
|
|
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
|
|
|
|
|
|
|
|
|
RNA_def_int(ot->srna, "repeat", 1, 1, 200,
|
|
|
|
|
RNA_def_int(ot->srna, "repeat", 1, 1, 1000,
|
|
|
|
|
"Number of iterations to smooth the mesh", "", 1, 200);
|
|
|
|
|
RNA_def_float(ot->srna, "lambda_factor", 0.00005f, 0.0000001f, 1000.0f,
|
|
|
|
|
"Lambda factor", "", 0.0000001f, 1000.0f);
|
|
|
|
|
RNA_def_float(ot->srna, "lambda_border", 0.00005f, 0.0000001f, 1000.0f,
|
|
|
|
|
"Lambda factor in border", "", 0.0000001f, 1000.0f);
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_x", 1, "Smooth X Axis", "Smooth object along X axis");
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_y", 1, "Smooth Y Axis", "Smooth object along Y axis");
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_z", 1, "Smooth Z Axis", "Smooth object along Z axis");
|
|
|
|
|
RNA_def_boolean(ot->srna, "preserve_volume", 1, "Preserve Volume", "Apply volume preservation after smooth");
|
|
|
|
|
RNA_def_float(ot->srna, "lambda_factor", 5e-5f, 1e-7f, 1000.0f,
|
|
|
|
|
"Lambda factor", "", 1e-7f, 1000.0f);
|
|
|
|
|
RNA_def_float(ot->srna, "lambda_border", 5e-5f, 1e-7f, 1000.0f,
|
|
|
|
|
"Lambda factor in border", "", 1e-7f, 1000.0f);
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_x", true, "Smooth X Axis", "Smooth object along X axis");
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_y", true, "Smooth Y Axis", "Smooth object along Y axis");
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_z", true, "Smooth Z Axis", "Smooth object along Z axis");
|
|
|
|
|
RNA_def_boolean(ot->srna, "preserve_volume", true, "Preserve Volume", "Apply volume preservation after smooth");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/********************** Smooth/Solid Operators *************************/
|
|
|
|
@ -2254,7 +2255,7 @@ void MESH_OT_merge(wmOperatorType *ot)
|
|
|
|
|
/* properties */
|
|
|
|
|
ot->prop = RNA_def_enum(ot->srna, "type", merge_type_items, 3, "Type", "Merge method to use");
|
|
|
|
|
RNA_def_enum_funcs(ot->prop, merge_type_itemf);
|
|
|
|
|
RNA_def_boolean(ot->srna, "uvs", 0, "UVs", "Move UVs according to merge");
|
|
|
|
|
RNA_def_boolean(ot->srna, "uvs", false, "UVs", "Move UVs according to merge");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2330,9 +2331,9 @@ void MESH_OT_remove_doubles(wmOperatorType *ot)
|
|
|
|
|
/* flags */
|
|
|
|
|
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
|
|
|
|
|
|
|
|
|
RNA_def_float(ot->srna, "threshold", 0.0001f, 0.000001f, 50.0f, "Merge Distance",
|
|
|
|
|
"Minimum distance between elements to merge", 0.00001, 10.0);
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_unselected", 0, "Unselected", "Merge selected to other unselected vertices");
|
|
|
|
|
RNA_def_float(ot->srna, "threshold", 1e-4f, 1e-6f, 50.0f, "Merge Distance",
|
|
|
|
|
"Minimum distance between elements to merge", 1e-5f, 10.0f);
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_unselected", false, "Unselected", "Merge selected to other unselected vertices");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2527,8 +2528,8 @@ void MESH_OT_blend_from_shape(wmOperatorType *ot)
|
|
|
|
|
prop = RNA_def_enum(ot->srna, "shape", DummyRNA_NULL_items, 0, "Shape", "Shape key to use for blending");
|
|
|
|
|
RNA_def_enum_funcs(prop, shape_itemf);
|
|
|
|
|
RNA_def_property_flag(prop, PROP_ENUM_NO_TRANSLATE | PROP_NEVER_UNLINK);
|
|
|
|
|
RNA_def_float(ot->srna, "blend", 1.0f, -FLT_MAX, FLT_MAX, "Blend", "Blending factor", -2.0f, 2.0f);
|
|
|
|
|
RNA_def_boolean(ot->srna, "add", 1, "Add", "Add rather than blend between shapes");
|
|
|
|
|
RNA_def_float(ot->srna, "blend", 1.0f, -1e3f, 1e3f, "Blend", "Blending factor", -2.0f, 2.0f);
|
|
|
|
|
RNA_def_boolean(ot->srna, "add", true, "Add", "Add rather than blend between shapes");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int edbm_solidify_exec(bContext *C, wmOperator *op)
|
|
|
|
@ -2581,8 +2582,8 @@ void MESH_OT_solidify(wmOperatorType *ot)
|
|
|
|
|
/* flags */
|
|
|
|
|
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
|
|
|
|
|
|
|
|
|
prop = RNA_def_float(ot->srna, "thickness", 0.01f, -FLT_MAX, FLT_MAX, "thickness", "", -10.0f, 10.0f);
|
|
|
|
|
RNA_def_property_ui_range(prop, -10, 10, 0.1, 4);
|
|
|
|
|
prop = RNA_def_float(ot->srna, "thickness", 0.01f, -1e4f, 1e4f, "Thickness", "", -10.0f, 10.0f);
|
|
|
|
|
RNA_def_property_ui_range(prop, -10.0, 10.0, 0.1, 4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ******************************************************************** */
|
|
|
|
@ -2915,7 +2916,7 @@ void MESH_OT_knife_cut(wmOperatorType *ot)
|
|
|
|
|
RNA_def_property_struct_runtime(prop, &RNA_OperatorMousePath);
|
|
|
|
|
|
|
|
|
|
/* internal */
|
|
|
|
|
RNA_def_int(ot->srna, "cursor", BC_KNIFECURSOR, 0, INT_MAX, "Cursor", "", 0, INT_MAX);
|
|
|
|
|
RNA_def_int(ot->srna, "cursor", BC_KNIFECURSOR, 0, BC_NUMCURSORS, "Cursor", "", 0, BC_NUMCURSORS);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static Base *mesh_separate_tagged(Main *bmain, Scene *scene, Base *base_old, BMesh *bm_old)
|
|
|
|
@ -3578,11 +3579,11 @@ void MESH_OT_fill_grid(wmOperatorType *ot)
|
|
|
|
|
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
|
|
|
|
|
|
|
|
|
/* properties */
|
|
|
|
|
prop = RNA_def_int(ot->srna, "span", 1, 1, INT_MAX, "Span", "Number of sides (zero disables)", 1, 100);
|
|
|
|
|
prop = RNA_def_int(ot->srna, "span", 1, 1, 1000, "Span", "Number of sides (zero disables)", 1, 100);
|
|
|
|
|
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
|
|
|
|
prop = RNA_def_int(ot->srna, "offset", 0, INT_MIN, INT_MAX, "Offset", "Number of sides (zero disables)", -100, 100);
|
|
|
|
|
prop = RNA_def_int(ot->srna, "offset", 0, -1000, 1000, "Offset", "Number of sides (zero disables)", -100, 100);
|
|
|
|
|
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_interp_simple", 0, "Simple Blending", "");
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_interp_simple", false, "Simple Blending", "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int edbm_fill_holes_exec(bContext *C, wmOperator *op)
|
|
|
|
@ -3620,7 +3621,8 @@ void MESH_OT_fill_holes(wmOperatorType *ot)
|
|
|
|
|
/* flags */
|
|
|
|
|
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
|
|
|
|
|
|
|
|
|
RNA_def_int(ot->srna, "sides", 4, 0, INT_MAX, "Sides", "Number of sides in hole required to fill (zero fills all holes)", 0, 100);
|
|
|
|
|
RNA_def_int(ot->srna, "sides", 4, 0, 1000,
|
|
|
|
|
"Sides", "Number of sides in hole required to fill (zero fills all holes)", 0, 100);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int edbm_beautify_fill_exec(bContext *C, wmOperator *op)
|
|
|
|
@ -3740,9 +3742,10 @@ void MESH_OT_poke(wmOperatorType *ot)
|
|
|
|
|
/* flags */
|
|
|
|
|
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
|
|
|
|
|
|
|
|
|
RNA_def_float(ot->srna, "offset", 0.0f, -FLT_MAX, FLT_MAX, "Poke Offset", "Poke Offset", -1.0f, 1.0f);
|
|
|
|
|
RNA_def_float(ot->srna, "offset", 0.0f, -1e3f, 1e3f, "Poke Offset", "Poke Offset", -1.0f, 1.0f);
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_relative_offset", false, "Offset Relative", "Scale the offset by surrounding geometry");
|
|
|
|
|
RNA_def_enum(ot->srna, "center_mode", poke_center_modes, BMOP_POKE_MEAN_WEIGHTED, "Poke Center", "Poke Face Center Calculation");
|
|
|
|
|
RNA_def_enum(ot->srna, "center_mode", poke_center_modes, BMOP_POKE_MEAN_WEIGHTED,
|
|
|
|
|
"Poke Center", "Poke Face Center Calculation");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/********************** Quad/Tri Operators *************************/
|
|
|
|
@ -3858,11 +3861,11 @@ static void join_triangle_props(wmOperatorType *ot)
|
|
|
|
|
"Max Shape Angle", "Shape angle limit", 0.0f, DEG2RADF(180.0f));
|
|
|
|
|
RNA_def_property_float_default(prop, DEG2RADF(40.0f));
|
|
|
|
|
|
|
|
|
|
RNA_def_boolean(ot->srna, "uvs", 0, "Compare UVs", "");
|
|
|
|
|
RNA_def_boolean(ot->srna, "vcols", 0, "Compare VCols", "");
|
|
|
|
|
RNA_def_boolean(ot->srna, "seam", 0, "Compare Seam", "");
|
|
|
|
|
RNA_def_boolean(ot->srna, "sharp", 0, "Compare Sharp", "");
|
|
|
|
|
RNA_def_boolean(ot->srna, "materials", 0, "Compare Materials", "");
|
|
|
|
|
RNA_def_boolean(ot->srna, "uvs", false, "Compare UVs", "");
|
|
|
|
|
RNA_def_boolean(ot->srna, "vcols", false, "Compare VCols", "");
|
|
|
|
|
RNA_def_boolean(ot->srna, "seam", false, "Compare Seam", "");
|
|
|
|
|
RNA_def_boolean(ot->srna, "sharp", false, "Compare Sharp", "");
|
|
|
|
|
RNA_def_boolean(ot->srna, "materials", false, "Compare Materials", "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MESH_OT_tris_convert_to_quads(wmOperatorType *ot)
|
|
|
|
@ -3898,12 +3901,12 @@ static void edbm_dissolve_prop__use_verts(wmOperatorType *ot, bool value, int fl
|
|
|
|
|
}
|
|
|
|
|
static void edbm_dissolve_prop__use_face_split(wmOperatorType *ot)
|
|
|
|
|
{
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_face_split", 0, "Face Split",
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_face_split", false, "Face Split",
|
|
|
|
|
"Split off face corners to maintain surrounding geometry");
|
|
|
|
|
}
|
|
|
|
|
static void edbm_dissolve_prop__use_boundary_tear(wmOperatorType *ot)
|
|
|
|
|
{
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_boundary_tear", 0, "Tear Boundary",
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_boundary_tear", false, "Tear Boundary",
|
|
|
|
|
"Split off face corners instead of merging faces");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -4137,7 +4140,7 @@ void MESH_OT_dissolve_limited(wmOperatorType *ot)
|
|
|
|
|
prop = RNA_def_float_rotation(ot->srna, "angle_limit", 0, NULL, 0.0f, DEG2RADF(180.0f),
|
|
|
|
|
"Max Angle", "Angle limit", 0.0f, DEG2RADF(180.0f));
|
|
|
|
|
RNA_def_property_float_default(prop, DEG2RADF(5.0f));
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_dissolve_boundaries", 0, "All Boundaries",
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_dissolve_boundaries", false, "All Boundaries",
|
|
|
|
|
"Dissolve all vertices inbetween face boundaries");
|
|
|
|
|
RNA_def_enum_flag(ot->srna, "delimit", mesh_delimit_mode_items, 0, "Delimit",
|
|
|
|
|
"Delimit dissolve operation");
|
|
|
|
@ -4183,8 +4186,8 @@ void MESH_OT_dissolve_degenerate(wmOperatorType *ot)
|
|
|
|
|
/* flags */
|
|
|
|
|
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
|
|
|
|
|
|
|
|
|
RNA_def_float(ot->srna, "threshold", 0.0001f, 0.000001f, 50.0f, "Merge Distance",
|
|
|
|
|
"Minimum distance between elements to merge", 0.00001, 10.0);
|
|
|
|
|
RNA_def_float(ot->srna, "threshold", 1e-4f, 1e-6f, 50.0f, "Merge Distance",
|
|
|
|
|
"Minimum distance between elements to merge", 1e-5f, 10.0f);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -4937,7 +4940,7 @@ void MESH_OT_noise(wmOperatorType *ot)
|
|
|
|
|
/* flags */
|
|
|
|
|
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
|
|
|
|
|
|
|
|
|
RNA_def_float(ot->srna, "factor", 0.1f, -FLT_MAX, FLT_MAX, "Factor", "", 0.0f, 1.0f);
|
|
|
|
|
RNA_def_float(ot->srna, "factor", 0.1f, -1e4f, 1e4f, "Factor", "", 0.0f, 1.0f);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -5167,16 +5170,16 @@ void MESH_OT_wireframe(wmOperatorType *ot)
|
|
|
|
|
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
|
|
|
|
|
|
|
|
|
/* properties */
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_boundary", true, "Boundary", "Inset face boundaries");
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_even_offset", true, "Offset Even", "Scale the offset to give more even thickness");
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_boundary", true, "Boundary", "Inset face boundaries");
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_even_offset", true, "Offset Even", "Scale the offset to give more even thickness");
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_relative_offset", false, "Offset Relative", "Scale the offset by surrounding geometry");
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_replace", true, "Replace", "Remove original faces");
|
|
|
|
|
prop = RNA_def_float(ot->srna, "thickness", 0.01f, 0.0f, FLT_MAX, "Thickness", "", 0.0f, 10.0f);
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_replace", true, "Replace", "Remove original faces");
|
|
|
|
|
prop = RNA_def_float(ot->srna, "thickness", 0.01f, 0.0f, 1e4f, "Thickness", "", 0.0f, 10.0f);
|
|
|
|
|
/* use 1 rather then 10 for max else dragging the button moves too far */
|
|
|
|
|
RNA_def_property_ui_range(prop, 0.0, 1.0, 0.01, 4);
|
|
|
|
|
RNA_def_float(ot->srna, "offset", 0.01f, 0.0f, FLT_MAX, "Offset", "", 0.0f, 10.0f);
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_crease", false, "Crease", "Crease hub edges for improved subsurf");
|
|
|
|
|
prop = RNA_def_float(ot->srna, "crease_weight", 0.01f, 0.0f, FLT_MAX, "Crease weight", "", 0.0f, 1.0f);
|
|
|
|
|
RNA_def_float(ot->srna, "offset", 0.01f, 0.0f, 1e4f, "Offset", "", 0.0f, 10.0f);
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_crease", false, "Crease", "Crease hub edges for improved subsurf");
|
|
|
|
|
prop = RNA_def_float(ot->srna, "crease_weight", 0.01f, 0.0f, 1e3f, "Crease weight", "", 0.0f, 1.0f);
|
|
|
|
|
RNA_def_property_ui_range(prop, 0.0, 1.0, 0.1, 2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -5382,7 +5385,7 @@ void MESH_OT_symmetrize(struct wmOperatorType *ot)
|
|
|
|
|
ot->prop = RNA_def_enum(ot->srna, "direction", symmetrize_direction_items,
|
|
|
|
|
BMO_SYMMETRIZE_NEGATIVE_X,
|
|
|
|
|
"Direction", "Which sides to copy from and to");
|
|
|
|
|
RNA_def_float(ot->srna, "threshold", 0.0001, 0.0, 10.0, "Threshold", "", 0.00001, 0.1);
|
|
|
|
|
RNA_def_float(ot->srna, "threshold", 1e-4f, 0.0f, 10.0f, "Threshold", "", 1e-5f, 0.1f);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int mesh_symmetry_snap_exec(bContext *C, wmOperator *op)
|
|
|
|
@ -5506,8 +5509,8 @@ void MESH_OT_symmetry_snap(struct wmOperatorType *ot)
|
|
|
|
|
ot->prop = RNA_def_enum(ot->srna, "direction", symmetrize_direction_items,
|
|
|
|
|
BMO_SYMMETRIZE_NEGATIVE_X,
|
|
|
|
|
"Direction", "Which sides to copy from and to");
|
|
|
|
|
RNA_def_float(ot->srna, "threshold", 0.05, 0.0, 10.0, "Threshold", "", 0.0001, 1.0);
|
|
|
|
|
RNA_def_float(ot->srna, "factor", 0.5f, 0.0, 1.0, "Factor", "", 0.0, 1.0);
|
|
|
|
|
RNA_def_float(ot->srna, "threshold", 0.05f, 0.0f, 10.0f, "Threshold", "", 1e-4f, 1.0f);
|
|
|
|
|
RNA_def_float(ot->srna, "factor", 0.5f, 0.0f, 1.0f, "Factor", "", 0.0f, 1.0f);
|
|
|
|
|
RNA_def_boolean(ot->srna, "use_center", true, "Center", "Snap mid verts to the axis center");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -5574,7 +5577,7 @@ void MESH_OT_mark_freestyle_edge(wmOperatorType *ot)
|
|
|
|
|
/* flags */
|
|
|
|
|
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
|
|
|
|
|
|
|
|
|
prop = RNA_def_boolean(ot->srna, "clear", 0, "Clear", "");
|
|
|
|
|
prop = RNA_def_boolean(ot->srna, "clear", false, "Clear", "");
|
|
|
|
|
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -5638,7 +5641,7 @@ void MESH_OT_mark_freestyle_face(wmOperatorType *ot)
|
|
|
|
|
/* flags */
|
|
|
|
|
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
|
|
|
|
|
|
|
|
|
prop = RNA_def_boolean(ot->srna, "clear", 0, "Clear", "");
|
|
|
|
|
prop = RNA_def_boolean(ot->srna, "clear", false, "Clear", "");
|
|
|
|
|
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|