Fix T48362: Spin tool broken after recent commit.

Typo in rBrBa48d74079, spin tool was now using the wrong view axis.
This commit is contained in:
Bastien Montagne 2016-05-07 11:58:33 +02:00
parent 0a277f7428
commit 65dd1d7d08
Notes: blender-bot 2023-02-14 08:38:11 +01:00
Referenced by issue #48362, Spin Tool: broken behavior in recent builds, cannot make a proper spin extrusion when the Z-axis is involved
1 changed files with 1 additions and 1 deletions

View File

@ -740,7 +740,7 @@ static int edbm_spin_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(e
if (rv3d) {
prop = RNA_struct_find_property(op->ptr, "axis");
if (!RNA_property_is_set(op->ptr, prop)) {
RNA_property_float_set_array(op->ptr, prop, rv3d->viewinv[1]);
RNA_property_float_set_array(op->ptr, prop, rv3d->viewinv[2]);
}
}