10#define DNA_DEPRECATED_ALLOW
87 ARegion *region_unlock_user =
nullptr;
88 ARegion *region_unlock =
nullptr;
99 region_unlock = region;
101 region_unlock_user = region;
109 if (region_unlock_user) {
110 *r_region = region_unlock_user;
115 *r_region = region_unlock;
341 "Paint Face Mask (Weight, Vertex, Texture)",
347 "Paint Vertex Selection (Weight, Vertex)",
553 new_rv3d->
sms =
nullptr;
801 ED_view3d_xr_shading_update(
908 msg_sub_value_region_tag_redraw.
owner = region;
909 msg_sub_value_region_tag_redraw.
user_data = region;
913 msg_key_params.
ptr.
type = type_array[
i];
922 mbus, RenderSettings, resolution_x, &msg_sub_value_region_tag_redraw);
924 mbus, RenderSettings, resolution_y, &msg_sub_value_region_tag_redraw);
926 mbus, RenderSettings, pixel_aspect_x, &msg_sub_value_region_tag_redraw);
928 mbus, RenderSettings, pixel_aspect_y, &msg_sub_value_region_tag_redraw);
931 mbus, RenderSettings, use_border, &msg_sub_value_region_tag_redraw);
942 if (obact !=
nullptr) {
943 switch (obact->
mode) {
954 msg_sub_value_region_tag_refresh.
owner = region;
955 msg_sub_value_region_tag_refresh.
user_data = area;
1005 switch (wmn->
data) {
1020 switch (wmn->
data) {
1031 switch (wmn->
data) {
1046 switch (wmn->
data) {
1119 msg_sub_value_region_tag_redraw.
owner = region;
1120 msg_sub_value_region_tag_redraw.
user_data = region;
1124 msg_key_params.
ptr.
type = type_array[
i];
1145 const char *category_override)
1149 const char *contexts_base[4] = {
nullptr};
1152 const char **contexts = &contexts_base[1];
1260 if (category_override !=
nullptr) {
1287 switch (wmn->
data) {
1301 switch (wmn->
data) {
1321 switch (wmn->
data) {
1336 switch (wmn->
data) {
1438 switch (wmn->
data) {
1449 switch (wmn->
data) {
1459 switch (wmn->
data) {
1504 const bool is_local)
1537 if (
view3d->localvd !=
nullptr) {
1608 std::unique_ptr<SpaceType> st = std::make_unique<SpaceType>();
1629 st->blend_read_after_liblink =
nullptr;
const char * CTX_data_mode_string(const bContext *C)
@ CTX_MODE_VERTEX_GPENCIL_LEGACY
@ CTX_MODE_WEIGHT_GPENCIL_LEGACY
@ CTX_MODE_SCULPT_GPENCIL_LEGACY
@ CTX_MODE_PAINT_GREASE_PENCIL
@ CTX_MODE_PAINT_GPENCIL_LEGACY
@ CTX_MODE_SCULPT_GREASE_PENCIL
@ CTX_MODE_EDIT_POINTCLOUD
@ CTX_MODE_EDIT_GREASE_PENCIL
@ CTX_MODE_WEIGHT_GREASE_PENCIL
@ CTX_MODE_VERTEX_GREASE_PENCIL
@ CTX_MODE_EDIT_GPENCIL_LEGACY
Depsgraph * CTX_data_ensure_evaluated_depsgraph(const bContext *C)
ScrArea * CTX_wm_area(const bContext *C)
wmWindow * CTX_wm_window(const bContext *C)
Scene * CTX_data_scene(const bContext *C)
wmWindowManager * CTX_wm_manager(const bContext *C)
enum eContextObjectMode CTX_data_mode_enum(const bContext *C)
ViewLayer * CTX_data_view_layer(const bContext *C)
void BKE_gpencil_blend_read_data(struct BlendDataReader *reader, struct bGPdata *gpd)
void IDP_FreeProperty(IDProperty *prop)
IDProperty * IDP_CopyProperty(const IDProperty *prop) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BKE_view_layer_synced_ensure(const Scene *scene, ViewLayer *view_layer)
Object * BKE_view_layer_active_object_get(const ViewLayer *view_layer)
Object * BKE_view_layer_edit_object_get(const ViewLayer *view_layer)
#define BKE_LIB_FOREACHID_PROCESS_IDSUPER(data_, id_super_, cb_flag_)
@ IDWALK_CB_DIRECT_WEAK_LINK
LibraryForeachIDFlag BKE_lib_query_foreachid_process_flags_get(const LibraryForeachIDData *data)
@ ID_REMAP_RESULT_SOURCE_UNASSIGNED
General operations, lookup, etc. for blender objects.
Depsgraph * BKE_scene_get_depsgraph(const Scene *scene, const ViewLayer *view_layer)
void BKE_screen_view3d_shading_blend_read_data(BlendDataReader *reader, View3DShading *shading)
void BKE_spacetype_register(std::unique_ptr< SpaceType > st)
ARegion * BKE_area_region_new()
void BKE_screen_view3d_shading_blend_write(BlendWriter *writer, View3DShading *shading)
SpaceType * BKE_spacetype_from_id(int spaceid)
ARegionType * BKE_regiontype_from_id(const SpaceType *st, int regionid)
void BKE_screen_view3d_sync(View3D *v3d, Scene *scene)
void BKE_screen_view3d_do_versions_250(View3D *v3d, ListBase *regions)
void BKE_viewer_path_copy(ViewerPath *dst, const ViewerPath *src)
void BKE_viewer_path_id_remap(ViewerPath *viewer_path, const blender::bke::id::IDRemapper &mappings)
void BKE_viewer_path_foreach_id(LibraryForeachIDData *data, ViewerPath *viewer_path)
void BKE_viewer_path_clear(ViewerPath *viewer_path)
void BKE_viewer_path_blend_read_data(BlendDataReader *reader, ViewerPath *viewer_path)
void BKE_viewer_path_blend_write(BlendWriter *writer, const ViewerPath *viewer_path)
#define LISTBASE_FOREACH(type, var, list)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BLI_addhead(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
#define BLI_ASSERT_ZERO_M4(m)
void zero_m4(float m[4][4])
void mul_m4_m4m4(float R[4][4], const float A[4][4], const float B[4][4])
#define STRNCPY_UTF8(dst, src)
#define ARRAY_SET_ITEMS(...)
#define BLO_write_struct(writer, struct_name, data_ptr)
#define BLO_read_struct(reader, struct_name, ptr_p)
#define BPy_BEGIN_ALLOW_THREADS
#define BPy_END_ALLOW_THREADS
Object groups, one object can be in many groups at once.
#define DNA_struct_default_alloc(struct_name)
Object is a sort of wrapper for general info.
#define RGN_ALIGN_ENUM_FROM_MASK(align)
@ RGN_ALIGN_HIDE_WITH_PREV
@ RGN_TYPE_ASSET_SHELF_HEADER
@ RGN_FLAG_INDICATE_OVERFLOW
@ RGN_FLAG_HIDDEN_BY_USER
@ V3D_SHADING_BACKGROUND_WORLD
#define V3D_USES_SCENE_WORLD(v3d)
@ V3D_RUNTIME_LOCAL_MAYBE_EMPTY
void DRW_engine_external_free(RegionView3D *rv3d)
void ED_view3d_local_stats_free(View3D *v3d)
void ED_render_view3d_update(Depsgraph *depsgraph, wmWindow *window, ScrArea *area, bool updated)
void ED_area_do_mgs_subscribe_for_tool_header(const wmRegionMessageSubscribeParams *params)
ARegionType * ED_area_type_hud(int space_type)
void ED_area_do_mgs_subscribe_for_tool_ui(const wmRegionMessageSubscribeParams *params)
void ED_region_header(const bContext *C, ARegion *region)
void ED_region_header_init(ARegion *region)
void ED_area_tag_redraw_regiontype(ScrArea *area, int regiontype)
void ED_region_header_with_button_sections(const bContext *C, ARegion *region, uiButtonSectionsAlign align)
void ED_region_panels_ex(const bContext *C, ARegion *region, blender::wm::OpCallContext op_context, const char *contexts[])
int ED_region_generic_tools_region_snap_size(const ARegion *region, int size, int axis)
void ED_region_tag_redraw_cursor(ARegion *region)
void ED_area_tag_refresh(ScrArea *area)
void ED_region_generic_tools_region_message_subscribe(const wmRegionMessageSubscribeParams *params)
int ED_region_generic_panel_region_snap_size(const ARegion *region, int size, int axis)
void ED_region_panels_init(wmWindowManager *wm, ARegion *region)
void ED_region_panels_layout_ex(const bContext *C, ARegion *region, ListBase *paneltypes, blender::wm::OpCallContext op_context, const char *contexts[], const char *category_override)
void ED_region_tag_redraw(ARegion *region)
void ED_region_do_msg_notify_tag_redraw(bContext *C, wmMsgSubscribeKey *msg_key, wmMsgSubscribeValue *msg_val)
void ED_region_panels_draw(const bContext *C, ARegion *region)
bool ED_localview_exit_if_empty(const Depsgraph *depsgraph, Scene *scene, ViewLayer *view_layer, wmWindowManager *wm, wmWindow *win, View3D *v3d, ScrArea *area, bool frame_selected=true, int smooth_viewtx=0)
void ED_view3d_clipping_local(RegionView3D *rv3d, const float mat[4][4])
#define GPU_matrix_mul(x)
Read Guarded memory(de)allocation.
#define UI_SIDEBAR_PANEL_WIDTH
@ WM_JOB_TYPE_RENDER_PREVIEW
#define ND_ASSET_LIST_READING
#define ND_GPENCIL_EDITMODE
#define ND_RENDER_OPTIONS
#define ND_SPACE_ASSET_PARAMS
#define ND_BONE_COLLECTION
#define ND_ASSET_CATALOGS
#define ND_XR_DATA_CHANGED
#define NS_VIEW3D_SHADING
#define ND_NODE_ASSET_DATA
#define ND_DRAW_RENDER_VIEWPORT
BMesh const char void * data
BPy_StructRNA * depsgraph
IDRemapperApplyResult apply(ID **r_id_ptr, IDRemapperApplyOptions options, ID *id_self=nullptr) const
bool contains_mappings_for_any(IDTypeFilter filter) const
void * MEM_callocN(size_t len, const char *str)
void * MEM_dupallocN(const void *vmemh)
void MEM_freeN(void *vmemh)
void header_region(const bContext *C, ARegion *region)
void region_init(wmWindowManager *wm, ARegion *region)
void types_register(ARegionType *region_type, const int space_type)
void region_listen(const wmRegionListenerParams *params)
void region_on_poll_success(const bContext *C, ARegion *region)
void header_region_listen(const wmRegionListenerParams *params)
void region_on_user_resize(const ARegion *region)
int context(const bContext *C, const char *member, bContextDataResult *result)
int region_snap(const ARegion *region, int size, int axis)
void * region_duplicate(void *regiondata)
bool regions_poll(const RegionPollParams *params)
void header_region_init(wmWindowManager *wm, ARegion *region)
void region_draw(const bContext *C, ARegion *region)
void region_message_subscribe(const wmRegionMessageSubscribeParams *params)
void region_layout(const bContext *C, ARegion *region)
void region_free(ARegion *region)
MenuType node_group_operator_assets_menu()
MenuType node_group_operator_assets_menu_unassigned()
void clear_operator_asset_trees()
static void view3d_main_region_init(wmWindowManager *wm, ARegion *region)
void ED_view3d_check_mats_rv3d(RegionView3D *rv3d)
static void view3d_exit(wmWindowManager *, ScrArea *area)
static void view3d_id_remap(ScrArea *area, SpaceLink *slink, const blender::bke::id::IDRemapper &mappings)
static void view3d_tools_header_region_draw(const bContext *C, ARegion *region)
static void view3d_free(SpaceLink *sl)
static void space_view3d_listener(const wmSpaceTypeListenerParams *params)
void ED_view3d_clear_mats_rv3d(RegionView3D *rv3d)
void ED_view3d_init_mats_rv3d(const Object *ob, RegionView3D *rv3d)
static SpaceLink * view3d_duplicate(SpaceLink *sl)
static void view3d_widgets()
static void view3d_main_region_listener(const wmRegionListenerParams *params)
void ED_view3d_stop_render_preview(wmWindowManager *wm, ARegion *region)
static void view3d_header_region_draw(const bContext *C, ARegion *region)
static void view3d_id_remap_v3d(ScrArea *area, SpaceLink *slink, View3D *v3d, const blender::bke::id::IDRemapper &mappings, const bool is_local)
static void view3d_init(wmWindowManager *, ScrArea *)
static void view3d_tools_region_draw(const bContext *C, ARegion *region)
static SpaceLink * view3d_create(const ScrArea *, const Scene *scene)
static void view3d_header_region_init(wmWindowManager *wm, ARegion *region)
static void view3d_main_region_exit(wmWindowManager *wm, ARegion *region)
static void view3d_id_remap_v3d_ob_centers(View3D *v3d, const blender::bke::id::IDRemapper &mappings)
static void view3d_space_blend_read_data(BlendDataReader *reader, SpaceLink *sl)
static void view3d_header_region_message_subscribe(const wmRegionMessageSubscribeParams *params)
static void view3d_main_region_message_subscribe(const wmRegionMessageSubscribeParams *params)
static void view3d_buttons_region_layout(const bContext *C, ARegion *region)
static void view3d_asset_shelf_region_init(wmWindowManager *wm, ARegion *region)
static void view3d_space_blend_write(BlendWriter *writer, SpaceLink *sl)
void ED_view3d_init_mats_rv3d_gl(const Object *ob, RegionView3D *rv3d)
static void view3d_tools_region_init(wmWindowManager *wm, ARegion *region)
static void view3d_foreach_id(SpaceLink *space_link, LibraryForeachIDData *data)
static void view3d_main_region_cursor(wmWindow *win, ScrArea *area, ARegion *region)
static void view3d_buttons_region_listener(const wmRegionListenerParams *params)
void ED_spacetype_view3d()
static void view3d_main_region_free(ARegion *region)
static void * view3d_main_region_duplicate(void *poin)
void ED_view3d_buttons_region_layout_ex(const bContext *C, ARegion *region, const char *category_override)
static void view3d_header_region_listener(const wmRegionListenerParams *params)
static void view3d_buttons_region_init(wmWindowManager *wm, ARegion *region)
void ED_view3d_shade_update(Main *bmain, View3D *v3d, ScrArea *area)
bool ED_view3d_area_user_region(const ScrArea *area, const View3D *v3d, ARegion **r_region)
static void space_view3d_refresh(const bContext *C, ScrArea *area)
bool(* poll)(const RegionPollParams *params)
void(* exit)(wmWindowManager *wm, ARegion *region)
void(* on_poll_success)(const bContext *C, ARegion *region)
void(* message_subscribe)(const wmRegionMessageSubscribeParams *params)
void(* cursor)(wmWindow *win, ScrArea *area, ARegion *region)
void(* listener)(const wmRegionListenerParams *params)
void *(* duplicate)(void *poin)
bContextDataCallback context
void(* draw)(const bContext *C, ARegion *region)
void(* layout)(const bContext *C, ARegion *region)
void(* on_user_resize)(const ARegion *region)
int(* snap_size)(const ARegion *region, int size, int axis)
void(* init)(wmWindowManager *wm, ARegion *region)
ARegionRuntimeHandle * runtime
struct SmoothView3DStore * sms
struct ViewRender * view_render
struct RegionView3D * localvd
struct wmTimer * smooth_timer
void * properties_storage
void(* properties_storage_free)(void *properties_storage)
unsigned short local_collections_uid
struct Object * ob_center
WindowManagerRuntimeHandle * runtime
int view3d_context(const bContext *C, const char *member, bContextDataResult *result)
void view3d_main_region_draw(const bContext *C, ARegion *region)
void VIEW3D_GGT_armature_spline(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_camera(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_camera_view(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_empty_image(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_force_field(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_geometry_nodes(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_light_spot(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_light_area(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_light_point(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_light_target(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_navigate(wmGizmoGroupType *gzgt)
void VIEW3D_GT_navigate_rotate(wmGizmoType *gzt)
void VIEW3D_GGT_mesh_preselect_edgering(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_mesh_preselect_elem(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_ruler(wmGizmoGroupType *gzgt)
void VIEW3D_GT_ruler_item(wmGizmoType *gzt)
void VIEW3D_GGT_placement(wmGizmoGroupType *gzgt)
void view3d_operatortypes()
void view3d_smooth_free(RegionView3D *rv3d)
void view3d_keymap(wmKeyConfig *keyconf)
void WM_cursor_set(wmWindow *win, int curs)
bool WM_cursor_set_from_tool(wmWindow *win, const ScrArea *area, const ARegion *region)
ListBase * WM_dropboxmap_find(const char *idname, int spaceid, int regionid)
void WM_draw_region_free(ARegion *region)
wmEventHandler_Dropbox * WM_event_add_dropbox_handler(ListBase *handlers, ListBase *dropboxes)
wmEventHandler_Keymap * WM_event_add_keymap_handler(ListBase *handlers, wmKeyMap *keymap)
wmGizmoGroupType * WM_gizmogrouptype_append(void(*wtfunc)(wmGizmoGroupType *))
wmGizmoGroupTypeRef * WM_gizmogrouptype_append_and_link(wmGizmoMapType *gzmap_type, void(*wtfunc)(wmGizmoGroupType *))
void WM_gizmomap_tag_refresh(wmGizmoMap *gzmap)
wmGizmoMapType * WM_gizmomaptype_ensure(const wmGizmoMapType_Params *gzmap_params)
void WM_gizmotype_append(void(*gtfunc)(wmGizmoType *))
void WM_jobs_kill_type(wmWindowManager *wm, const void *owner, int job_type)
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
#define WM_msg_subscribe_rna_anon_prop(mbus, type_, prop_, value)
#define WM_msg_subscribe_rna_anon_type(mbus, type_, value)
void WM_msg_subscribe_rna_params(wmMsgBus *mbus, const wmMsgParams_RNA *msg_key_params, const wmMsgSubscribeValue *msg_val_params, const char *id_repr)
ViewLayer * WM_window_get_active_view_layer(const wmWindow *win)
Scene * WM_window_get_active_scene(const wmWindow *win)