Merge branch 'master' into blender2.8
This commit is contained in:
@@ -1357,11 +1357,6 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
|
||||
t->custom_orientation = custom_orientation;
|
||||
}
|
||||
|
||||
if (op && (prop = RNA_struct_find_property(op->ptr, "center_override")) && RNA_property_is_set(op->ptr, prop)) {
|
||||
RNA_property_float_get_array(op->ptr, prop, t->center);
|
||||
t->flag |= T_OVERRIDE_CENTER;
|
||||
}
|
||||
|
||||
if (op && ((prop = RNA_struct_find_property(op->ptr, "release_confirm")) &&
|
||||
RNA_property_is_set(op->ptr, prop)))
|
||||
{
|
||||
@@ -1465,6 +1460,13 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
|
||||
#endif
|
||||
|
||||
setTransformViewAspect(t, t->aspect);
|
||||
|
||||
if (op && (prop = RNA_struct_find_property(op->ptr, "center_override")) && RNA_property_is_set(op->ptr, prop)) {
|
||||
RNA_property_float_get_array(op->ptr, prop, t->center);
|
||||
mul_v3_v3(t->center, t->aspect);
|
||||
t->flag |= T_OVERRIDE_CENTER;
|
||||
}
|
||||
|
||||
setTransformViewMatrices(t);
|
||||
initNumInput(&t->num);
|
||||
}
|
||||
|
@@ -564,7 +564,7 @@ void Transform_Properties(struct wmOperatorType *ot, int flags)
|
||||
prop = RNA_def_property(ot->srna, "center_override", PROP_FLOAT, PROP_XYZ);
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE);
|
||||
RNA_def_property_ui_text(prop, "Center", "Force using this center value (when set)");
|
||||
RNA_def_property_ui_text(prop, "Center Override", "Force using this center value (when set)");
|
||||
}
|
||||
|
||||
if ((flags & P_NO_DEFAULTS) == 0) {
|
||||
|
Reference in New Issue
Block a user