forked from bartvdbraak/blender
Assorted tweaks for subdivide operator ranges - soft/hard ranges were swapped.
This commit is contained in:
parent
9b0a3ee9ce
commit
caa11aae04
@ -1139,7 +1139,7 @@ static int separate_armature_exec (bContext *C, wmOperator *op)
|
||||
void ARMATURE_OT_separate (wmOperatorType *ot)
|
||||
{
|
||||
/* identifiers */
|
||||
ot->name= "Separate Armature";
|
||||
ot->name= "Separate Bones";
|
||||
ot->idname= "ARMATURE_OT_separate";
|
||||
ot->description= "Isolate selected bones into a separate armature.";
|
||||
|
||||
@ -3573,7 +3573,7 @@ void ARMATURE_OT_subdivide_multi(wmOperatorType *ot)
|
||||
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
|
||||
|
||||
/* Properties */
|
||||
RNA_def_int(ot->srna, "number_cuts", 2, 1, 10, "Number of Cuts", "", 1, INT_MAX);
|
||||
RNA_def_int(ot->srna, "number_cuts", 2, 1, INT_MAX, "Number of Cuts", "", 1, 10);
|
||||
}
|
||||
|
||||
|
||||
@ -3631,7 +3631,7 @@ void ARMATURE_OT_subdivs(wmOperatorType *ot)
|
||||
RNA_def_enum(ot->srna, "type", type_items, 0, "Type", "");
|
||||
|
||||
/* this is temp, the ops are different, but they are called from subdivs, so all the possible props should be here as well*/
|
||||
RNA_def_int(ot->srna, "number_cuts", 2, 1, 10, "Number of Cuts", "", 1, INT_MAX);
|
||||
RNA_def_int(ot->srna, "number_cuts", 2, 1, INT_MAX, "Number of Cuts", "", 1, 10);
|
||||
}
|
||||
|
||||
/* ----------- */
|
||||
|
@ -6711,9 +6711,9 @@ void MESH_OT_subdivide(wmOperatorType *ot)
|
||||
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
|
||||
|
||||
/* properties */
|
||||
RNA_def_int(ot->srna, "number_cuts", 1, 1, 10, "Number of Cuts", "", 1, INT_MAX);
|
||||
RNA_def_int(ot->srna, "number_cuts", 1, 1, INT_MAX, "Number of Cuts", "", 1, 10);
|
||||
RNA_def_float(ot->srna, "fractal", 0.0, 0.0f, FLT_MAX, "Fractal", "Fractal randomness factor.", 0.0f, 1000.0f);
|
||||
RNA_def_float(ot->srna, "smoothness", 0.0f, 0.0f, 1000.0f, "Smoothness", "Smoothness factor.", 0.0f, FLT_MAX);
|
||||
RNA_def_float(ot->srna, "smoothness", 0.0f, 0.0f, FLT_MAX, "Smoothness", "Smoothness factor.", 0.0f, 1000.0f);
|
||||
}
|
||||
|
||||
/********************** Fill Operators *************************/
|
||||
|
@ -2314,7 +2314,6 @@ void RNA_def_scene(BlenderRNA *brna)
|
||||
{
|
||||
StructRNA *srna;
|
||||
PropertyRNA *prop;
|
||||
// PropertyRNA *prop_act;
|
||||
FunctionRNA *func;
|
||||
|
||||
static EnumPropertyItem audio_distance_model_items[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user