Blender
V3.3
|
#include "DNA_object_types.h"
#include "BLI_math.h"
#include "BLI_string.h"
#include "BKE_context.h"
#include "BKE_editmesh.h"
#include "BKE_layer.h"
#include "BKE_report.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_types.h"
#include "ED_mesh.h"
#include "ED_screen.h"
#include "ED_view3d.h"
#include "MEM_guardedalloc.h"
#include "mesh_intern.h"
Go to the source code of this file.
Macros | |
#define | USE_GIZMO |
Functions | |
Spin Operator | |
static int | edbm_spin_exec (bContext *C, wmOperator *op) |
static int | edbm_spin_invoke (bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) |
static bool | edbm_spin_poll_property (const bContext *UNUSED(C), wmOperator *op, const PropertyRNA *prop) |
void | MESH_OT_spin (wmOperatorType *ot) |
#define USE_GIZMO |
Definition at line 31 of file editmesh_extrude_spin.c.
|
static |
Definition at line 37 of file editmesh_extrude_spin.c.
References angle(), BKE_editmesh_from_object(), BKE_report(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, bm, BM_ALL_NOLOOP, BM_ELEM_SELECT, BMO_op_exec(), BMO_slot_buffer_hflag_enable(), C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_flag_disable_all(), EDBM_op_finish(), EDBM_op_init(), EDBM_update(), fabsf, is_zero_v3(), M_PI, MEM_freeN, Object::obmat, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_float_get(), RNA_float_get_array(), RNA_int_get(), RPT_ERROR, BMOperator::slots_out, and steps.
Referenced by edbm_spin_invoke(), and MESH_OT_spin().
|
static |
Definition at line 109 of file editmesh_extrude_spin.c.
References C, CTX_data_main(), CTX_data_scene(), CTX_wm_view3d(), Scene::cursor, ED_view3d_context_rv3d(), edbm_spin_exec(), View3D::gizmo_flag, View3DCursor::location, OPERATOR_FINISHED, wmOperator::ptr, ret, RNA_property_float_set(), RNA_property_float_set_array(), RNA_property_is_set(), RNA_struct_find_property(), scene, V3D_GIZMO_HIDE, RegionView3D::viewinv, WM_gizmo_group_type_ensure_ptr(), WM_gizmo_group_type_reinit_ptr(), and WM_gizmogrouptype_find().
Referenced by MESH_OT_spin().
|
static |
Definition at line 153 of file editmesh_extrude_spin.c.
References wmOperator::ptr, RNA_boolean_get(), RNA_property_identifier(), and STR_ELEM.
Referenced by MESH_OT_spin().
void MESH_OT_spin | ( | wmOperatorType * | ot | ) |
Definition at line 168 of file editmesh_extrude_spin.c.
References DEG2RADF, wmOperatorType::description, ED_operator_editmesh(), edbm_spin_exec(), edbm_spin_invoke(), edbm_spin_poll_property(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, MESH_GGT_spin(), MESH_GGT_spin_redo(), wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::poll_property, PROP_ANGLE, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_float(), RNA_def_float_vector(), RNA_def_float_vector_xyz(), RNA_def_int(), RNA_def_property_flag(), RNA_def_property_subtype(), wmOperatorType::srna, and WM_gizmogrouptype_append().
Referenced by ED_operatortypes_mesh().