Blender  V3.3
Functions | Variables
space_view3d.c File Reference
#include <stdio.h>
#include <string.h>
#include "DNA_collection_types.h"
#include "DNA_defaults.h"
#include "DNA_gpencil_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.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "BKE_asset.h"
#include "BKE_context.h"
#include "BKE_curve.h"
#include "BKE_global.h"
#include "BKE_icons.h"
#include "BKE_idprop.h"
#include "BKE_lattice.h"
#include "BKE_layer.h"
#include "BKE_lib_remap.h"
#include "BKE_main.h"
#include "BKE_mball.h"
#include "BKE_mesh.h"
#include "BKE_object.h"
#include "BKE_scene.h"
#include "BKE_screen.h"
#include "BKE_workspace.h"
#include "ED_object.h"
#include "ED_outliner.h"
#include "ED_render.h"
#include "ED_screen.h"
#include "ED_space_api.h"
#include "ED_transform.h"
#include "ED_undo.h"
#include "GPU_matrix.h"
#include "DRW_engine.h"
#include "WM_api.h"
#include "WM_message.h"
#include "WM_toolsystem.h"
#include "WM_types.h"
#include "RE_engine.h"
#include "RE_pipeline.h"
#include "RNA_access.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "view3d_intern.h"
#include "view3d_navigate.h"

Go to the source code of this file.

Functions

RegionView3DED_view3d_context_rv3d (bContext *C)
 
bool ED_view3d_context_user_region (bContext *C, View3D **r_v3d, ARegion **r_region)
 
bool ED_view3d_area_user_region (const ScrArea *area, const View3D *v3d, ARegion **r_region)
 
void ED_view3d_init_mats_rv3d (const struct Object *ob, struct RegionView3D *rv3d)
 
void ED_view3d_init_mats_rv3d_gl (const struct Object *ob, struct RegionView3D *rv3d)
 
void ED_view3d_stop_render_preview (wmWindowManager *wm, ARegion *region)
 
void ED_view3d_shade_update (Main *bmain, View3D *v3d, ScrArea *area)
 
static SpaceLinkview3d_create (const ScrArea *UNUSED(area), const Scene *scene)
 
static void view3d_free (SpaceLink *sl)
 
static void view3d_init (wmWindowManager *UNUSED(wm), ScrArea *UNUSED(area))
 
static void view3d_exit (wmWindowManager *UNUSED(wm), ScrArea *area)
 
static SpaceLinkview3d_duplicate (SpaceLink *sl)
 
static void view3d_main_region_init (wmWindowManager *wm, ARegion *region)
 
static void view3d_main_region_exit (wmWindowManager *wm, ARegion *region)
 
static bool view3d_drop_in_main_region_poll (bContext *C, const wmEvent *event)
 
static ID_Type view3d_drop_id_in_main_region_poll_get_id_type (bContext *C, wmDrag *drag, const wmEvent *event)
 
static bool view3d_drop_id_in_main_region_poll (bContext *C, wmDrag *drag, const wmEvent *event, ID_Type id_type)
 
static void view3d_ob_drop_draw_activate (struct wmDropBox *drop, wmDrag *drag)
 
static void view3d_ob_drop_draw_deactivate (struct wmDropBox *drop, wmDrag *UNUSED(drag))
 
static bool view3d_ob_drop_poll (bContext *C, wmDrag *drag, const wmEvent *event)
 
static bool view3d_ob_drop_poll_external_asset (bContext *C, wmDrag *drag, const wmEvent *event)
 
static bool view3d_ob_drop_poll_local_id (bContext *C, wmDrag *drag, const wmEvent *event)
 
static bool view3d_collection_drop_poll (bContext *C, wmDrag *drag, const wmEvent *event)
 
static bool view3d_collection_drop_poll_local_id (bContext *C, wmDrag *drag, const wmEvent *event)
 
static bool view3d_collection_drop_poll_external_asset (bContext *C, wmDrag *drag, const wmEvent *event)
 
static bool view3d_mat_drop_poll (bContext *C, wmDrag *drag, const wmEvent *event)
 
