Cleanup: move extrude gizmo to transform module

Since this is no longer mesh only, move out of mesh,
rename next.
This commit is contained in:
2018-11-21 09:20:19 +11:00
parent 34b9bd3a9b
commit d3a75c48fd
7 changed files with 7 additions and 21 deletions

View File

@@ -166,6 +166,9 @@ void TRANSFORM_GGT_gizmo(struct wmGizmoGroupType *gzgt);
void VIEW3D_GGT_xform_cage(struct wmGizmoGroupType *gzgt);
void VIEW3D_GGT_xform_shear(struct wmGizmoGroupType *gzgt);
/* *** transform_gizmo_extrude_3d.c *** */
void MESH_GGT_extrude(struct wmGizmoGroupType *gzgt);
bool ED_widgetgroup_gizmo2d_poll(const struct bContext *C, struct wmGizmoGroupType *gzgt);
void ED_widgetgroup_gizmo2d_setup(const struct bContext *C, struct wmGizmoGroup *gzgroup);
void ED_widgetgroup_gizmo2d_refresh(const struct bContext *C, struct wmGizmoGroup *gzgroup);

View File

@@ -48,7 +48,6 @@ set(SRC
editmesh_bevel.c
editmesh_bisect.c
editmesh_extrude.c
editmesh_extrude_gizmo.c
editmesh_extrude_screw.c
editmesh_extrude_spin.c
editmesh_extrude_spin_gizmo.c

View File

@@ -54,8 +54,6 @@
#include "mesh_intern.h" /* own include */
#define USE_GIZMO
/* -------------------------------------------------------------------- */
/** \name Extrude Internal Utilities
* \{ */
@@ -502,10 +500,6 @@ void MESH_OT_extrude_context(wmOperatorType *ot)
RNA_def_boolean(ot->srna, "use_normal_flip", false, "Flip Normals", "");
Transform_Properties(ot, P_NO_DEFAULTS | P_MIRROR_DUMMY);
#ifdef USE_GIZMO
WM_gizmogrouptype_append(MESH_GGT_extrude);
#endif
}
/** \} */

View File

@@ -110,9 +110,6 @@ void MESH_OT_extrude_edges_indiv(struct wmOperatorType *ot);
void MESH_OT_extrude_faces_indiv(struct wmOperatorType *ot);
void MESH_OT_dupli_extrude_cursor(struct wmOperatorType *ot);
/* *** editmesh_extrude_gizmo.c *** */
void MESH_GGT_extrude(struct wmGizmoGroupType *gzgt);
/* *** editmesh_extrude_screw.c *** */
void MESH_OT_screw(struct wmOperatorType *ot);

View File

@@ -706,6 +706,7 @@ static void view3d_widgets(void)
WM_gizmogrouptype_append(VIEW3D_GGT_xform_shear);
WM_gizmogrouptype_append(VIEW3D_GGT_mesh_preselect_elem);
WM_gizmogrouptype_append(VIEW3D_GGT_mesh_preselect_edgering);
WM_gizmogrouptype_append(MESH_GGT_extrude);
WM_gizmogrouptype_append(VIEW3D_GGT_ruler);
WM_gizmotype_append(VIEW3D_GT_ruler_item);

View File

@@ -45,9 +45,10 @@ set(SRC
transform_constraints.c
transform_conversions.c
transform_generics.c
transform_input.c
transform_gizmo_2d.c
transform_gizmo_3d.c
transform_gizmo_extrude_3d.c
transform_input.c
transform_ops.c
transform_orientations.c
transform_snap.c

View File

@@ -15,17 +15,10 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* The Original Code is Copyright (C) 2004 by Blender Foundation.
* All rights reserved.
*
* The Original Code is: all of this file.
*
* Contributor(s): Joseph Eagar
*
* ***** END GPL LICENSE BLOCK *****
*/
/** \file blender/editors/mesh/editmesh_extrude_gizmo.c
/** \file blender/editors/transform/transform_gizmo_extrude_3d.c
* \ingroup edmesh
*/
@@ -53,8 +46,6 @@
#include "MEM_guardedalloc.h"
#include "mesh_intern.h" /* own include */
/* -------------------------------------------------------------------- */
/** \name Extrude Gizmo
* \{ */