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>2018-09-21 06:03:25 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-09-21 06:48:22 +0300
commit7a3474ddfd21742357ac934b31e82bd3bdefbb84 (patch)
tree56b8a1a7b263bb44504ad93ecc62beb2b4ad07dc /source/blender/editors/mesh/editmesh_extrude_spin.c
parent3266ebf9e5df19460ce4960e6c7b7f3618611229 (diff)
Gizmo: spin tool XYZ axis toggles
New handle type for initial spin, gives clear differentiation between do & redo (similar to extrude). Some tweaks still required to match T56571.
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, 2 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh_extrude_spin.c b/source/blender/editors/mesh/editmesh_extrude_spin.c
index 31fd5ea670b..701c8cee98b 100644
--- a/source/blender/editors/mesh/editmesh_extrude_spin.c
+++ b/source/blender/editors/mesh/editmesh_extrude_spin.c
@@ -40,6 +40,7 @@
#include "RNA_define.h"
#include "RNA_access.h"
+#include "RNA_enum_types.h"
#include "WM_api.h"
#include "WM_types.h"
@@ -189,5 +190,6 @@ void MESH_OT_spin(wmOperatorType *ot)
WM_gizmogrouptype_append(MESH_GGT_spin);
#ifdef USE_GIZMO
WM_gizmogrouptype_append(MESH_GGT_spin_redo);
+ RNA_def_enum_flag(ot->srna, "gizmo_axis", rna_enum_axis_flag_xyz_items, (1 << 2), "Axis", "");
#endif
}