static char * view3d_mat_drop_tooltip (bContext *C, wmDrag *drag, const int xy[2], wmDropBox *UNUSED(drop))
 
static bool view3d_world_drop_poll (bContext *C, wmDrag *drag, const wmEvent *event)
 
static bool view3d_object_data_drop_poll (bContext *C, wmDrag *drag, const wmEvent *event)
 
static char * view3d_object_data_drop_tooltip (bContext *UNUSED(C), wmDrag *UNUSED(drag), const int UNUSED(xy[2]), wmDropBox *UNUSED(drop))
 
static bool view3d_ima_drop_poll (bContext *C, wmDrag *drag, const wmEvent *event)
 
static bool view3d_ima_bg_is_camera_view (bContext *C)
 
static bool view3d_ima_bg_drop_poll (bContext *C, wmDrag *drag, const wmEvent *event)
 
static bool view3d_ima_empty_drop_poll (bContext *C, wmDrag *drag, const wmEvent *event)
 
static bool view3d_volume_drop_poll (bContext *UNUSED(C), wmDrag *drag, const wmEvent *UNUSED(event))
 
static void view3d_ob_drop_matrix_from_snap (V3DSnapCursorState *snap_state, Object *ob, float obmat_final[4][4])
 
static void view3d_ob_drop_copy_local_id (bContext *UNUSED(C), wmDrag *drag, wmDropBox *drop)
 
static void view3d_ob_drop_copy_external_asset (bContext *UNUSED(C), wmDrag *drag, wmDropBox *drop)
 
static void view3d_collection_drop_copy_local_id (bContext *UNUSED(C), wmDrag *drag, wmDropBox *drop)
 
static void view3d_collection_drop_copy_external_asset (bContext *UNUSED(C), wmDrag *drag, wmDropBox *drop)
 
static void view3d_id_drop_copy (bContext *UNUSED(C), wmDrag *drag, wmDropBox *drop)
 
static void view3d_id_drop_copy_with_type (bContext *UNUSED(C), wmDrag *drag, wmDropBox *drop)
 
static void view3d_id_path_drop_copy (bContext *UNUSED(C), wmDrag *drag, wmDropBox *drop)
 
static void view3d_lightcache_update (bContext *C)
 
static void view3d_dropboxes (void)
 
static void view3d_widgets (void)
 
static void view3d_main_region_free (ARegion *region)
 
static voidview3d_main_region_duplicate (void *poin)
 
static void view3d_main_region_listener (const wmRegionListenerParams *params)
 
static void view3d_do_msg_notify_workbench_view_update (struct bContext *C, struct wmMsgSubscribeKey *UNUSED(msg_key), struct wmMsgSubscribeValue *msg_val)
 
static void view3d_main_region_message_subscribe (const wmRegionMessageSubscribeParams *params)
 
static void view3d_main_region_cursor (wmWindow *win, ScrArea *area, ARegion *region)
 
static void view3d_header_region_init (wmWindowManager *wm, ARegion *region)
 
static void view3d_header_region_draw (const bContext *C, ARegion *region)
 
static void view3d_header_region_listener (const wmRegionListenerParams *params)
 
static void view3d_header_region_message_subscribe (const wmRegionMessageSubscribeParams *params)
 
static void view3d_buttons_region_init (wmWindowManager *wm, ARegion *region)
 
void ED_view3d_buttons_region_layout_ex (const bContext *C, ARegion *region, const char *category_override)
 
static void view3d_buttons_region_layout (const bContext *C, ARegion *region)
 
static void view3d_buttons_region_listener (const wmRegionListenerParams *params)
 
static void view3d_tools_region_init (wmWindowManager *wm, ARegion *region)
 
static void view3d_tools_region_draw (const bContext *C, ARegion *region)
 
static void space_view3d_listener (const wmSpaceTypeListenerParams *params)
 
static void space_view3d_refresh (const bContext *C, ScrArea *area)
 
static int view3d_context (const bContext *C, const char *member, bContextDataResult *result)
 
