forked from bartvdbraak/blender
Fix for [#28425] when user prefs -> editing -> align to == "view" newly inserted objects do not show the applied rotation in the tools panel
Patch by Andrew Wiggin, thanks! :)
This commit is contained in:
parent
0de9af375b
commit
131c2a3208
@ -276,8 +276,10 @@ int ED_object_add_generic_get_opts(bContext *C, wmOperator *op, float *loc, floa
|
|||||||
RNA_boolean_set(op->ptr, "view_align", view_align);
|
RNA_boolean_set(op->ptr, "view_align", view_align);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (view_align)
|
if (view_align) {
|
||||||
ED_object_rotation_from_view(C, rot);
|
ED_object_rotation_from_view(C, rot);
|
||||||
|
RNA_float_set_array(op->ptr, "rotation", rot);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
RNA_float_get_array(op->ptr, "rotation", rot);
|
RNA_float_get_array(op->ptr, "rotation", rot);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user