Blender
V3.3
|
#include "DNA_armature_types.h"
#include "DNA_camera_types.h"
#include "DNA_world_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BKE_action.h"
#include "BKE_armature.h"
#include "BKE_camera.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_object.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "BKE_screen.h"
#include "DEG_depsgraph_query.h"
#include "WM_api.h"
#include "WM_message.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "ED_screen.h"
#include "ED_transform.h"
#include "ED_transform_snap_object_context.h"
#include "view3d_intern.h"
Go to the source code of this file.
Toggle Shading Operator | |
static const EnumPropertyItem | prop_shading_type_items [] |
static int | toggle_shading_exec (bContext *C, wmOperator *op) |
void | VIEW3D_OT_toggle_shading (wmOperatorType *ot) |
3D view manipulation/operators.
Definition in file view3d_edit.c.
|
static |
Definition at line 562 of file view3d_edit.c.
References background_image_camera_from_context(), BKE_camera_background_image_new(), C, and OPERATOR_FINISHED.
Referenced by VIEW3D_OT_background_image_add().
|
static |
Definition at line 570 of file view3d_edit.c.
References background_image_camera_from_context(), BKE_camera_background_image_new(), C, CAM_SHOW_BG_IMAGE, DEG_id_tag_update(), Camera::flag, Camera::id, ID_IM, ID_RECALC_COPY_ON_WRITE, CameraBGImage::ima, NC_CAMERA, ND_DRAW_RENDER_VIEWPORT, OPERATOR_FINISHED, WM_event_add_notifier(), and WM_operator_drop_load_path().
Referenced by VIEW3D_OT_background_image_add().
Definition at line 590 of file view3d_edit.c.
References background_image_camera_from_context(), C, and NULL.
Referenced by VIEW3D_OT_background_image_add().
Definition at line 548 of file view3d_edit.c.
References C, View3D::camera, CTX_data_pointer_get_type(), CTX_wm_view3d(), Object::data, PointerRNA::data, NULL, OB_CAMERA, and Object::type.
Referenced by background_image_add_exec(), background_image_add_invoke(), and background_image_add_poll().
|
static |
Definition at line 629 of file view3d_edit.c.
References Camera::bg_images, BKE_camera_background_image_remove(), BKE_reportf(), BLI_findlink(), C, CAM_BGIMG_FLAG_OVERRIDE_LIBRARY_LOCAL, CameraBGImage::clip, CTX_data_pointer_get_type(), PointerRNA::data, DEG_id_tag_update(), CameraBGImage::flag, Camera::id, ID_IS_OVERRIDE_LIBRARY, ID_RECALC_COPY_ON_WRITE, id_us_min(), CameraBGImage::ima, ID::name, NC_CAMERA, ND_DRAW_RENDER_VIEWPORT, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_int_get(), RPT_WARNING, and WM_event_add_notifier().
Referenced by VIEW3D_OT_background_image_remove().
|
static |
Definition at line 739 of file view3d_edit.c.
References ED_view3d_clipping_calc_from_boundbox(), invert_m4_m4(), is_negative_m4(), mul_v3_m4v3(), and BoundBox::vec.
Referenced by ED_view3d_clipping_local().
|
static |
Definition at line 354 of file view3d_edit.c.
References border, RenderData::border, C, CTX_data_scene(), CTX_wm_view3d(), DEG_id_tag_update(), ED_view3d_context_rv3d(), View3D::flag2, Scene::id, ID_RECALC_COPY_ON_WRITE, RenderData::mode, NC_SCENE, NC_SPACE, ND_RENDER_OPTIONS, ND_SPACE_VIEW3D, NULL, OPERATOR_FINISHED, RegionView3D::persp, Scene::r, R_BORDER, View3D::render_border, RV3D_CAMOB, scene, V3D_RENDER_BORDER, and WM_event_add_notifier().
Referenced by VIEW3D_OT_clear_render_border().
|
static |
Definition at line 685 of file view3d_edit.c.
References C, CTX_data_main(), CTX_data_scene(), DEG_id_tag_update(), DEG_relations_tag_update(), Scene::id, World::id, id_us_min(), id_us_plus(), ID_WO, NC_SCENE, ND_WORLD, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, scene, WM_event_add_notifier(), WM_operator_properties_id_lookup_from_name_or_session_uuid(), world, and Scene::world.
Referenced by VIEW3D_OT_drop_world().
Definition at line 708 of file view3d_edit.c.
References C, and ED_operator_scene_editable().
Referenced by VIEW3D_OT_drop_world().
void ED_view3d_clipping_local | ( | RegionView3D * | rv3d, |
const float | mat[4][4] | ||
) |
Definition at line 755 of file view3d_edit.c.
References calc_local_clipping(), RegionView3D::clip_local, RegionView3D::clipbb, RegionView3D::rflag, and RV3D_CLIPPING.
Referenced by DRW_draw_depth_object(), ED_view3d_init_mats_rv3d(), lattice_foreachScreenVert(), mesh_foreachScreenEdge(), mesh_foreachScreenEdge_clip_bb_segment(), mesh_foreachScreenVert(), meshobject_foreachScreenVert(), nurbs_foreachScreenVert(), and project_paint_begin().
void ED_view3d_cursor3d_position | ( | struct bContext * | C, |
const int | mval[2], | ||
bool | use_depth, | ||
float | r_cursor_co[3] | ||
) |
Cursor position in r_cursor_co
, result in r_cursor_co
, mval
in region coords.
event->mval
here, called by #object_add(). Definition at line 823 of file view3d_edit.c.
References C, copy_v3_v3(), CTX_data_ensure_evaluated_depsgraph(), CTX_wm_region(), CTX_wm_view3d(), depsgraph, ED_view3d_autodist(), ED_view3d_calc_zfac(), ED_view3d_calc_zfac_ex(), ED_view3d_win_to_3d_int(), negate_v3_v3(), NULL, RegionView3D::ofs, ARegion::regiondata, and view3d_operator_needs_opengl().
Referenced by collection_add_info_get_from_op(), ED_view3d_cursor3d_position_rotation(), empty_drop_named_image_invoke(), object_add_named_exec(), object_data_instance_add_exec(), and object_transform_to_mouse_exec().
void ED_view3d_cursor3d_position_rotation | ( | bContext * | C, |
const int | mval[2], | ||
const bool | use_depth, | ||
enum eV3DCursorOrient | orientation, | ||
float | cursor_co[3], | ||
float | cursor_quat[4] | ||
) |
Definition at line 865 of file view3d_edit.c.
References angle_normalized_qt(), axis_dominant_v3_ortho_single(), C, copy_qt_qt(), copy_v3_v3(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_wm_region(), CTX_wm_view3d(), dot_v3v3(), ED_transform_calc_orientation_from_type(), ED_transform_snap_object_context_create(), ED_transform_snap_object_context_destroy(), ED_transform_snap_object_project_view3d_ex(), ED_view3d_cursor3d_position(), mat3_to_quat(), mul_qt_qtqt(), mul_qt_v3(), negate_v3(), normalize_v3(), NULL, project_plane_v3_v3v3(), SnapObjectContext::region, ARegion::regiondata, rotation_between_vecs_to_quat(), SCE_SNAP_MODE_FACE_RAYCAST, SCE_SNAP_TARGET_ALL, scene, SNAP_GEOM_FINAL, UNPACK2, SnapObjectContext::v3d, V3D_CURSOR_ORIENT_GEOM, V3D_CURSOR_ORIENT_NONE, V3D_CURSOR_ORIENT_VIEW, V3D_CURSOR_ORIENT_XFORM, and RegionView3D::viewquat.
Referenced by ED_view3d_cursor3d_update().
void ED_view3d_cursor3d_update | ( | bContext * | C, |
const int | mval[2], | ||
const bool | use_depth, | ||
enum eV3DCursorOrient | orientation | ||
) |
Definition at line 984 of file view3d_edit.c.
References angle_signed_on_axis_v3v3_v3(), axis_angle_to_mat3(), BKE_scene_cursor_quat_to_rot(), BKE_scene_cursor_rot_to_quat(), C, copy_qt_qt(), CTX_data_scene(), CTX_wm_message_bus(), CTX_wm_region(), CTX_wm_view3d(), Scene::cursor, DEG_id_tag_update(), ED_view3d_cursor3d_position_rotation(), ED_view3d_project_float_global(), equals_v4v4(), Scene::id, ID_RECALC_COPY_ON_WRITE, View3D::localvd, View3DCursor::location, SnapObjectContext::mval, NA_EDITED, NC_SCENE, NC_SPACE, ND_SPACE_VIEW3D, negate_v3_v3(), View3D::ob_center_cursor, RegionView3D::ofs_lock, wmMsgParams_RNA::ptr, quat_to_mat3(), SnapObjectContext::region, ARegion::regiondata, RNA_pointer_create(), ROT_MODE_AXISANGLE, View3DCursor::rotation_angle, View3DCursor::rotation_axis, View3DCursor::rotation_mode, RV3D_VIEW_IS_AXIS, scene, USER_LOCK_CURSOR_ADJUST, SnapObjectContext::v3d, V3D_PROJ_RET_OK, V3D_PROJ_TEST_NOP, RegionView3D::view, ARegion::winx, ARegion::winy, WM_event_add_notifier(), WM_msg_publish_rna_params(), and zero_v2().
Referenced by edbm_point_normals_modal(), paintcurve_cursor_invoke(), and view3d_cursor3d_invoke().
|
static |
Definition at line 253 of file view3d_edit.c.
References BLI_rctf_size_x(), BLI_rctf_size_y(), border, RenderData::border, C, CLAMP, CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_wm_region(), CTX_wm_view3d(), DEG_id_tag_update(), depsgraph, ED_view3d_calc_camera_border(), ED_view3d_context_rv3d(), View3D::flag2, float(), Scene::id, ID_RECALC_COPY_ON_WRITE, RenderData::mode, NC_SCENE, NC_SPACE, ND_RENDER_OPTIONS, ND_SPACE_VIEW3D, NULL, OPERATOR_FINISHED, RegionView3D::persp, Scene::r, R_BORDER, View3D::render_border, RV3D_CAMOB, scene, V3D_RENDER_BORDER, ARegion::winx, ARegion::winy, WM_event_add_notifier(), WM_operator_properties_border_to_rcti(), rcti::xmax, rctf::xmax, rcti::xmin, rctf::xmin, rcti::ymax, rctf::ymax, rcti::ymin, and rctf::ymin.
Referenced by VIEW3D_OT_render_border().
|
static |
Definition at line 1132 of file view3d_edit.c.
References blender::compositor::area(), C, CTX_data_main(), CTX_wm_area(), CTX_wm_view3d(), ED_view3d_shade_update(), ELEM, NC_SPACE, ND_SPACE_VIEW3D, NS_VIEW3D_SHADING, OB_MATERIAL, OB_RENDER, OB_SOLID, OB_WIRE, OPERATOR_FINISHED, View3DShading::prev_type, View3DShading::prev_type_wire, wmOperator::ptr, RNA_enum_get(), View3D::shading, type, View3DShading::type, and WM_event_add_notifier().
Referenced by VIEW3D_OT_toggle_shading().
|
static |
Definition at line 1194 of file view3d_edit.c.
References blender::compositor::area(), BKE_object_pose_armature_get(), BKE_report(), C, CTX_data_active_object(), CTX_wm_area(), CTX_wm_view3d(), ED_area_tag_redraw(), ELEM, View3DShading::flag, View3DOverlay::flag, Object::mode, NC_SPACE, ND_SPACE_VIEW3D, NS_VIEW3D_SHADING, OB_MODE_EDIT, OB_MODE_POSE, OB_MODE_WEIGHT_PAINT, OB_SOLID, OB_WIRE, OPERATOR_FINISHED, View3D::overlay, wmOperator::reports, RPT_INFO, View3D::shading, View3DShading::type, V3D_OVERLAY_BONE_SELECT, V3D_SHADING_XRAY, V3D_SHADING_XRAY_WIREFRAME, and WM_event_add_notifier().
Referenced by VIEW3D_OT_toggle_xray().
Definition at line 44 of file view3d_edit.c.
References C, ED_view3d_context_user_region(), RegionView3D::persp, ARegion::regiondata, RV3D_CAMOB, RV3D_LOCK_ANY_TRANSFORM, and RV3D_LOCK_FLAGS.
Referenced by VIEW3D_OT_view_center_camera(), and VIEW3D_OT_zoom_camera_1_to_1().
|
static |
Definition at line 169 of file view3d_edit.c.
References BKE_screen_view3d_zoom_from_fac(), C, RegionView3D::camdx, RegionView3D::camdy, RegionView3D::camzoom, CLAMP, CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), depsgraph, ED_view3d_calc_camera_border_size(), ED_view3d_context_user_region(), float(), min_ff(), NC_SPACE, ND_SPACE_VIEW3D, OPERATOR_FINISHED, ARegion::regiondata, RV3D_CAMZOOM_MAX, RV3D_CAMZOOM_MIN, scene, size(), ARegion::winx, ARegion::winy, and WM_event_add_notifier().
Referenced by VIEW3D_OT_view_center_camera().
|
static |
Definition at line 221 of file view3d_edit.c.
References C, CTX_wm_region_view3d(), CTX_wm_view3d(), NC_SPACE, ND_SPACE_VIEW3D, RegionView3D::ofs_lock, OPERATOR_FINISHED, WM_event_add_notifier(), and zero_v2().
Referenced by VIEW3D_OT_view_center_lock().
|
static |
Definition at line 762 of file view3d_edit.c.
References C, RegionView3D::clip, RegionView3D::clipbb, CTX_wm_region(), CTX_wm_region_view3d(), ED_view3d_clipping_calc(), MEM_callocN, NULL, OPERATOR_FINISHED, RegionView3D::rflag, RV3D_CLIPPING, and WM_operator_properties_border_to_rcti().
Referenced by VIEW3D_OT_clip_border().
|
static |
Definition at line 779 of file view3d_edit.c.
References C, RegionView3D::clipbb, CTX_wm_region(), CTX_wm_region_view3d(), ED_region_tag_redraw(), MEM_SAFE_FREE, OPERATOR_FINISHED, RegionView3D::rflag, RV3D_CLIPPING, and WM_gesture_box_invoke().
Referenced by VIEW3D_OT_clip_border().
|
static |
Definition at line 1057 of file view3d_edit.c.
References C, ED_view3d_cursor3d_update(), wmEvent::mval, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_enum_get(), RNA_property_boolean_get(), RNA_property_boolean_set(), RNA_property_is_set(), RNA_struct_find_property(), and USER_DEPTH_CURSOR.
Referenced by VIEW3D_OT_cursor3d().
Definition at line 59 of file view3d_edit.c.
References C, CTX_wm_region_view3d(), CTX_wm_view3d(), and ED_view3d_offset_lock_check().
Referenced by VIEW3D_OT_view_center_lock().
|
static |
Definition at line 512 of file view3d_edit.c.
References C, NULL, OPERATOR_FINISHED, VIEW_NAVIGATION_FLY, VIEW_NAVIGATION_WALK, WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().
Referenced by VIEW3D_OT_navigate().
void VIEW3D_OT_background_image_add | ( | wmOperatorType * | ot | ) |
Definition at line 595 of file view3d_edit.c.
References background_image_add_exec(), background_image_add_invoke(), background_image_add_poll(), wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, FILE_TYPE_MOVIE, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, WM_operator_properties_filesel(), and WM_operator_properties_id_lookup().
Referenced by view3d_operatortypes().
void VIEW3D_OT_background_image_remove | ( | wmOperatorType * | ot | ) |
Definition at line 660 of file view3d_edit.c.
References background_image_remove_exec(), wmOperatorType::description, ED_operator_camera_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by view3d_operatortypes().
void VIEW3D_OT_clear_render_border | ( | wmOperatorType * | ot | ) |
Definition at line 386 of file view3d_edit.c.
References clear_render_border_exec(), wmOperatorType::description, ED_operator_view3d_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by view3d_operatortypes().
void VIEW3D_OT_clip_border | ( | wmOperatorType * | ot | ) |
Definition at line 793 of file view3d_edit.c.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_region_view3d_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, ot, wmOperatorType::poll, view3d_clipping_exec(), view3d_clipping_invoke(), WM_gesture_box_cancel(), WM_gesture_box_modal(), and WM_operator_properties_border().
Referenced by view3d_operatortypes().
void VIEW3D_OT_cursor3d | ( | wmOperatorType * | ot | ) |
Definition at line 1076 of file view3d_edit.c.
References wmOperatorType::description, ED_operator_region_view3d_active(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_flag(), wmOperatorType::srna, V3D_CURSOR_ORIENT_GEOM, V3D_CURSOR_ORIENT_NONE, V3D_CURSOR_ORIENT_VIEW, V3D_CURSOR_ORIENT_XFORM, and view3d_cursor3d_invoke().
Referenced by view3d_operatortypes().
void VIEW3D_OT_drop_world | ( | wmOperatorType * | ot | ) |
Definition at line 713 of file view3d_edit.c.
References wmOperatorType::description, drop_world_exec(), drop_world_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_id_lookup().
Referenced by view3d_operatortypes().
void VIEW3D_OT_navigate | ( | wmOperatorType * | ot | ) |
Definition at line 529 of file view3d_edit.c.
References wmOperatorType::description, ED_operator_view3d_active(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, and view3d_navigate_invoke().
Referenced by view3d_operatortypes().
void VIEW3D_OT_render_border | ( | wmOperatorType * | ot | ) |
Definition at line 326 of file view3d_edit.c.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_view3d_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, render_border_exec(), WM_gesture_box_cancel(), WM_gesture_box_invoke(), WM_gesture_box_modal(), and WM_operator_properties_border().
Referenced by view3d_operatortypes().
void VIEW3D_OT_toggle_shading | ( | wmOperatorType * | ot | ) |
Definition at line 1170 of file view3d_edit.c.
References wmOperatorType::description, ED_operator_view3d_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, prop_shading_type_items, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), wmOperatorType::srna, and toggle_shading_exec().
Referenced by view3d_operatortypes().
void VIEW3D_OT_toggle_xray | ( | wmOperatorType * | ot | ) |
Definition at line 1225 of file view3d_edit.c.
References wmOperatorType::description, ED_operator_view3d_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, and toggle_xray_exec().
Referenced by view3d_operatortypes().
void VIEW3D_OT_view_center_camera | ( | wmOperatorType * | ot | ) |
Definition at line 200 of file view3d_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, view3d_camera_user_poll(), and view3d_center_camera_exec().
Referenced by view3d_operatortypes().
void VIEW3D_OT_view_center_lock | ( | wmOperatorType * | ot | ) |
Definition at line 232 of file view3d_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, view3d_center_lock_exec(), and view3d_lock_poll().
Referenced by view3d_operatortypes().
void VIEW3D_OT_view_lock_clear | ( | wmOperatorType * | ot | ) |
Definition at line 90 of file view3d_edit.c.
References wmOperatorType::description, ED_operator_region_view3d_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, and view_lock_clear_exec().
Referenced by view3d_operatortypes().
void VIEW3D_OT_view_lock_to_active | ( | wmOperatorType * | ot | ) |
Definition at line 147 of file view3d_edit.c.
References wmOperatorType::description, ED_operator_region_view3d_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, and view_lock_to_active_exec().
Referenced by view3d_operatortypes().
void VIEW3D_OT_view_persportho | ( | wmOperatorType * | ot | ) |
Definition at line 489 of file view3d_edit.c.
References wmOperatorType::description, ED_operator_rv3d_user_region_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, and viewpersportho_exec().
Referenced by view3d_operatortypes().
void VIEW3D_OT_zoom_camera_1_to_1 | ( | wmOperatorType * | ot | ) |
Definition at line 444 of file view3d_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, view3d_camera_user_poll(), and view3d_zoom_1_to_1_camera_exec().
Referenced by view3d_operatortypes().
|
static |
Definition at line 409 of file view3d_edit.c.
References BKE_render_resolution(), BKE_screen_view3d_zoom_from_fac(), RegionView3D::camzoom, CLAMP, depsgraph, ED_view3d_calc_camera_border_size(), Scene::r, ARegion::regiondata, RV3D_CAMZOOM_MAX, RV3D_CAMZOOM_MIN, scene, and size().
Referenced by view3d_zoom_1_to_1_camera_exec().
|
static |
Definition at line 426 of file view3d_edit.c.
References C, CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), depsgraph, ED_view3d_context_user_region(), NC_SPACE, ND_SPACE_VIEW3D, OPERATOR_FINISHED, scene, view3d_set_1_to_1_viewborder(), and WM_event_add_notifier().
Referenced by VIEW3D_OT_zoom_camera_1_to_1().
|
static |
Definition at line 75 of file view3d_edit.c.
References C, CTX_wm_view3d(), ED_view3d_lock_clear(), NC_SPACE, ND_SPACE_VIEW3D, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by VIEW3D_OT_view_lock_clear().
|
static |
Definition at line 112 of file view3d_edit.c.
References BKE_pose_channel_active_if_layer_visible(), BLI_strncpy(), C, CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_wm_view3d(), Object::data, DEG_get_evaluated_object(), depsgraph, ED_view3d_lock_clear(), Object::mode, EditBone::name, bPoseChannel::name, NC_SPACE, ND_SPACE_VIEW3D, OB_ARMATURE, View3D::ob_center, View3D::ob_center_bone, OB_MODE_POSE, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::type, and WM_event_add_notifier().
Referenced by VIEW3D_OT_view_lock_to_active().
|
static |
Definition at line 465 of file view3d_edit.c.
References C, ED_region_tag_redraw(), ED_view3d_context_user_region(), OPERATOR_FINISHED, RegionView3D::persp, ARegion::regiondata, RV3D_LOCK_ANY_TRANSFORM, RV3D_LOCK_FLAGS, RV3D_ORTHO, and RV3D_PERSP.
Referenced by VIEW3D_OT_view_persportho().
|
static |
Definition at line 1124 of file view3d_edit.c.
Referenced by VIEW3D_OT_toggle_shading().