static void view3d_id_remap_v3d_ob_centers (View3D *v3d, const struct IDRemapper *mappings)
 
static void view3d_id_remap_v3d (ScrArea *area, SpaceLink *slink, View3D *v3d, const struct IDRemapper *mappings, const bool is_local)
 
static void view3d_id_remap (ScrArea *area, SpaceLink *slink, const struct IDRemapper *mappings)
 
void ED_spacetype_view3d (void)
 

Variables

const char * view3d_context_dir []
 

Function Documentation

◆ ED_spacetype_view3d()

void ED_spacetype_view3d ( void  )

Definition at line 1971 of file space_view3d.c.

References BKE_spacetype_register(), BKE_ST_MAXNAME, BLI_addhead(), 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_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, ARegionType::keymapflag, ARegionType::layout, ARegionType::listener, ARegionType::lock, MEM_callocN, ARegionType::message_subscribe, ARegionType::prefsizex, ARegionType::prefsizey, ARegionType::regionid, 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(), usdtokens::st(), UI_SIDEBAR_PANEL_WIDTH, 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_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_tools_region_draw(), view3d_tools_region_init(), and view3d_widgets().

Referenced by ED_spacetypes_init().

◆ ED_view3d_area_user_region()

bool ED_view3d_area_user_region ( const ScrArea area,
const View3D v3d,
ARegion **  r_region 
)

◆ ED_view3d_buttons_region_layout_ex()

void ED_view3d_buttons_region_layout_ex ( const bContext C,
ARegion region,
const char *  category_override 
)

◆ ED_view3d_context_rv3d()

RegionView3D* ED_view3d_context_rv3d ( struct bContext C)

◆ ED_view3d_context_user_region()

bool ED_view3d_context_user_region ( struct bContext C,
struct View3D **  r_v3d,
struct ARegion **  r_region 
)

◆ ED_view3d_init_mats_rv3d()

