[Bf-blender-cvs] [65dd1d7] master: Fix T48362: Spin tool broken after recent commit.

Bastien Montagne noreply at git.blender.org
Sat May 7 12:00:13 CEST 2016


Commit: 65dd1d7d081d437a918fbb9fc37515ba262d44d0
Author: Bastien Montagne
Date:   Sat May 7 11:58:33 2016 +0200
Branches: master
https://developer.blender.org/rB65dd1d7d081d437a918fbb9fc37515ba262d44d0

Fix T48362: Spin tool broken after recent commit.

Typo in rBrBa48d74079, spin tool was now using the wrong view axis.

===================================================================

M	source/blender/editors/mesh/editmesh_extrude.c

===================================================================

diff --git a/source/blender/editors/mesh/editmesh_extrude.c b/source/blender/editors/mesh/editmesh_extrude.c
index 2401b74..1dfb1cd 100644
--- a/source/blender/editors/mesh/editmesh_extrude.c
+++ b/source/blender/editors/mesh/editmesh_extrude.c
@@ -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]);
 		}
 	}




More information about the Bf-blender-cvs mailing list