Blender
V3.3
|
#include "MEM_guardedalloc.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BKE_context.h"
#include "GPU_batch.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_prototypes.h"
#include "BKE_global.h"
#include "BKE_idprop.h"
#include "BKE_main.h"
#include "WM_api.h"
#include "WM_toolsystem.h"
#include "WM_types.h"
#include "ED_screen.h"
#include "ED_view3d.h"
#include "UI_interface.h"
#include "wm.h"
#include "wm_gizmo_intern.h"
#include "wm_gizmo_wmapi.h"
Go to the source code of this file.
Initialize default values and allocate needed memory for members.
Definition at line 103 of file wm_gizmo.c.
References wmGizmo::color, wmGizmo::color_hi, copy_v4_v4(), wmGizmo::line_width, and wmGizmo::scale_basis.
Referenced by wm_gizmo_register().
Definition at line 460 of file wm_gizmo.c.
References wmGizmoType::property_update, wmGizmoType::target_property_defs_len, wmGizmo::type, WM_gizmo_target_property_array(), and WM_gizmo_target_property_is_valid().
Referenced by wm_gizmo_update().
Definition at line 554 of file wm_gizmo.c.
References NULL, and WM_gizmo_calc_matrix_final_params().
Referenced by arrow_draw_intern(), button2d_draw_intern(), dial_draw_intern(), gizmo_arrow_invoke(), gizmo_arrow_test_select(), gizmo_button2d_bounds(), gizmo_cage2d_draw_intern(), gizmo_cage3d_draw_intern(), gizmo_move_invoke(), gizmo_primitive_draw_intern(), gizmo_primitive_invoke(), and move3d_draw_intern().
Definition at line 539 of file wm_gizmo.c.
References NULL, unit_m4(), and WM_gizmo_calc_matrix_final_params().
Referenced by button2d_draw_intern(), gizmo_button2d_bounds(), gizmo_cage2d_invoke(), and gizmo_calc_rect_view_scale().
void WM_gizmo_calc_matrix_final_params | ( | const wmGizmo * | gz, |
const struct WM_GizmoMatrixParams * | params, | ||
float | r_mat[4][4] | ||
) |
Definition at line 502 of file wm_gizmo.c.
References copy_m4_m4(), wmGizmo::flag, float(), wmGizmo::matrix_basis, wmGizmoType::matrix_basis_get, wmGizmo::matrix_offset, wmGizmo::matrix_space, mul_m4_m4m4(), mul_mat3_m4_fl(), NULL, params, wmGizmo::scale_final, wmGizmo::type, WM_GIZMO_DRAW_NO_SCALE, and WM_GIZMO_DRAW_OFFSET_SCALE.
Referenced by gizmo_axis_draw(), gizmo_calc_matrix_final_no_offset(), gizmo_window_project_2d(), gizmo_window_project_3d(), WM_gizmo_calc_matrix_final(), and WM_gizmo_calc_matrix_final_no_offset().
Definition at line 433 of file wm_gizmo.c.
References C, CTX_wm_region_view3d(), ED_view3d_pixel_size_no_ui_scale(), wmGizmoGroupType::flag, wmGizmo::matrix_basis, wmGizmoType::matrix_basis_get, wmGizmo::matrix_space, mul_m4_m4m4(), wmGizmo::parent_gzgroup, wmGizmo::scale_basis, wmGizmo::scale_final, wmGizmo::type, wmGizmoGroup::type, UI_DPI_FAC, and WM_GIZMOGROUPTYPE_SCALE.
Referenced by wm_gizmo_update().
bool WM_gizmo_context_check_drawstep | ( | const struct bContext * | C, |
eWM_GizmoFlagMapDrawStep | step | ||
) |
Definition at line 704 of file wm_gizmo.c.
References C, CTX_wm_manager(), ED_screen_animation_playing(), WM_GIZMOMAP_DRAWSTEP_2D, and WM_GIZMOMAP_DRAWSTEP_3D.
Referenced by WM_gizmomap_draw(), and wm_gizmomap_highlight_find().
|
static |
Definition at line 50 of file wm_gizmo.c.
References BLI_assert, PointerRNA::data, wmGizmo::drag_part, G_MAIN, IDP_CopyProperty(), IDP_GROUP, IDP_New(), wmGizmo::matrix_basis, wmGizmo::matrix_offset, wmGizmo::matrix_space, MEM_callocN, NULL, wmGizmo::properties, wmGizmo::ptr, RNA_pointer_create(), wmGizmoType::srna, wmGizmoType::struct_size, wmGizmoType::target_property_defs_len, wmGizmo::type, unit_m4(), and WM_gizmo_properties_sanitize().
Referenced by WM_gizmo_new_ptr().
Definition at line 126 of file wm_gizmo.c.
References BPY_DECREF_RNA_INVALIDATE(), wmGizmoProperty::custom_func, wmGizmoType::free, wmGizmoProperty::free_fn, MEM_freeN, NULL, wmGizmo::op_data, wmGizmo::op_data_len, wmGizmoOpElem::ptr, wmGizmo::ptr, wmGizmo::py_instance, wmGizmoType::target_property_defs_len, wmGizmo::type, WM_gizmo_properties_free(), WM_gizmo_target_property_array(), and WM_operator_properties_free().
Referenced by WM_gizmo_unlink(), and wm_gizmogroup_free().
Definition at line 324 of file wm_gizmo.c.
References color, wmGizmo::color, and copy_v4_v4().
Definition at line 333 of file wm_gizmo.c.
References wmGizmo::color_hi, and copy_v4_v4().
bool WM_gizmo_highlight_set | ( | wmGizmoMap * | gzmap, |
wmGizmo * | gz | ||
) |
Definition at line 402 of file wm_gizmo.c.
References wmGizmo::highlight_part, NULL, and wm_gizmomap_highlight_set().
Referenced by ED_screen_set_active_region(), view3d_ruler_add_invoke(), and WM_gizmo_modal_set_from_setup().
int wm_gizmo_is_visible | ( | wmGizmo * | gz | ) |
Definition at line 482 of file wm_gizmo.c.
References wmGizmo::flag, wmGizmo::state, WM_GIZMO_DRAW_HOVER, WM_GIZMO_DRAW_MODAL, WM_GIZMO_DRAW_VALUE, WM_GIZMO_HIDDEN, WM_GIZMO_IS_VISIBLE_DRAW, WM_GIZMO_IS_VISIBLE_UPDATE, WM_GIZMO_STATE_HIGHLIGHT, WM_GIZMO_STATE_MODAL, and WM_GIZMO_STATE_SELECT.
Referenced by gizmo_prepare_drawing().
void WM_gizmo_modal_set_from_setup | ( | struct wmGizmoMap * | gzmap, |
struct bContext * | C, | ||
struct wmGizmo * | gz, | ||
int | part_index, | ||
const wmEvent * | event | ||
) |
Definition at line 416 of file wm_gizmo.c.
References C, wmGizmo::highlight_part, NULL, WM_gizmo_highlight_set(), wm_gizmomap_modal_set(), WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().
Referenced by gizmo_mesh_placement_modal_from_setup(), and gizmo_mesh_spin_redo_modal_from_setup().
wmGizmo* WM_gizmo_new | ( | const char * | idname, |
struct wmGizmoGroup * | gzgroup, | ||
struct PointerRNA * | properties | ||
) |
idname | Must be a valid gizmo type name, if you need to check it exists use WM_gizmo_new_ptr because callers of this function don't NULL check the return value. |
Definition at line 94 of file wm_gizmo.c.
References WM_gizmo_new_ptr(), and WM_gizmotype_find().
Referenced by tool_generic_create_gizmo(), WIDGETGROUP_camera_view_setup(), WIDGETGROUP_empty_image_setup(), WIDGETGROUP_forcefield_setup(), WIDGETGROUP_light_area_setup(), WIDGETGROUP_light_spot_setup(), WIDGETGROUP_light_target_setup(), WIDGETGROUP_navigate_setup(), blender::ed::space_node::WIDGETGROUP_node_crop_setup(), blender::ed::space_node::WIDGETGROUP_node_sbeam_setup(), and blender::ed::space_node::WIDGETGROUP_node_transform_setup().
wmGizmo* WM_gizmo_new_ptr | ( | const wmGizmoType * | gzt, |
wmGizmoGroup * | gzgroup, | ||
PointerRNA * | properties | ||
) |
Definition at line 81 of file wm_gizmo.c.
References NULL, wmGizmoType::setup, wmGizmo::type, wm_gizmo_create(), and wm_gizmo_register().
Referenced by gizmo_mesh_bisect_setup(), gizmo_mesh_extrude_setup(), gizmo_mesh_placement_setup(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), gizmogroup2d_init(), gizmogroup2d_resize_init(), gizmogroup2d_rotate_init(), ruler_item_add(), WIDGETGROUP_armature_spline_setup(), WIDGETGROUP_camera_setup(), WIDGETGROUP_mesh_preselect_edgering_setup(), WIDGETGROUP_mesh_preselect_elem_setup(), blender::ed::space_node::WIDGETGROUP_node_corner_pin_setup(), WIDGETGROUP_ruler_setup(), WIDGETGROUP_xform_cage_setup(), WIDGETGROUP_xform_shear_setup(), and WM_gizmo_new().
struct wmGizmoOpElem* WM_gizmo_operator_get | ( | wmGizmo * | gz, |
int | part_index | ||
) |
Definition at line 195 of file wm_gizmo.c.
References NULL, and wmGizmo::op_data.
Referenced by gizmo2d_resize_invoke_prepare(), gizmo2d_xform_invoke_prepare(), gizmo_mesh_extrude_invoke_prepare(), gizmo_mesh_extrude_setup(), gizmo_modal(), gizmo_tweak_start_and_finish(), ui_tooltip_data_from_gizmo(), WIDGETGROUP_gizmo_invoke_prepare(), WIDGETGROUP_navigate_setup(), WIDGETGROUP_xform_cage_refresh(), WIDGETGROUP_xform_shear_refresh(), WIDGETGROUP_xform_shear_setup(), wm_gizmomap_modal_set(), and wm_gizmomaps_handled_modal_update().
int WM_gizmo_operator_invoke | ( | bContext * | C, |
wmGizmo * | gz, | ||
wmGizmoOpElem * | gzop, | ||
const wmEvent * | event | ||
) |
Definition at line 229 of file wm_gizmo.c.
References C, PointerRNA::data, wmGizmo::flag, IDP_GROUP, IDP_MergeGroup(), IDP_New(), NULL, wmGizmoOpElem::ptr, wmGizmoOpElem::type, WM_GIZMO_OPERATOR_TOOL_INIT, WM_OP_INVOKE_DEFAULT, WM_operator_name_call_ptr(), WM_toolsystem_ref_from_context(), and WM_toolsystem_ref_properties_get_from_operator.
Referenced by gizmo_tweak_start_and_finish(), and wm_gizmomap_modal_set().
PointerRNA* WM_gizmo_operator_set | ( | wmGizmo * | gz, |
int | part_index, | ||
wmOperatorType * | ot, | ||
IDProperty * | properties | ||
) |
Definition at line 203 of file wm_gizmo.c.
References BLI_assert, PointerRNA::data, MEM_recallocN, wmGizmo::op_data, wmGizmo::op_data_len, ot, wmGizmoOpElem::ptr, wmGizmoOpElem::type, WM_operator_properties_create_ptr(), and WM_operator_properties_free().
Referenced by gizmo2d_resize_setup(), gizmo2d_rotate_setup(), gizmo2d_xform_setup(), gizmo_mesh_extrude_setup(), gizmo_mesh_spin_init_refresh_axis_orientation(), gizmogroup_init_properties_from_twtype(), WIDGETGROUP_light_target_setup(), WIDGETGROUP_navigate_setup(), WIDGETGROUP_ruler_setup(), WIDGETGROUP_xform_cage_setup(), and WIDGETGROUP_xform_shear_setup().
void WM_gizmo_properties_alloc | ( | struct PointerRNA ** | ptr, |
struct IDProperty ** | properties, | ||
const char * | gtstring | ||
) |
Similar to WM_gizmo_properties_create except its uses ID properties used for key-maps and macros.
Definition at line 590 of file wm_gizmo.c.
References IDP_GROUP, IDP_New(), MEM_callocN, NULL, ptr, and WM_gizmo_properties_create().
void WM_gizmo_properties_clear | ( | PointerRNA * | ptr | ) |
Definition at line 679 of file wm_gizmo.c.
References PointerRNA::data, IDP_ClearProperty(), and ptr.
void WM_gizmo_properties_create | ( | PointerRNA * | ptr, |
const char * | gtstring | ||
) |
Definition at line 578 of file wm_gizmo.c.
References NULL, ptr, RNA_pointer_create(), WM_gizmo_properties_create_ptr(), and WM_gizmotype_find().
Referenced by WM_gizmo_properties_alloc().
void WM_gizmo_properties_create_ptr | ( | PointerRNA * | ptr, |
wmGizmoType * | gzt | ||
) |
Definition at line 573 of file wm_gizmo.c.
References NULL, ptr, RNA_pointer_create(), and wmGizmoType::srna.
Referenced by WM_gizmo_properties_create().
bool WM_gizmo_properties_default | ( | struct PointerRNA * | ptr, |
bool | do_update | ||
) |
Set all props to their default.
do_update | Only update un-initialized props. |
Definition at line 634 of file wm_gizmo.c.
References PROP_POINTER, ptr, RNA_property_is_set(), RNA_property_pointer_get(), RNA_property_pointer_type(), RNA_property_reset(), RNA_property_type(), RNA_STRUCT_BEGIN, and RNA_STRUCT_END.
void WM_gizmo_properties_free | ( | PointerRNA * | ptr | ) |
Definition at line 688 of file wm_gizmo.c.
References PointerRNA::data, IDP_FreeProperty(), NULL, and ptr.
Referenced by WM_gizmo_free().
Remove all props without PROP_SKIP_SAVE.
Definition at line 661 of file wm_gizmo.c.
References PointerRNA::data, PROP_SKIP_SAVE, wmGizmo::ptr, RNA_PROP_BEGIN, RNA_PROP_END, RNA_property_flag(), RNA_property_identifier(), RNA_struct_idprops_unset(), RNA_struct_iterator_property(), wmGizmoType::srna, and wmGizmo::type.
void WM_gizmo_properties_sanitize | ( | PointerRNA * | ptr, |
const bool | no_context | ||
) |
Definition at line 605 of file wm_gizmo.c.
References PROP_ENUM, PROP_ENUM_NO_CONTEXT, PROP_POINTER, ptr, RNA_def_property_clear_flag(), RNA_def_property_flag(), RNA_property_pointer_get(), RNA_property_pointer_type(), RNA_property_type(), RNA_STRUCT_BEGIN, RNA_STRUCT_END, and RNA_struct_is_a().
Referenced by wm_gizmo_create().
|
static |
Register gizmo.
Definition at line 120 of file wm_gizmo.c.
References gizmo_init(), and wm_gizmogroup_gizmo_register().
Referenced by WM_gizmo_new_ptr().
bool wm_gizmo_select_and_highlight | ( | bContext * | C, |
wmGizmoMap * | gzmap, | ||
wmGizmo * | gz | ||
) |
Definition at line 407 of file wm_gizmo.c.
References C, wmGizmo::highlight_part, WM_gizmo_select_set(), and wm_gizmomap_highlight_set().
Referenced by gizmo_select_invoke().
bool WM_gizmo_select_set | ( | wmGizmoMap * | gzmap, |
wmGizmo * | gz, | ||
bool | select | ||
) |
Definition at line 397 of file wm_gizmo.c.
References select(), and wm_gizmo_select_set_ex().
Referenced by gizmo_select_invoke(), wm_gizmo_select_and_highlight(), and wm_gizmomap_select_all_intern().
bool wm_gizmo_select_set_ex | ( | struct wmGizmoMap * | gzmap, |
struct wmGizmo * | gz, | ||
bool | select, | ||
bool | use_array, | ||
bool | use_callback | ||
) |
Add/Remove gizmo to selection. Reallocates memory for selected gizmos so better not call for selecting multiple ones.
Definition at line 357 of file wm_gizmo.c.
References select(), wmGizmoType::select_refresh, wmGizmo::state, wmGizmo::type, WM_GIZMO_STATE_SELECT, wm_gizmomap_select_array_push_back(), and wm_gizmomap_select_array_remove().
Referenced by WM_gizmo_select_set(), WM_gizmo_select_unlink(), and wm_gizmomap_deselect_all().
bool WM_gizmo_select_unlink | ( | struct wmGizmoMap * | gzmap, |
struct wmGizmo * | gz | ||
) |
Remove from selection array without running callbacks.
Definition at line 392 of file wm_gizmo.c.
References wm_gizmo_select_set_ex().
Referenced by WM_gizmo_unlink(), and wm_gizmogroup_free().
Definition at line 328 of file wm_gizmo.c.
References color, wmGizmo::color, and copy_v4_v4().
Referenced by gizmo2d_resize_setup(), gizmo2d_rotate_setup(), gizmo2d_xform_setup(), gizmo_mesh_spin_init_setup(), WIDGETGROUP_gizmo_draw_prepare(), and WIDGETGROUP_ruler_setup().
Definition at line 337 of file wm_gizmo.c.
References wmGizmo::color_hi, and copy_v4_v4().
Referenced by gizmo2d_resize_setup(), gizmo2d_rotate_setup(), gizmo2d_xform_setup(), gizmo_mesh_spin_init_setup(), and WIDGETGROUP_gizmo_draw_prepare().
Definition at line 304 of file wm_gizmo.c.
References wmGizmo::flag.
Referenced by gizmo_mesh_bisect_setup(), gizmo_mesh_extrude_refresh(), gizmo_mesh_placement_setup(), gizmo_mesh_spin_init_draw_prepare(), gizmo_mesh_spin_init_refresh(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), gizmo_modal(), gizmo_refresh_from_matrix(), gizmogroup_init_properties_from_twtype(), ruler_item_add(), WIDGETGROUP_armature_spline_setup(), WIDGETGROUP_camera_refresh(), WIDGETGROUP_camera_setup(), WIDGETGROUP_camera_view_refresh(), WIDGETGROUP_empty_image_setup(), WIDGETGROUP_forcefield_refresh(), WIDGETGROUP_gizmo_draw_prepare(), WIDGETGROUP_light_area_setup(), WIDGETGROUP_light_target_draw_prepare(), WIDGETGROUP_navigate_draw_prepare(), blender::ed::space_node::WIDGETGROUP_node_corner_pin_refresh(), blender::ed::space_node::WIDGETGROUP_node_crop_refresh(), blender::ed::space_node::WIDGETGROUP_node_sbeam_refresh(), blender::ed::space_node::WIDGETGROUP_node_transform_refresh(), WIDGETGROUP_tool_generic_refresh(), WIDGETGROUP_xform_cage_refresh(), WIDGETGROUP_xform_shear_refresh(), and WIDGETGROUP_xform_shear_setup().
void WM_gizmo_set_fn_custom_modal | ( | struct wmGizmo * | gz, |
wmGizmoFnModal | fn | ||
) |
Definition at line 348 of file wm_gizmo.c.
References wmGizmo::custom_modal.
Referenced by gizmo2d_resize_setup(), gizmo2d_rotate_setup(), gizmo2d_xform_setup(), and gizmogroup_init_properties_from_twtype().
Definition at line 319 of file wm_gizmo.c.
References wmGizmo::line_width.
Referenced by gizmo2d_resize_setup(), gizmo2d_rotate_setup(), gizmo2d_xform_setup(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), gizmogroup_init_properties_from_twtype(), and tool_generic_create_gizmo().
Definition at line 284 of file wm_gizmo.c.
References copy_v3_v3(), and wmGizmo::matrix_basis.
Referenced by gizmo2d_modal(), gizmo2d_resize_draw_prepare(), gizmo2d_rotate_draw_prepare(), gizmo2d_xform_draw_prepare(), gizmo_mesh_bisect_update_from_op(), gizmo_mesh_extrude_refresh(), gizmo_mesh_spin_init_refresh(), gizmo_mesh_spin_redo_update_from_op(), gizmo_modal(), gizmo_refresh_from_matrix(), WIDGETGROUP_camera_refresh(), WIDGETGROUP_forcefield_refresh(), WIDGETGROUP_light_spot_refresh(), blender::ed::space_node::WIDGETGROUP_node_transform_refresh(), WIDGETGROUP_xform_shear_draw_prepare(), and WIDGETGROUP_xform_shear_refresh().
Definition at line 299 of file wm_gizmo.c.
References copy_v3_v3(), wmGizmo::matrix_offset, and offset.
Referenced by gizmo2d_xform_draw_prepare(), gizmo2d_xform_setup(), gizmo_refresh_from_matrix(), gizmogroup_init_properties_from_twtype(), WIDGETGROUP_camera_refresh(), and WIDGETGROUP_forcefield_refresh().
void WM_gizmo_set_matrix_offset_rotation_from_yz_axis | ( | struct wmGizmo * | gz, |
const float | y_axis[3], | ||
const float | z_axis[3] | ||
) |
wmGizmo.matrix_offset utility, set the orientation by it's Y/Z axis.
Definition at line 293 of file wm_gizmo.c.
References wmGizmo::matrix_offset, and wm_gizmo_set_matrix_rotation_from_yz_axis__internal().
Referenced by gizmo_mesh_bisect_update_from_op().
wmGizmo.matrix_offset utility, set the orientation by it's Z axis.
Definition at line 289 of file wm_gizmo.c.
References wmGizmo::matrix_offset, and wm_gizmo_set_matrix_rotation_from_z_axis__internal().
void WM_gizmo_set_matrix_rotation_from_yz_axis | ( | struct wmGizmo * | gz, |
const float | y_axis[3], | ||
const float | z_axis[3] | ||
) |
#wmGizmo.matrix utility, set the orientation by it's Y/Z axis.
Definition at line 278 of file wm_gizmo.c.
References wmGizmo::matrix_basis, and wm_gizmo_set_matrix_rotation_from_yz_axis__internal().
Referenced by gizmo_mesh_spin_init_refresh_axis_orientation(), gizmo_mesh_spin_redo_draw_prepare(), gizmo_mesh_spin_redo_update_from_op(), gizmo_refresh_from_matrix(), WIDGETGROUP_camera_refresh(), WIDGETGROUP_xform_shear_draw_prepare(), and WIDGETGROUP_xform_shear_refresh().
|
static |
Definition at line 264 of file wm_gizmo.c.
References cross_v3_v3v3(), normalize_v3(), and normalize_v3_v3().
Referenced by WM_gizmo_set_matrix_offset_rotation_from_yz_axis(), and WM_gizmo_set_matrix_rotation_from_yz_axis().
#wmGizmo.matrix utility, set the orientation by it's Z axis.
Definition at line 274 of file wm_gizmo.c.
References wmGizmo::matrix_basis, and wm_gizmo_set_matrix_rotation_from_z_axis__internal().
Referenced by gizmo2d_resize_draw_prepare(), gizmo2d_xform_setup(), gizmo_mesh_bisect_update_from_op(), gizmo_mesh_spin_init_refresh_axis_orientation(), gizmo_mesh_spin_redo_draw_prepare(), gizmo_mesh_spin_redo_update_from_op(), gizmo_refresh_from_matrix(), WIDGETGROUP_forcefield_refresh(), WIDGETGROUP_gizmo_draw_prepare(), and WIDGETGROUP_light_spot_refresh().
|
static |
Definition at line 246 of file wm_gizmo.c.
References copy_v3_v3(), normalize_v3_v3(), ortho_basis_v3v3_v3(), rot, and rotation_between_vecs_to_mat3().
Referenced by WM_gizmo_set_matrix_offset_rotation_from_z_axis(), and WM_gizmo_set_matrix_rotation_from_z_axis().
Definition at line 314 of file wm_gizmo.c.
References wmGizmo::scale_basis.
Referenced by gizmo2d_resize_setup(), gizmo2d_rotate_setup(), gizmo2d_xform_setup(), gizmo_mesh_bisect_update_from_op(), gizmo_mesh_extrude_setup(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), gizmogroup_init_properties_from_twtype(), WIDGETGROUP_camera_refresh(), and WIDGETGROUP_camera_view_setup().
void WM_gizmo_unlink | ( | ListBase * | gizmolist, |
struct wmGizmoMap * | gzmap, | ||
struct wmGizmo * | gz, | ||
struct bContext * | C | ||
) |
Free gizmo and unlink from gizmolist. gizmolist is allowed to be NULL.
Definition at line 165 of file wm_gizmo.c.
References BLI_assert, BLI_remlink(), C, wmGizmoMap::gzmap_context, wmGizmoMap::highlight, wmGizmoMap::modal, NULL, wmGizmo::state, WM_gizmo_free(), WM_gizmo_select_unlink(), WM_GIZMO_STATE_HIGHLIGHT, WM_GIZMO_STATE_MODAL, WM_GIZMO_STATE_SELECT, wm_gizmomap_highlight_set(), and wm_gizmomap_modal_set().
Referenced by gizmotype_unlink(), and ruler_item_remove().
Definition at line 474 of file wm_gizmo.c.
References C, gizmo_update_prop_data(), and wm_gizmo_calculate_scale().
Referenced by gizmo_prepare_drawing().