void ED_view3d_init_mats_rv3d ( const struct Object ob,
struct 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 166 of file space_view3d.c.

References ED_view3d_clipping_local(), mul_m4_m4m4(), Object::obmat, 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_knife_cut_exec(), 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(), pose_circle_select(), sculpt_stroke_test_start(), vpaint_stroke_update_step_intern(), weight_paint_sample_enum_itemf(), weight_sample_invoke(), and wpaint_stroke_update_step().

◆ ED_view3d_init_mats_rv3d_gl()

void ED_view3d_init_mats_rv3d_gl ( const struct Object ob,
struct RegionView3D rv3d 
)

Definition at line 176 of file space_view3d.c.

References ED_view3d_init_mats_rv3d(), GPU_matrix_mul, and Object::obmat.

◆ ED_view3d_shade_update()

void ED_view3d_shade_update ( Main bmain,
View3D v3d,
ScrArea area 
)

◆ ED_view3d_stop_render_preview()

void ED_view3d_stop_render_preview ( wmWindowManager wm,
ARegion region 
)

◆ space_view3d_listener()

static void space_view3d_listener ( const wmSpaceTypeListenerParams params)
static

◆ space_view3d_refresh()

static void space_view3d_refresh ( const bContext C,
ScrArea area 
)
static

◆ view3d_buttons_region_init()

static void view3d_buttons_region_init ( wmWindowManager wm,
ARegion region 
)
static

◆ view3d_buttons_region_layout()

static void view3d_buttons_region_layout ( const bContext C,
ARegion region 
)
static

Definition at line 1681 of file space_view3d.c.

References C, ED_view3d_buttons_region_layout_ex(), and NULL.

Referenced by ED_spacetype_view3d().

◆ view3d_buttons_region_listener()

static void view3d_buttons_region_listener ( const wmRegionListenerParams params)
static

◆ view3d_collection_drop_copy_external_asset()

static void view3d_collection_drop_copy_external_asset ( bContext UNUSEDC,
wmDrag drag,
wmDropBox drop 
)
static

◆ view3d_collection_drop_copy_local_id()

static void view3d_collection_drop_copy_local_id ( bContext UNUSEDC,
wmDrag drag,
wmDropBox drop 
)
static

Definition at line 773 of file space_view3d.c.

References id, ID_GR, wmDropBox::ptr, RNA_int_set(), ID::session_uuid, and WM_drag_get_local_ID().

Referenced by view3d_dropboxes().

◆ view3d_collection_drop_poll()

static bool view3d_collection_drop_poll ( bContext C,
wmDrag drag,
const wmEvent event 
)
static

◆ view3d_collection_drop_poll_external_asset()

static bool view3d_collection_drop_poll_external_asset ( bContext C,
wmDrag drag,
const wmEvent event 
)
static

Definition at line 575 of file space_view3d.c.

References C, wmDrag::type, view3d_collection_drop_poll(), and WM_DRAG_ASSET.

Referenced by view3d_dropboxes().

◆ view3d_collection_drop_poll_local_id()

static bool view3d_collection_drop_poll_local_id ( bContext C,
wmDrag drag,
const wmEvent event 
)
static

Definition at line 567 of file space_view3d.c.

References C, wmDrag::type, view3d_collection_drop_poll(), and WM_DRAG_ID.

Referenced by view3d_dropboxes().

◆ view3d_context()

static int view3d_context ( const bContext C,
const char *  member,
bContextDataResult result 
)
static

◆ view3d_create()

static SpaceLink* view3d_create ( const ScrArea UNUSEDarea,
const Scene scene 
)
static

◆ view3d_do_msg_notify_workbench_view_update()

static void view3d_do_msg_notify_workbench_view_update ( struct bContext C,
struct wmMsgSubscribeKey UNUSEDmsg_key,
struct wmMsgSubscribeValue msg_val 
)
static

◆ view3d_drop_id_in_main_region_poll()

static bool view3d_drop_id_in_main_region_poll ( bContext C,
wmDrag drag,
const wmEvent event,
ID_Type  id_type 
)
static

◆ view3d_drop_id_in_main_region_poll_get_id_type()

static ID_Type view3d_drop_id_in_main_region_poll_get_id_type ( bContext C,
wmDrag drag,
const wmEvent event 
)
static

◆ view3d_drop_in_main_region_poll()

static bool view3d_drop_in_main_region_poll ( bContext C,
const wmEvent event 
)
static

◆ view3d_dropboxes()

static void view3d_dropboxes ( void  )
static

◆ view3d_duplicate()

static SpaceLink* view3d_duplicate ( SpaceLink sl)
static

◆ view3d_exit()

static void view3d_exit ( wmWindowManager UNUSEDwm,
ScrArea area 
)
static

◆ view3d_free()

static void view3d_free ( SpaceLink sl)
static

◆ view3d_header_region_draw()

static void view3d_header_region_draw ( const bContext C,
ARegion region 
)
static

Definition at line 1459 of file space_view3d.c.

References C, and ED_region_header().

Referenced by ED_spacetype_view3d().

◆ view3d_header_region_init()

static void view3d_header_region_init ( wmWindowManager wm,
ARegion region 
)
static

◆ view3d_header_region_listener()

static void view3d_header_region_listener ( const wmRegionListenerParams params)
static

◆ view3d_header_region_message_subscribe()

static void view3d_header_region_message_subscribe ( const wmRegionMessageSubscribeParams params)
static

◆ view3d_id_drop_copy()

static void view3d_id_drop_copy ( bContext UNUSEDC,
wmDrag drag,
wmDropBox drop 
)
static

◆ view3d_id_drop_copy_with_type()

static void view3d_id_drop_copy_with_type ( bContext UNUSEDC,
wmDrag drag,
wmDropBox drop 
)
static

◆ view3d_id_path_drop_copy()

static void view3d_id_path_drop_copy ( bContext UNUSEDC,
wmDrag drag,
wmDropBox drop 
)
static

◆ view3d_id_remap()

static void view3d_id_remap ( ScrArea area,
SpaceLink slink,
const struct IDRemapper *  mappings 
)
static

◆ view3d_id_remap_v3d()

static void view3d_id_remap_v3d ( ScrArea area,
SpaceLink slink,
View3D v3d,
const struct IDRemapper *  mappings,
const bool  is_local 
)
static

◆ view3d_id_remap_v3d_ob_centers()

static void view3d_id_remap_v3d_ob_centers ( View3D v3d,
const struct IDRemapper *  mappings 
)
static

◆ view3d_ima_bg_drop_poll()

static bool view3d_ima_bg_drop_poll ( bContext C,
wmDrag drag,
const wmEvent event 
)
static

◆ view3d_ima_bg_is_camera_view()

static bool view3d_ima_bg_is_camera_view ( bContext C)
static

◆ view3d_ima_drop_poll()

static bool view3d_ima_drop_poll ( bContext C,
wmDrag drag,
const wmEvent event 
)
static

◆ view3d_ima_empty_drop_poll()

static bool view3d_ima_empty_drop_poll ( bContext C,
wmDrag drag,
const wmEvent event 
)
static

◆ view3d_init()

static void view3d_init ( wmWindowManager UNUSEDwm,
ScrArea UNUSEDarea 
)
static

Definition at line 321 of file space_view3d.c.

Referenced by ED_spacetype_view3d().

◆ view3d_lightcache_update()

static void view3d_lightcache_update ( bContext C)
static

◆ view3d_main_region_cursor()

static void view3d_main_region_cursor ( wmWindow win,
ScrArea area,
ARegion region 
)
static

◆ view3d_main_region_duplicate()

static void* view3d_main_region_duplicate ( void poin)
static

Definition at line 1013 of file space_view3d.c.

References RegionView3D::clipbb, RegionView3D::localvd, MEM_dupallocN, and NULL.

Referenced by ED_spacetype_view3d().

◆ view3d_main_region_exit()

static void view3d_main_region_exit ( wmWindowManager wm,
ARegion region 
)
static

Definition at line 444 of file space_view3d.c.

References ED_view3d_stop_render_preview().

Referenced by ED_spacetype_view3d().

◆ view3d_main_region_free()

static void view3d_main_region_free ( ARegion region)
static

◆ view3d_main_region_init()

static void view3d_main_region_init ( wmWindowManager wm,
ARegion region 
)
static

◆ view3d_main_region_listener()

static void view3d_main_region_listener ( const wmRegionListenerParams params)
static

Definition at line 1035 of file space_view3d.c.

References wmNotifier::action, blender::compositor::area(), 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, G_MAIN, ARegion::gizmo_map, 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_OBJECT, NC_SCENE, NC_SCREEN, NC_SPACE, NC_TEXTURE, NC_WM, NC_WORKSPACE, NC_WORLD, ND_ANIMCHAN, ND_ANIMPLAY, ND_BONE_ACTIVE, 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_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, ARegion::regiondata, RegionView3D::rflag, RV3D_CAMOB, RV3D_GPULIGHT_UPDATE, scene, wmNotifier::subtype, V3D_XR_SESSION_MIRROR, WM_gizmomap_tag_refresh(), and WM_window_get_active_view_layer().

Referenced by ED_spacetype_view3d().

◆ view3d_main_region_message_subscribe()

static void view3d_main_region_message_subscribe ( const wmRegionMessageSubscribeParams params)
static

◆ view3d_mat_drop_poll()

static bool view3d_mat_drop_poll ( bContext C,
wmDrag drag,
const wmEvent event 
)
static

Definition at line 585 of file space_view3d.c.

References C, ID_MA, and view3d_drop_id_in_main_region_poll().

Referenced by view3d_dropboxes().

◆ view3d_mat_drop_tooltip()

static char* view3d_mat_drop_tooltip ( bContext C,
wmDrag drag,
const int  xy[2],
wmDropBox UNUSEDdrop 
)
static

◆ view3d_ob_drop_copy_external_asset()

static void view3d_ob_drop_copy_external_asset ( bContext UNUSEDC,
wmDrag drag,
wmDropBox drop 
)
static

◆ view3d_ob_drop_copy_local_id()

static void view3d_ob_drop_copy_local_id ( bContext UNUSEDC,
wmDrag drag,
wmDropBox drop 
)
static

◆ view3d_ob_drop_draw_activate()

static void view3d_ob_drop_draw_activate ( struct wmDropBox drop,
wmDrag drag 
)
static

◆ view3d_ob_drop_draw_deactivate()

static void view3d_ob_drop_draw_deactivate ( struct wmDropBox drop,
wmDrag UNUSEDdrag 
)
static

Definition at line 529 of file space_view3d.c.

References wmDropBox::draw_data, ED_view3d_cursor_snap_deactive(), NULL, and state.

Referenced by view3d_dropboxes().

◆ view3d_ob_drop_matrix_from_snap()

static void view3d_ob_drop_matrix_from_snap ( V3DSnapCursorState snap_state,
Object ob,
float  obmat_final[4][4] 
)
static

◆ view3d_ob_drop_poll()

static bool view3d_ob_drop_poll ( bContext C,
wmDrag drag,
const wmEvent event 
)
static

◆ view3d_ob_drop_poll_external_asset()

static bool view3d_ob_drop_poll_external_asset ( bContext C,
wmDrag drag,
const wmEvent event 
)
static

Definition at line 542 of file space_view3d.c.

References C, wmDrag::type, view3d_ob_drop_poll(), and WM_DRAG_ASSET.

Referenced by view3d_dropboxes().

◆ view3d_ob_drop_poll_local_id()

static bool view3d_ob_drop_poll_local_id ( bContext C,
wmDrag drag,
const wmEvent event 
)
static
Note
the term local here refers to not being an external asset, poll will succeed for linked library objects.

Definition at line 554 of file space_view3d.c.

References C, wmDrag::type, view3d_ob_drop_poll(), and WM_DRAG_ID.

Referenced by view3d_dropboxes().

◆ view3d_object_data_drop_poll()

static bool view3d_object_data_drop_poll ( bContext C,
wmDrag drag,
const wmEvent event 
)
static

Definition at line 609 of file space_view3d.c.

References C, OB_DATA_SUPPORT_ID, and view3d_drop_id_in_main_region_poll_get_id_type().

Referenced by view3d_dropboxes().

◆ view3d_object_data_drop_tooltip()

static char* view3d_object_data_drop_tooltip ( bContext UNUSEDC,
wmDrag UNUSEDdrag,
const int   UNUSEDxy[2],
wmDropBox UNUSEDdrop 
)
static

Definition at line 618 of file space_view3d.c.

References BLI_strdup(), and TIP_.

Referenced by view3d_dropboxes().

◆ view3d_tools_region_draw()

static void view3d_tools_region_draw ( const bContext C,
ARegion region 
)
static

Definition at line 1803 of file space_view3d.c.

References C, CTX_data_mode_string(), ED_region_panels_ex(), and NULL.

Referenced by ED_spacetype_view3d().

◆ view3d_tools_region_init()

static void view3d_tools_region_init ( wmWindowManager wm,
ARegion region 
)
static

◆ view3d_volume_drop_poll()

static bool view3d_volume_drop_poll ( bContext UNUSEDC,
wmDrag drag,
const wmEvent UNUSEDevent 
)
static

Definition at line 683 of file space_view3d.c.

References wmDrag::icon, wmDrag::type, and WM_DRAG_PATH.

Referenced by view3d_dropboxes().

◆ view3d_widgets()

static void view3d_widgets ( void  )
static

◆ view3d_world_drop_poll()

static bool view3d_world_drop_poll ( bContext C,
wmDrag drag,
const wmEvent event 
)
static

Definition at line 604 of file space_view3d.c.

References C, ID_WO, and view3d_drop_id_in_main_region_poll().

Referenced by view3d_dropboxes().

Variable Documentation

◆ view3d_context_dir

const char* view3d_context_dir[]
Initial value:
= {
"active_object",
"selected_ids",
}

Definition at line 1864 of file space_view3d.c.

Referenced by bpy_context_members(), and view3d_context().