|
Blender V4.3
|
#include <cstdio>#include <cstring>#include "AS_asset_representation.hh"#include "DNA_collection_types.h"#include "DNA_defaults.h"#include "DNA_gpencil_legacy_types.h"#include "DNA_lightprobe_types.h"#include "DNA_material_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "DNA_view3d_types.h"#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_math_matrix.h"#include "BLI_math_vector.h"#include "BLI_math_vector.hh"#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "BKE_asset.hh"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_gpencil_legacy.h"#include "BKE_idprop.hh"#include "BKE_layer.hh"#include "BKE_lib_id.hh"#include "BKE_lib_query.hh"#include "BKE_lib_remap.hh"#include "BKE_main.hh"#include "BKE_object.hh"#include "BKE_scene.hh"#include "BKE_screen.hh"#include "BKE_viewer_path.hh"#include "ED_asset_shelf.hh"#include "ED_geometry.hh"#include "ED_object.hh"#include "ED_outliner.hh"#include "ED_render.hh"#include "ED_screen.hh"#include "ED_space_api.hh"#include "ED_transform.hh"#include "ED_undo.hh"#include "GPU_matrix.hh"#include "DRW_engine.hh"#include "WM_api.hh"#include "WM_message.hh"#include "WM_toolsystem.hh"#include "WM_types.hh"#include "RNA_access.hh"#include "UI_interface.hh"#include "UI_resources.hh"#include "BLO_read_write.hh"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_build.hh"#include "view3d_intern.hh"#include "view3d_navigate.hh"Go to the source code of this file.
Macros | |
| #define | DNA_DEPRECATED_ALLOW |
| #define DNA_DEPRECATED_ALLOW |
Definition at line 10 of file space_view3d.cc.
| void ED_spacetype_view3d | ( | ) |
Definition at line 2137 of file space_view3d.cc.
References BKE_spacetype_register(), BLI_addhead(), ARegionType::context, ARegionType::cursor, ARegionType::draw, ARegionType::duplicate, ED_area_do_mgs_subscribe_for_tool_header(), ED_area_do_mgs_subscribe_for_tool_ui(), ED_area_type_hud(), ED_KEYMAP_ASSET_SHELF, ED_KEYMAP_FOOTER, ED_KEYMAP_FRAMES, ED_KEYMAP_GIZMO, ED_KEYMAP_GPENCIL, ED_KEYMAP_HEADER, ED_KEYMAP_TOOL, ED_KEYMAP_UI, ED_KEYMAP_VIEW2D, ED_region_generic_tools_region_message_subscribe(), ED_region_generic_tools_region_snap_size(), ED_region_panels_draw(), ARegionType::exit, ARegionType::free, HEADERY, ARegionType::init, int, ARegionType::keymapflag, ARegionType::layout, ARegionType::listener, ARegionType::lock, ARegionType::message_subscribe, blender::ed::geometry::node_group_operator_assets_menu(), blender::ed::geometry::node_group_operator_assets_menu_unassigned(), ARegionType::on_poll_success, ARegionType::on_user_resize, ARegionType::poll, ARegionType::prefsizex, ARegionType::prefsizey, ARegionType::regionid, RGN_TYPE_ASSET_SHELF, RGN_TYPE_ASSET_SHELF_HEADER, RGN_TYPE_HEADER, RGN_TYPE_TOOL_HEADER, RGN_TYPE_TOOLS, RGN_TYPE_UI, RGN_TYPE_WINDOW, RGN_TYPE_XR, ARegionType::snap_size, SPACE_VIEW3D, space_view3d_listener(), space_view3d_refresh(), STRNCPY, UI_SIDEBAR_PANEL_WIDTH, UI_TOOLBAR_WIDTH, view3d_asset_shelf_region_init(), view3d_buttons_region_init(), view3d_buttons_region_layout(), view3d_buttons_region_listener(), view3d_buttons_register(), view3d_context(), view3d_create(), view3d_dropboxes(), view3d_duplicate(), view3d_exit(), view3d_foreach_id(), view3d_free(), view3d_header_region_draw(), view3d_header_region_init(), view3d_header_region_listener(), view3d_header_region_message_subscribe(), view3d_id_remap(), view3d_init(), view3d_keymap(), view3d_main_region_cursor(), view3d_main_region_draw(), view3d_main_region_duplicate(), view3d_main_region_exit(), view3d_main_region_free(), view3d_main_region_init(), view3d_main_region_listener(), view3d_main_region_message_subscribe(), view3d_operatortypes(), view3d_space_blend_read_data(), view3d_space_blend_write(), view3d_tools_header_region_draw(), view3d_tools_region_draw(), view3d_tools_region_init(), view3d_widgets(), and WM_menutype_add().
Referenced by ED_spacetypes_init().
Similar to ED_view3d_context_user_region() but does not use context. Always performs a lookup. Also works if v3d is not the active space.
Definition at line 89 of file space_view3d.cc.
References BLI_assert, ELEM, LISTBASE_FOREACH, RegionView3D::persp, View3D::regionbase, RGN_TYPE_WINDOW, RV3D_CAMOB, RV3D_LOCK_ROTATION, RV3D_PERSP, SPACE_VIEW3D, View3D::spacetype, and RegionView3D::viewlock.
Referenced by ED_view3d_context_user_region().
| void ED_view3d_buttons_region_layout_ex | ( | const bContext * | C, |
| ARegion * | region, | ||
| const char * | category_override ) |
Definition at line 1682 of file space_view3d.cc.
References ARRAY_SET_ITEMS, BKE_regiontype_from_id(), BKE_spacetype_from_id(), CTX_data_mode_enum(), CTX_data_mode_string(), CTX_MODE_EDIT_ARMATURE, CTX_MODE_EDIT_CURVE, CTX_MODE_EDIT_CURVES, CTX_MODE_EDIT_GPENCIL_LEGACY, CTX_MODE_EDIT_GREASE_PENCIL, CTX_MODE_EDIT_LATTICE, CTX_MODE_EDIT_MESH, CTX_MODE_EDIT_METABALL, CTX_MODE_EDIT_POINT_CLOUD, CTX_MODE_EDIT_SURFACE, CTX_MODE_EDIT_TEXT, CTX_MODE_OBJECT, CTX_MODE_PAINT_GPENCIL_LEGACY, CTX_MODE_PAINT_GREASE_PENCIL, CTX_MODE_PAINT_TEXTURE, CTX_MODE_PAINT_VERTEX, CTX_MODE_PAINT_WEIGHT, CTX_MODE_PARTICLE, CTX_MODE_POSE, CTX_MODE_SCULPT, CTX_MODE_SCULPT_CURVES, CTX_MODE_SCULPT_GPENCIL_LEGACY, CTX_MODE_SCULPT_GREASE_PENCIL, CTX_MODE_VERTEX_GPENCIL_LEGACY, CTX_MODE_VERTEX_GREASE_PENCIL, CTX_MODE_WEIGHT_GPENCIL_LEGACY, CTX_MODE_WEIGHT_GREASE_PENCIL, ED_region_panels_layout_ex(), ARegionType::paneltypes, RGN_TYPE_UI, SPACE_VIEW3D, and WM_OP_INVOKE_REGION_WIN.
Referenced by buttons_main_region_layout(), and view3d_buttons_region_layout().
| void ED_view3d_check_mats_rv3d | ( | RegionView3D * | rv3d | ) |
Definition at line 154 of file space_view3d.cc.
References BLI_ASSERT_ZERO_M4, RegionView3D::persmatob, and RegionView3D::viewmatob.
Referenced by armature_foreachScreenBone(), ED_view3d_project_float_object(), ED_view3d_project_int_object(), ED_view3d_project_short_object(), lattice_foreachScreenVert(), mball_foreachScreenElem(), mesh_foreachScreenEdge(), mesh_foreachScreenEdge_clip_bb_segment(), mesh_foreachScreenFace(), mesh_foreachScreenVert(), meshobject_foreachScreenVert(), nurbs_foreachScreenVert(), and pose_foreachScreenBone().
| void ED_view3d_clear_mats_rv3d | ( | RegionView3D * | rv3d | ) |
Ensure we correctly initialize.
Definition at line 148 of file space_view3d.cc.
References RegionView3D::persmatob, RegionView3D::viewmatob, and zero_m4().
| void ED_view3d_init_mats_rv3d | ( | const Object * | ob, |
| RegionView3D * | rv3d ) |
Most of the time this isn't needed since you could assume the view matrix was set while drawing, however when functions like mesh_foreachScreenVert are called by selection tools, we can't be sure this object was the last.
for example, transparent objects are drawn after edit-mode and will cause the rv3d mat's to change and break selection.
'ED_view3d_init_mats_rv3d' should be called before view3d_project_short_clip and view3d_project_short_noclip in cases where these functions are not used during draw_object
Definition at line 127 of file space_view3d.cc.
References ED_view3d_clipping_local(), mul_m4_m4m4(), RegionView3D::persmat, RegionView3D::persmatob, RegionView3D::viewmat, and RegionView3D::viewmatob.
Referenced by armature_circle_select(), do_lasso_select_armature(), do_lasso_select_curve(), do_lasso_select_lattice(), do_lasso_select_mesh(), do_lasso_select_meta(), do_lasso_select_paintvert(), do_lasso_tag_pose(), do_lattice_box_select(), do_mesh_box_select(), do_nurbs_box_select(), do_paintvert_box_select(), drw_manager_init(), ED_curve_editfont_select_pick(), ED_curve_pick_vert_ex(), ED_mesh_pick_vert(), ED_view3d_init_mats_rv3d_gl(), edbm_dupli_extrude_cursor_invoke(), EDBM_edge_find_nearest_ex(), EDBM_face_find_nearest_ex(), edbm_polybuild_delete_at_cursor_invoke(), edbm_polybuild_face_at_cursor_invoke(), edbm_polybuild_split_at_cursor_invoke(), edbm_polybuild_transform_at_cursor_invoke(), EDBM_project_snap_verts(), EDBM_vert_find_nearest_ex(), findnearestLattvert(), knifetool_modal(), lattice_circle_select(), mball_circle_select(), mesh_circle_select(), mouse_mesh_loop(), nurbscurve_circle_select(), paint_vertsel_circle_select(), paint_weight_gradient_exec(), paintface_select_loop(), pose_circle_select(), blender::ed::sculpt_paint::stroke_test_start(), vpaint_stroke_update_step(), weight_sample_group_invoke(), weight_sample_invoke(), and wpaint_stroke_update_step().
| void ED_view3d_init_mats_rv3d_gl | ( | const Object * | ob, |
| RegionView3D * | rv3d ) |
Definition at line 137 of file space_view3d.cc.
References ED_view3d_init_mats_rv3d(), and GPU_matrix_mul.
Definition at line 183 of file space_view3d.cc.
References ED_view3d_stop_render_preview(), ListBase::first, LISTBASE_FOREACH, OB_RENDER, RGN_TYPE_WINDOW, View3D::shading, View3DShading::type, and Main::wm.
Referenced by toggle_matcap_flip_exec(), and toggle_shading_exec().
| void ED_view3d_stop_render_preview | ( | wmWindowManager * | wm, |
| ARegion * | region ) |
Definition at line 161 of file space_view3d.cc.
References BPy_BEGIN_ALLOW_THREADS, BPy_END_ALLOW_THREADS, DRW_engine_external_free(), RegionView3D::view_render, WM_draw_region_free(), WM_JOB_TYPE_RENDER_PREVIEW, and WM_jobs_kill_type().
Referenced by ED_render_engine_area_exit(), ED_view3d_shade_update(), and view3d_main_region_exit().
|
static |
Definition at line 1961 of file space_view3d.cc.
References View3DShading::background_type, wmNotifier::category, wmNotifier::data, ED_area_tag_redraw_regiontype(), View3D::flag2, NC_MATERIAL, NC_SCENE, NC_WORLD, ND_NODES, ND_WORLD, ND_WORLD_DRAW, OB_TEXTURE, params, RGN_TYPE_WINDOW, View3D::shading, View3DShading::type, V3D_HIDE_OVERLAYS, V3D_SHADING_BACKGROUND_WORLD, and V3D_USES_SCENE_WORLD.
Referenced by ED_spacetype_view3d().
Definition at line 2002 of file space_view3d.cc.
References CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_area(), CTX_wm_manager(), CTX_wm_window(), ED_localview_exit_if_empty(), View3D_Runtime::flag, View3D_Runtime::local_stats, View3D::localvd, MEM_SAFE_FREE, View3D::runtime, and V3D_RUNTIME_LOCAL_MAYBE_EMPTY.
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 1950 of file space_view3d.cc.
References wmWindowManager::defaultconf, RGN_TYPE_WINDOW, SPACE_VIEW3D, WM_event_add_keymap_handler(), and WM_keymap_ensure().
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 1672 of file space_view3d.cc.
References wmWindowManager::defaultconf, ED_region_panels_init(), RGN_TYPE_WINDOW, SPACE_VIEW3D, WM_event_add_keymap_handler(), and WM_keymap_ensure().
Referenced by ED_spacetype_view3d().
Definition at line 1809 of file space_view3d.cc.
References ED_view3d_buttons_region_layout_ex().
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 1814 of file space_view3d.cc.
References wmNotifier::action, wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), ELEM, NA_ADDED, NA_EDITED, NA_REMOVED, NA_RENAME, NA_SELECTED, NC_ANIMATION, NC_BRUSH, NC_GEOM, NC_GPENCIL, NC_ID, NC_IMAGE, NC_MATERIAL, NC_OBJECT, NC_SCENE, NC_SPACE, NC_TEXTURE, NC_WM, ND_BONE_ACTIVE, ND_BONE_COLLECTION, ND_BONE_SELECT, ND_DATA, ND_DRAW, ND_FRAME, ND_GPENCIL_EDITMODE, ND_KEYFRAME, ND_KEYFRAME_PROP, ND_KEYS, ND_LAYER, ND_LAYER_CONTENT, ND_MODE, ND_MODIFIER, ND_NLA, ND_NLA_ACTCHANGE, ND_OB_ACTIVE, ND_OB_SELECT, ND_OB_VISIBLE, ND_POSE, ND_SELECT, ND_SHADERFX, ND_SPACE_VIEW3D, ND_TOOLSETTINGS, ND_TRANSFORM, ND_VERTEX_GROUP, ND_XR_DATA_CHANGED, and params.
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 843 of file space_view3d.cc.
References BASE_ENABLED_VIEWPORT, BASE_SELECTABLE, BKE_view_layer_base_deselect_all(), BKE_view_layer_base_find(), BKE_view_layer_base_select_and_set_active(), BKE_view_layer_synced_ensure(), BLI_assert, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), ED_outliner_select_sync_from_object_tag(), ED_undo_push(), FILE_AUTOSELECT, Base::flag, ID_RECALC_SELECT, NC_SCENE, ND_LAYER_CONTENT, ND_OB_ACTIVE, CollectionObject::ob, wmDropBox::ptr, RNA_int_set(), wmDrag::type, WM_DRAG_ASSET, WM_drag_asset_id_import(), WM_drag_get_asset_data(), WM_event_add_notifier(), and WM_main_add_notifier().
Referenced by view3d_dropboxes().
|
static |
Definition at line 835 of file space_view3d.cc.
References ID_GR, wmDropBox::ptr, RNA_int_set(), and WM_drag_get_local_ID().
Referenced by view3d_dropboxes().
|
static |
Definition at line 579 of file space_view3d.cc.
References ID_GR, and view3d_drop_id_in_main_region_poll().
Referenced by view3d_collection_drop_poll_external_asset(), and view3d_collection_drop_poll_local_id().
|
static |
Definition at line 592 of file space_view3d.cc.
References wmDrag::type, view3d_collection_drop_poll(), and WM_DRAG_ASSET.
Referenced by view3d_dropboxes().
|
static |
Definition at line 584 of file space_view3d.cc.
References wmDrag::type, view3d_collection_drop_poll(), and WM_DRAG_ID.
Referenced by view3d_dropboxes().
Definition at line 198 of file space_view3d.cc.
References BLI_addtail(), View3D::camera, RegionView3D::dist, DNA_struct_default_alloc, RegionView3D::persp, View3D::regionbase, RGN_ALIGN_BOTTOM, RGN_ALIGN_HIDE_WITH_PREV, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, RGN_ALIGN_TOP, RGN_FLAG_HIDDEN, RGN_FLAG_HIDDEN_BY_USER, RGN_TYPE_ASSET_SHELF, RGN_TYPE_ASSET_SHELF_HEADER, RGN_TYPE_HEADER, RGN_TYPE_TOOL_HEADER, RGN_TYPE_TOOLS, RGN_TYPE_UI, RGN_TYPE_WINDOW, RV3D_PERSP, RV3D_VIEW_USER, USER_HEADER_BOTTOM, RegionView3D::view, and RegionView3D::viewquat.
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 1384 of file space_view3d.cc.
References DRWUpdateContext::bmain, CTX_data_depsgraph_pointer(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DRWUpdateContext::depsgraph, DRW_notify_view_update(), ED_view3d_engine_type(), DRWUpdateContext::engine_type, OB_SOLID, wmMsgSubscribeValue::owner, DRWUpdateContext::region, DRWUpdateContext::scene, scene, View3D::shading, View3DShading::type, wmMsgSubscribeValue::user_data, DRWUpdateContext::v3d, and DRWUpdateContext::view_layer.
Referenced by view3d_main_region_message_subscribe().
|
static |
Definition at line 497 of file space_view3d.cc.
References view3d_drop_in_main_region_poll(), and WM_drag_is_ID_type().
Referenced by view3d_collection_drop_poll(), view3d_geometry_nodes_drop_poll(), view3d_mat_drop_poll(), view3d_ob_drop_poll(), and view3d_world_drop_poll().
|
static |
Definition at line 471 of file space_view3d.cc.
References wmDragAsset::asset, CTX_wm_area(), ED_region_overlap_isect_any_xy(), blender::asset_system::AssetRepresentation::get_id_type(), GS, ID::name, view3d_drop_in_main_region_poll(), WM_drag_get_asset_data(), WM_drag_get_local_ID(), and wmEvent::xy.
Referenced by view3d_object_data_drop_poll().
Definition at line 465 of file space_view3d.cc.
References CTX_wm_area(), ED_region_overlap_isect_any_xy(), and wmEvent::xy.
Referenced by view3d_drop_id_in_main_region_poll(), and view3d_drop_id_in_main_region_poll_get_id_type().
|
static |
Definition at line 913 of file space_view3d.cc.
References wmDropBox::draw_droptip, wmDropBox::on_enter, wmDropBox::on_exit, RGN_TYPE_WINDOW, SPACE_VIEW3D, view3d_collection_drop_copy_external_asset(), view3d_collection_drop_copy_local_id(), view3d_collection_drop_poll_external_asset(), view3d_collection_drop_poll_local_id(), view3d_geometry_nodes_drop_copy(), view3d_geometry_nodes_drop_poll(), view3d_geometry_nodes_drop_tooltip(), view3d_id_drop_copy(), view3d_id_drop_copy_with_type(), view3d_id_path_drop_copy(), view3d_ima_bg_drop_poll(), view3d_ima_empty_drop_poll(), view3d_mat_drop_poll(), view3d_mat_drop_tooltip(), view3d_ob_drop_copy_external_asset(), view3d_ob_drop_copy_local_id(), view3d_ob_drop_on_enter(), view3d_ob_drop_on_exit(), view3d_ob_drop_poll_external_asset(), view3d_ob_drop_poll_local_id(), view3d_object_data_drop_poll(), view3d_object_data_drop_tooltip(), view3d_world_drop_poll(), WM_drag_draw_item_name_fn(), WM_drag_free_imported_drag_ID(), WM_dropbox_add(), and WM_dropboxmap_find().
Referenced by ED_spacetype_view3d().
Definition at line 305 of file space_view3d.cc.
References BKE_viewer_path_copy(), View3D::flag, IDP_CopyProperty(), View3D::local_collections_uid, View3D::localvd, MEM_dupallocN, OB_RENDER, OB_SOLID, View3DShading::prop, View3D::runtime, View3D::shading, View3DShading::type, V3D_LOCAL_COLLECTIONS, V3D_XR_SESSION_MIRROR, and View3D::viewer_path.
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 298 of file space_view3d.cc.
References BLI_assert, View3D_Runtime::local_stats, MEM_SAFE_FREE, View3D::runtime, and SPACE_VIEW3D.
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 2079 of file space_view3d.cc.
References BKE_LIB_FOREACHID_PROCESS_IDSUPER, BKE_lib_query_foreachid_process_flags_get(), BKE_viewer_path_foreach_id(), View3D::camera, View3D_Runtime::flag, IDWALK_CB_DIRECT_WEAK_LINK, IDWALK_READONLY, View3D::localvd, View3D::ob_center, View3D::runtime, V3D_RUNTIME_LOCAL_MAYBE_EMPTY, and View3D::viewer_path.
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 272 of file space_view3d.cc.
References BKE_viewer_path_clear(), IDP_FreeProperty(), View3D_Runtime::local_stats, View3D::localvd, MEM_freeN(), MEM_SAFE_FREE, View3DShading::prop, View3D_Runtime::properties_storage, View3D_Runtime::properties_storage_free, View3D::runtime, View3D::shading, and View3D::viewer_path.
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 887 of file space_view3d.cc.
References wmDropBox::ptr, RNA_boolean_set(), wmDrag::type, view3d_id_drop_copy(), and WM_DRAG_ASSET.
Referenced by view3d_dropboxes().
|
static |
Definition at line 701 of file space_view3d.cc.
References wmDragActiveDropState::active_dropbox, wmDragAsset::asset, BKE_asset_metadata_idprop_find(), BKE_libblock_find_session_uid(), CTX_data_main(), wmDrag::drop_state, blender::asset_system::AssetRepresentation::get_metadata(), ID_NT, IDP_Int, node_tree, NTREE_GEOMETRY, RNA_int_get(), bNodeTree::type, wmDrag::type, view3d_drop_id_in_main_region_poll(), WM_DRAG_ASSET, WM_drag_get_asset_data(), WM_drag_get_local_ID(), and WM_DRAG_ID.
Referenced by view3d_dropboxes().
|
static |
Definition at line 738 of file space_view3d.cc.
References CTX_wm_region(), blender::ed::object::drop_geometry_nodes_tooltip(), wmDropBox::ptr, and xy.
Referenced by view3d_dropboxes().
Definition at line 1535 of file space_view3d.cc.
References ED_region_header().
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 1525 of file space_view3d.cc.
References wmWindowManager::defaultconf, ED_region_header_init(), RGN_TYPE_WINDOW, SPACE_VIEW3D, WM_event_add_keymap_handler(), and WM_keymap_ensure().
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 1540 of file space_view3d.cc.
References wmNotifier::action, wmNotifier::category, blender::ed::geometry::clear_operator_asset_trees(), wmNotifier::data, ED_region_tag_redraw(), ELEM, NA_ADDED, NA_EDITED, NA_REMOVED, NC_ASSET, NC_BRUSH, NC_GEOM, NC_GPENCIL, NC_MATERIAL, NC_NODE, NC_SCENE, NC_SPACE, NC_WM, ND_ASSET_CATALOGS, ND_ASSET_LIST_READING, ND_DATA, ND_FRAME, ND_GPENCIL_EDITMODE, ND_HISTORY, ND_LAYER, ND_LAYER_CONTENT, ND_MODE, ND_NODE_ASSET_DATA, ND_OB_ACTIVE, ND_OB_SELECT, ND_OB_VISIBLE, ND_RENDER_OPTIONS, ND_SHADING_LINKS, ND_SPACE_ASSET_PARAMS, ND_SPACE_VIEW3D, ND_TOOLSETTINGS, ND_VERTEX_GROUP, and params.
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 1648 of file space_view3d.cc.
References ARRAY_SIZE, ED_region_do_msg_notify_tag_redraw(), wmMsgSubscribeValue::owner, params, and WM_msg_subscribe_rna_params().
Referenced by ED_spacetype_view3d().
Definition at line 879 of file space_view3d.cc.
References wmDropBox::ptr, RNA_boolean_set(), wmDrag::type, WM_DRAG_ASSET, WM_drag_get_local_ID_or_import_from_asset(), and WM_operator_properties_id_lookup_set_from_id().
Referenced by view3d_dropboxes(), and view3d_geometry_nodes_drop_copy().
Definition at line 893 of file space_view3d.cc.
References GS, wmDropBox::ptr, RNA_enum_set(), WM_drag_get_local_ID_or_import_from_asset(), and WM_operator_properties_id_lookup_set_from_id().
Referenced by view3d_dropboxes().
Definition at line 901 of file space_view3d.cc.
References wmDropBox::ptr, RNA_struct_property_unset(), WM_drag_get_local_ID_or_import_from_asset(), and WM_operator_properties_id_lookup_set_from_id().
Referenced by view3d_dropboxes().
|
static |
Definition at line 2056 of file space_view3d.cc.
References BKE_viewer_path_id_remap(), blender::bke::id::IDRemapper::contains_mappings_for_any(), FILTER_ID_IM, FILTER_ID_MA, FILTER_ID_MC, FILTER_ID_OB, View3D_Runtime::flag, View3D::localvd, View3D::runtime, V3D_RUNTIME_LOCAL_MAYBE_EMPTY, view3d_id_remap_v3d(), view3d_id_remap_v3d_ob_centers(), and View3D::viewer_path.
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 2032 of file space_view3d.cc.
References blender::bke::id::IDRemapper::apply(), View3D::camera, ID_REMAP_APPLY_DEFAULT, ID_REMAP_RESULT_SOURCE_UNASSIGNED, LISTBASE_FOREACH, RegionView3D::localvd, RegionView3D::persp, SpaceLink::regionbase, RGN_TYPE_WINDOW, RV3D_CAMOB, and RV3D_PERSP.
Referenced by view3d_id_remap().
|
static |
Definition at line 2020 of file space_view3d.cc.
References blender::bke::id::IDRemapper::apply(), ID_REMAP_APPLY_DEFAULT, ID_REMAP_RESULT_SOURCE_UNASSIGNED, View3D::ob_center, and View3D::ob_center_bone.
Referenced by view3d_id_remap().
Definition at line 669 of file space_view3d.cc.
References ED_view3d_is_object_under_cursor(), wmEvent::mval, view3d_ima_bg_is_camera_view(), and view3d_ima_drop_poll().
Referenced by view3d_dropboxes().
|
static |
Definition at line 657 of file space_view3d.cc.
References View3D::camera, CTX_wm_region_view3d(), CTX_wm_view3d(), OB_CAMERA, RegionView3D::persp, RV3D_CAMOB, and Object::type.
Referenced by view3d_ima_bg_drop_poll().
Definition at line 649 of file space_view3d.cc.
References CTX_wm_area(), ED_region_overlap_isect_any_xy(), ID_IM, WM_drag_is_ID_type(), and wmEvent::xy.
Referenced by view3d_ima_bg_drop_poll(), and view3d_ima_empty_drop_poll().
|
static |
Definition at line 682 of file space_view3d.cc.
References ED_view3d_give_object_under_cursor(), Object::empty_drawtype, wmEvent::mval, OB_EMPTY, OB_EMPTY_IMAGE, Object::type, and view3d_ima_drop_poll().
Referenced by view3d_dropboxes().
|
static |
Definition at line 296 of file space_view3d.cc.
Referenced by ED_spacetype_view3d().
Definition at line 1506 of file space_view3d.cc.
References BKE_view_layer_edit_object_get(), BKE_view_layer_synced_ensure(), WM_CURSOR_DEFAULT, WM_CURSOR_EDIT, WM_cursor_set(), WM_cursor_set_from_tool(), WM_window_get_active_scene(), and WM_window_get_active_view_layer().
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 1056 of file space_view3d.cc.
References RegionView3D::clipbb, RegionView3D::localvd, MEM_dupallocN, RegionView3D::smooth_timer, RegionView3D::sms, and RegionView3D::view_render.
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 460 of file space_view3d.cc.
References ED_view3d_stop_render_preview().
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 1030 of file space_view3d.cc.
References RegionView3D::clipbb, DRW_engine_external_free(), RegionView3D::localvd, MEM_freeN(), RegionView3D::sms, and RegionView3D::view_render.
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 337 of file space_view3d.cc.
References wmWindowManager::defaultconf, RGN_TYPE_WINDOW, SPACE_EMPTY, SPACE_VIEW3D, WM_dropboxmap_find(), WM_event_add_dropbox_handler(), WM_event_add_keymap_handler(), and WM_keymap_ensure().
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 1079 of file space_view3d.cc.
References wmNotifier::action, ATTR_FALLTHROUGH, BKE_scene_get_depsgraph(), BKE_screen_view3d_sync(), View3D::camera, wmNotifier::category, Object::data, wmNotifier::data, depsgraph, ED_area_tag_refresh(), ED_region_tag_redraw(), ED_region_tag_redraw_cursor(), ED_render_view3d_update(), ELEM, View3D::flag, View3D_Runtime::flag, View3D::flag2, G_MAIN, View3D::localvd, NA_ADDED, NA_EDITED, NA_REMOVED, NA_RENAME, NA_SELECTED, NC_ANIMATION, NC_BRUSH, NC_CAMERA, NC_GEOM, NC_GPENCIL, NC_GROUP, NC_ID, NC_IMAGE, NC_LAMP, NC_LIGHTPROBE, NC_MATERIAL, NC_MOVIECLIP, NC_NODE, NC_OBJECT, NC_SCENE, NC_SCREEN, NC_SPACE, NC_TEXTURE, NC_VIEWER_PATH, NC_WM, NC_WORKSPACE, NC_WORLD, ND_ANIMCHAN, ND_ANIMPLAY, ND_BONE_ACTIVE, ND_BONE_COLLECTION, ND_BONE_SELECT, ND_CONSTRAINT, ND_DATA, ND_DISPLAY, ND_DRAW, ND_DRAW_ANIMVIZ, ND_DRAW_RENDER_VIEWPORT, ND_FRAME, ND_KEYFRAME, ND_KEYFRAME_PROP, ND_KEYS, ND_LAYER, ND_LAYER_CONTENT, ND_LAYOUTBROWSE, ND_LAYOUTDELETE, ND_LAYOUTSET, ND_LIGHTING, ND_LIGHTING_DRAW, ND_LOD, ND_MARKERS, ND_MODE, ND_MODIFIER, ND_NLA, ND_NLA_ACTCHANGE, ND_NODE_GIZMO, ND_NODES, ND_OB_ACTIVE, ND_OB_SELECT, ND_OB_VISIBLE, ND_PARTICLE, ND_POINTCACHE, ND_POSE, ND_RENDER_OPTIONS, ND_SCENEBROWSE, ND_SELECT, ND_SHADERFX, ND_SHADING, ND_SHADING_DRAW, ND_SHADING_LINKS, ND_SKETCH, ND_SPACE_VIEW3D, ND_TRANSFORM, ND_UNDO, ND_VERTEX_GROUP, ND_WORLD, ND_WORLD_DRAW, ND_XR_DATA_CHANGED, NS_VIEW3D_GPU, NS_VIEW3D_SHADING, params, RegionView3D::persp, wmNotifier::reference, RegionView3D::rflag, View3D::runtime, RV3D_CAMOB, RV3D_GPULIGHT_UPDATE, wmNotifier::subtype, V3D_RUNTIME_LOCAL_MAYBE_EMPTY, V3D_SHOW_VIEWER, V3D_XR_SESSION_MIRROR, WM_gizmomap_tag_refresh(), and WM_window_get_active_view_layer().
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 1405 of file space_view3d.cc.
References ARRAY_SIZE, BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), CTX_data_scene(), CTX_data_view_layer(), ED_region_do_msg_notify_tag_redraw(), Object::mode, OB_MODE_PARTICLE_EDIT, OB_MODE_SCULPT, wmMsgSubscribeValue::owner, params, RegionView3D::persp, RV3D_CAMOB, view3d_do_msg_notify_workbench_view_update(), WM_msg_subscribe_rna_anon_prop, WM_msg_subscribe_rna_anon_type, WM_msg_subscribe_rna_params(), and WM_toolsystem_do_msg_notify_tag_refresh().
Referenced by ED_spacetype_view3d().
Definition at line 602 of file space_view3d.cc.
References ED_view3d_give_object_under_cursor(), Object::id, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, ID_MA, wmEvent::mval, and view3d_drop_id_in_main_region_poll().
Referenced by view3d_dropboxes().
|
static |
Definition at line 613 of file space_view3d.cc.
References CTX_wm_region(), blender::ed::object::drop_named_material_tooltip(), WM_drag_get_item_name(), and xy.
Referenced by view3d_dropboxes().
|
static |
Definition at line 789 of file space_view3d.cc.
References BKE_view_layer_base_deselect_all(), BKE_view_layer_base_find(), BKE_view_layer_base_select_and_set_active(), BKE_view_layer_synced_ensure(), BLI_assert, CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), wmDropBox::draw_data, ED_outliner_select_sync_from_object_tag(), FILE_AUTOSELECT, ID_RECALC_SELECT, NC_SCENE, ND_LAYER_CONTENT, ND_OB_ACTIVE, wmDropBox::ptr, RNA_float_set_array(), RNA_int_set(), wmDrag::type, view3d_ob_drop_matrix_from_snap(), WM_DRAG_ASSET, WM_drag_asset_id_import(), WM_drag_get_asset_data(), WM_event_add_notifier(), and WM_main_add_notifier().
Referenced by view3d_dropboxes().
Definition at line 771 of file space_view3d.cc.
References BLI_assert, ED_view3d_cursor_snap_state_active_get(), ID_OB, wmDropBox::ptr, RNA_float_set_array(), RNA_int_set(), wmDrag::type, view3d_ob_drop_matrix_from_snap(), WM_DRAG_ASSET, and WM_drag_get_local_ID().
Referenced by view3d_dropboxes().
|
static |
Definition at line 748 of file space_view3d.cc.
References BKE_object_boundbox_get(), BLI_assert, copy_m4_m3(), copy_v3_v3(), V3DSnapCursorState::draw_box, V3DSnapCursorState::draw_plane, ED_view3d_cursor_snap_data_get(), V3DSnapCursorData::loc, mat4_to_size(), blender::math::midpoint(), mul_mat3_m4_v3(), V3DSnapCursorData::plane_omat, rescale_m4(), sub_v3_v3(), and UNUSED_VARS_NDEBUG.
Referenced by view3d_ob_drop_copy_external_asset(), and view3d_ob_drop_copy_local_id().
Definition at line 509 of file space_view3d.cc.
References BKE_asset_metadata_idprop_find(), BKE_object_dimensions_eval_cached_get(), copy_v3_v3(), wmDropBox::draw_data, ED_view3d_cursor_snap_state_create(), ID_OB, IDP_Array, is_zero_v3(), mul_v3_v3fl(), state, TH_GIZMO_PRIMARY, wmDrag::type, UI_GetThemeColor4ubv(), WM_drag_asset_will_import_linked(), WM_drag_get_asset_meta_data(), WM_drag_get_local_ID(), and WM_DRAG_ID.
Referenced by view3d_dropboxes().
Definition at line 546 of file space_view3d.cc.
References wmDropBox::draw_data, ED_view3d_cursor_snap_state_free(), and state.
Referenced by view3d_dropboxes().
Definition at line 555 of file space_view3d.cc.
References ID_OB, and view3d_drop_id_in_main_region_poll().
Referenced by view3d_ob_drop_poll_external_asset(), and view3d_ob_drop_poll_local_id().
|
static |
Definition at line 559 of file space_view3d.cc.
References wmDrag::type, view3d_ob_drop_poll(), and WM_DRAG_ASSET.
Referenced by view3d_dropboxes().
|
static |
Definition at line 571 of file space_view3d.cc.
References wmDrag::type, view3d_ob_drop_poll(), and WM_DRAG_ID.
Referenced by view3d_dropboxes().
|
static |
Definition at line 632 of file space_view3d.cc.
References OB_DATA_SUPPORT_ID, and view3d_drop_id_in_main_region_poll_get_id_type().
Referenced by view3d_dropboxes().
|
static |
Definition at line 2098 of file space_view3d.cc.
References BKE_gpencil_blend_read_data(), BKE_screen_view3d_do_versions_250(), BKE_screen_view3d_shading_blend_read_data(), BKE_viewer_path_blend_read_data(), BLO_read_struct, View3D::localvd, OB_RENDER, OB_SOLID, View3DShading::prev_type, SpaceLink::regionbase, View3D::runtime, View3D::shading, View3DShading::type, and View3D::viewer_path.
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 2123 of file space_view3d.cc.
References BKE_screen_view3d_shading_blend_write(), BKE_viewer_path_blend_write(), BLO_write_struct, View3D::localvd, View3D::shading, and View3D::viewer_path.
Referenced by ED_spacetype_view3d().
Definition at line 1939 of file space_view3d.cc.
References Bottom, ED_region_header_with_button_sections(), RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_TOP, and Top.
Referenced by ED_spacetype_view3d().
Definition at line 1933 of file space_view3d.cc.
References CTX_data_mode_string(), ED_region_panels_ex(), and WM_OP_INVOKE_REGION_WIN.
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 1923 of file space_view3d.cc.
References wmWindowManager::defaultconf, ED_region_panels_init(), RGN_TYPE_WINDOW, SPACE_VIEW3D, WM_event_add_keymap_handler(), and WM_keymap_ensure().
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 991 of file space_view3d.cc.
References params, RGN_TYPE_WINDOW, SPACE_VIEW3D, VIEW3D_GGT_armature_spline(), VIEW3D_GGT_camera(), VIEW3D_GGT_camera_view(), VIEW3D_GGT_empty_image(), VIEW3D_GGT_force_field(), VIEW3D_GGT_geometry_nodes(), VIEW3D_GGT_light_area(), VIEW3D_GGT_light_point(), VIEW3D_GGT_light_spot(), VIEW3D_GGT_light_target(), VIEW3D_GGT_mesh_preselect_edgering(), VIEW3D_GGT_mesh_preselect_elem(), VIEW3D_GGT_navigate(), VIEW3D_GGT_placement(), VIEW3D_GGT_ruler(), VIEW3D_GGT_tool_generic_handle_free(), VIEW3D_GGT_tool_generic_handle_normal(), VIEW3D_GGT_xform_cage(), VIEW3D_GGT_xform_extrude(), VIEW3D_GGT_xform_gizmo(), VIEW3D_GGT_xform_gizmo_context(), VIEW3D_GGT_xform_shear(), VIEW3D_GT_navigate_rotate(), VIEW3D_GT_ruler_item(), WM_gizmogrouptype_append(), WM_gizmogrouptype_append_and_link(), WM_gizmomaptype_ensure(), and WM_gizmotype_append().
Referenced by ED_spacetype_view3d().
Definition at line 627 of file space_view3d.cc.
References ID_WO, and view3d_drop_id_in_main_region_poll().
Referenced by view3d_dropboxes().