Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-01-04 08:17:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-04 08:17:49 +0300
commit0fe80121b9f073c6d9379f6a94cc0550704826e9 (patch)
tree766de783144b6bd6e6a97c60b79d30912927d086 /source/blender/editors/mesh/editmesh_extrude_spin.c
parenta68fef7c3545cc632f8b9a543a9c31755f39dddb (diff)
Spin Tool: don't flip when using a negative angle
The intention was to flip normals when extruding in the opposite direction, however the sign of the angle isn't meaningful unless the geometry center and region normal are taken into account. Disable, may add back in a way that works more predictably.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_extrude_spin.c')
-rw-r--r--source/blender/editors/mesh/editmesh_extrude_spin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_extrude_spin.c b/source/blender/editors/mesh/editmesh_extrude_spin.c
index e9758cb1a5a..50ea452f7f3 100644
--- a/source/blender/editors/mesh/editmesh_extrude_spin.c
+++ b/source/blender/editors/mesh/editmesh_extrude_spin.c
@@ -71,7 +71,7 @@ static int edbm_spin_exec(bContext *C, wmOperator *op)
RNA_float_get_array(op->ptr, "axis", axis);
const int steps = RNA_int_get(op->ptr, "steps");
const float angle = RNA_float_get(op->ptr, "angle");
- const bool use_normal_flip = RNA_boolean_get(op->ptr, "use_normal_flip") ^ (angle < 0.0f);
+ const bool use_normal_flip = RNA_boolean_get(op->ptr, "use_normal_flip");
const bool dupli = RNA_boolean_get(op->ptr, "dupli");
const bool use_auto_merge = (
RNA_boolean_get(op->ptr, "use_auto_merge") &&