Blender
V3.3
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_sequence_types.h"
#include "DNA_space_types.h"
#include "DNA_windowmanager_types.h"
#include "DNA_workspace_types.h"
#include "BLI_ghash.h"
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "BKE_action.h"
#include "BKE_armature.h"
#include "BKE_blender.h"
#include "BKE_context.h"
#include "BKE_gpencil.h"
#include "BKE_layer.h"
#include "BKE_object.h"
#include "BKE_tracking.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"
#include "ED_anim_api.h"
#include "ED_armature.h"
#include "ED_clip.h"
#include "ED_gpencil.h"
#include "SEQ_channels.h"
#include "SEQ_select.h"
#include "SEQ_sequencer.h"
#include "SEQ_transform.h"
#include "UI_interface.h"
#include "WM_api.h"
#include "screen_intern.h"
Go to the source code of this file.
Typedefs | |
typedef eContextResult(* | context_callback) (const bContext *C, bContextDataResult *result) |
Variables | |
const char * | screen_context_dir [] |
static GHash * | ed_screen_context_functions = NULL |
typedef eContextResult(* context_callback) (const bContext *C, bContextDataResult *result) |
Definition at line 1216 of file screen_context.c.
int ed_screen_context | ( | const bContext * | C, |
const char * | member, | ||
bContextDataResult * | result | ||
) |
Definition at line 1299 of file screen_context.c.
References BLI_ghash_lookup(), C, callback, CTX_data_dir(), CTX_data_dir_set(), CTX_RESULT_MEMBER_NOT_FOUND, CTX_RESULT_OK, ed_screen_context_functions, ensure_ed_screen_context_functions(), NULL, result, and screen_context_dir.
Referenced by ED_screen_refresh().
Definition at line 1228 of file screen_context.c.
References BKE_blender_atexit_register(), BLI_ghash_new(), BLI_ghashutil_strcmp(), BLI_ghashutil_strhash_p_murmur(), ed_screen_context_functions, free_context_function_ghash(), NULL, register_context_function(), screen_ctx_active_action(), screen_ctx_active_annotation_layer(), screen_ctx_active_bone(), screen_ctx_active_editable_fcurve(), screen_ctx_active_gpencil_frame(), screen_ctx_active_gpencil_layer(), screen_ctx_active_nla_strip(), screen_ctx_active_nla_track(), screen_ctx_active_object(), screen_ctx_active_operator(), screen_ctx_active_pose_bone(), screen_ctx_active_sequence_strip(), screen_ctx_annotation_data(), screen_ctx_annotation_data_owner(), screen_ctx_asset_library(), screen_ctx_edit_object(), screen_ctx_editable_bones(), screen_ctx_editable_fcurves(), screen_ctx_editable_gpencil_layers(), screen_ctx_editable_gpencil_strokes(), screen_ctx_editable_objects(), screen_ctx_gpencil_data(), screen_ctx_gpencil_data_owner(), screen_ctx_image_paint_object(), screen_ctx_object(), screen_ctx_objects_in_mode(), screen_ctx_objects_in_mode_unique_data(), screen_ctx_particle_edit_object(), screen_ctx_pose_object(), screen_ctx_scene(), screen_ctx_sculpt_object(), screen_ctx_selectable_objects(), screen_ctx_selected_bones(), screen_ctx_selected_editable_actions(), screen_ctx_selected_editable_bones(), screen_ctx_selected_editable_fcurves(), screen_ctx_selected_editable_keyframes(), screen_ctx_selected_editable_objects(), screen_ctx_selected_editable_sequences(), screen_ctx_selected_movieclip_tracks(), screen_ctx_selected_nla_strips(), screen_ctx_selected_objects(), screen_ctx_selected_pose_bones(), screen_ctx_selected_pose_bones_from_active_object(), screen_ctx_selected_sequences(), screen_ctx_selected_visible_actions(), screen_ctx_selected_visible_fcurves(), screen_ctx_sequences(), screen_ctx_ui_list(), screen_ctx_vertex_paint_object(), screen_ctx_visible_bones(), screen_ctx_visible_fcurves(), screen_ctx_visible_gpencil_layers(), screen_ctx_visible_objects(), screen_ctx_visible_pose_bones(), and screen_ctx_weight_paint_object().
Referenced by ed_screen_context().
Definition at line 1219 of file screen_context.c.
References BLI_ghash_free(), ed_screen_context_functions, and NULL.
Referenced by ensure_ed_screen_context_functions().
|
inlinestatic |
Definition at line 1223 of file screen_context.c.
References BLI_ghash_insert(), and ed_screen_context_functions.
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 1060 of file screen_context.c.
References C, result, and screen_ctx_sel_actions_impl().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 823 of file screen_context.c.
References blender::compositor::area(), BKE_gpencil_layer_active_get(), C, CTX_data_pointer_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_area(), CTX_wm_screen(), CTX_wm_window(), ED_annotation_data_get_active_direct(), bGPdata::id, result, scene, and WM_window_get_active_scene().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 463 of file screen_context.c.
References bArmature::act_bone, bArmature::act_edbone, ViewLayer::basact, C, CTX_data_pointer_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_window(), Object::data, bArmature::edbo, bArmature::id, NULL, OB_ARMATURE, Base::object, result, Object::type, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 1121 of file screen_context.c.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_ACTIVE, ANIMFILTER_CURVE_VISIBLE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMTYPE_FCURVE, ANIMTYPE_NLACURVE, C, CTX_data_pointer_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, bAnimContext::data, bAnimContext::datatype, ELEM, filter(), LISTBASE_FOREACH, NULL, result, SPACE_GRAPH, and bAnimContext::spacetype.
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 842 of file screen_context.c.
References bGPDlayer::actframe, blender::compositor::area(), ViewLayer::basact, BKE_gpencil_layer_active_get(), C, CTX_data_pointer_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_area(), CTX_wm_window(), ED_gpencil_data_get_active_direct(), bGPdata::id, NULL, Base::object, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 804 of file screen_context.c.
References blender::compositor::area(), ViewLayer::basact, BKE_gpencil_layer_active_get(), C, CTX_data_pointer_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_area(), CTX_wm_window(), ED_gpencil_data_get_active_direct(), bGPdata::id, NULL, Base::object, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 674 of file screen_context.c.
References ANIM_nla_context_strip_ptr(), C, CTX_data_pointer_set_ptr(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, ptr, and result.
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 665 of file screen_context.c.
References ANIM_nla_context_track_ptr(), C, CTX_data_pointer_set_ptr(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, ptr, and result.
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 499 of file screen_context.c.
References ViewLayer::basact, C, CTX_data_id_pointer_set(), CTX_RESULT_OK, CTX_wm_window(), Object::id, NULL, Base::object, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 947 of file screen_context.c.
References C, CTX_data_pointer_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_space_file(), NULL, SpaceFile::op, wmOperator::ptr, result, UI_context_active_operator_get(), and WM_operator_last_redo().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 485 of file screen_context.c.
References ViewLayer::basact, BKE_object_pose_armature_get(), BKE_pose_channel_active_if_layer_visible(), C, CTX_data_pointer_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_window(), Object::id, NULL, Base::object, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 603 of file screen_context.c.
References C, CTX_data_pointer_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_window(), Scene::id, result, scene, SEQ_select_active_get(), and WM_window_get_active_scene().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 772 of file screen_context.c.
References blender::compositor::area(), C, CTX_data_id_pointer_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_area(), CTX_wm_screen(), CTX_wm_window(), ED_annotation_data_get_active_direct(), bGPdata::id, result, scene, and WM_window_get_active_scene().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 786 of file screen_context.c.
References blender::compositor::area(), C, CTX_data_pointer_set_ptr(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_area(), CTX_wm_screen(), CTX_wm_window(), ED_annotation_data_get_pointers_direct(), ptr, result, scene, and WM_window_get_active_scene().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 1192 of file screen_context.c.
References WorkSpace::asset_library_ref, C, CTX_data_pointer_set(), CTX_RESULT_OK, CTX_wm_workspace(), WorkSpace::id, and result.
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 523 of file screen_context.c.
References C, CTX_data_id_pointer_set(), CTX_RESULT_OK, CTX_wm_window(), Object::id, OBEDIT_FROM_VIEW_LAYER, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 307 of file screen_context.c.
References C, result, and screen_ctx_visible_or_editable_bones_().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 1103 of file screen_context.c.
References ANIMFILTER_FOREDIT, C, result, and screen_ctx_sel_edit_fcurves_().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 881 of file screen_context.c.
References blender::compositor::area(), ViewLayer::basact, BKE_gpencil_layer_is_editable(), C, CTX_data_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_area(), CTX_wm_window(), ED_gpencil_data_get_active_direct(), bGPdata::id, bGPdata::layers, LISTBASE_FOREACH, NULL, Base::object, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 901 of file screen_context.c.
References blender::compositor::area(), ViewLayer::basact, BKE_gpencil_layer_is_editable(), bool, C, CTX_data_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_area(), CTX_wm_window(), ED_gpencil_data_get_active_direct(), ED_gpencil_stroke_can_use_direct(), ED_gpencil_stroke_material_editable(), bGPDframe::flag, GP_FRAME_SELECT, GPENCIL_MULTIEDIT_SESSIONS_ON, bGPdata::id, bGPdata::layers, LISTBASE_FOREACH, bGPDframe::next, NULL, Base::object, result, bGPDframe::strokes, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 185 of file screen_context.c.
References BASE_EDITABLE, C, CTX_data_id_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_OK, CTX_wm_view3d(), CTX_wm_window(), LISTBASE_FOREACH, ViewLayer::object_bases, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 735 of file screen_context.c.
References blender::compositor::area(), ViewLayer::basact, C, CTX_data_id_pointer_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_area(), CTX_wm_window(), ED_gpencil_data_get_active_direct(), bGPdata::id, NULL, Base::object, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 754 of file screen_context.c.
References blender::compositor::area(), ViewLayer::basact, C, CTX_data_pointer_set_ptr(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_area(), CTX_wm_window(), ED_gpencil_data_get_pointers_direct(), NULL, Base::object, ptr, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 569 of file screen_context.c.
References ViewLayer::basact, C, CTX_data_id_pointer_set(), CTX_RESULT_OK, CTX_wm_window(), Object::id, Object::mode, NULL, OB_MODE_TEXTURE_PAINT, Base::object, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 511 of file screen_context.c.
References ViewLayer::basact, C, CTX_data_id_pointer_set(), CTX_RESULT_OK, CTX_wm_window(), Object::id, NULL, Base::object, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 200 of file screen_context.c.
References ViewLayer::basact, C, CTX_data_id_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_OK, CTX_wm_view3d(), CTX_wm_window(), FOREACH_OBJECT_IN_MODE_BEGIN, FOREACH_OBJECT_IN_MODE_END, Object::mode, NULL, OB_MODE_OBJECT, Base::object, result, Object::type, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 216 of file screen_context.c.
References ViewLayer::basact, C, CTX_data_id_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_OK, CTX_wm_view3d(), CTX_wm_window(), FOREACH_OBJECT_IN_MODE_BEGIN, FOREACH_OBJECT_IN_MODE_END, LIB_TAG_DOIT, Object::mode, NULL, OB_MODE_OBJECT, Base::object, result, Object::type, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 580 of file screen_context.c.
References ViewLayer::basact, C, CTX_data_id_pointer_set(), CTX_RESULT_OK, CTX_wm_window(), Object::id, Object::mode, NULL, OB_MODE_PARTICLE_EDIT, Base::object, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 592 of file screen_context.c.
References ViewLayer::basact, BKE_object_pose_armature_get(), C, CTX_data_id_pointer_set(), CTX_RESULT_OK, CTX_wm_window(), Object::id, NULL, Base::object, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 121 of file screen_context.c.
References C, CTX_data_id_pointer_set(), CTX_RESULT_OK, CTX_wm_window(), Scene::id, result, scene, and WM_window_get_active_scene().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 535 of file screen_context.c.
References ViewLayer::basact, C, CTX_data_id_pointer_set(), CTX_RESULT_OK, CTX_wm_window(), Object::id, Object::mode, NULL, OB_MODE_SCULPT, Base::object, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 971 of file screen_context.c.
References ACHANNEL_SETTING_SELECT, SpaceAction::action, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_channel_action_get(), ANIM_channel_setting_get(), ANIMFILTER_ACTIVE, ANIMFILTER_CURVE_VISIBLE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_SEL, BLI_gset_add(), BLI_gset_free(), BLI_gset_ptr_new(), C, CTX_data_id_list_add(), CTX_data_id_pointer_set(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, bAnimContext::data, bAnimContext::datatype, ELEM, filter(), bAction::id, ID_IS_LINKED, if(), LISTBASE_FOREACH, SpaceAction::mode, NULL, result, SACTCONT_ACTION, SACTCONT_SHAPEKEY, bAnimContext::sl, SPACE_ACTION, SPACE_GRAPH, and bAnimContext::spacetype.
Referenced by screen_ctx_active_action(), screen_ctx_selected_editable_actions(), and screen_ctx_selected_visible_actions().
|
static |
Definition at line 1074 of file screen_context.c.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_CURVE_VISIBLE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMTYPE_FCURVE, ANIMTYPE_NLACURVE, C, CTX_data_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, bAnimContext::data, bAnimContext::datatype, ELEM, filter(), LISTBASE_FOREACH, NULL, result, SPACE_ACTION, SPACE_GRAPH, and bAnimContext::spacetype.
Referenced by screen_ctx_editable_fcurves(), screen_ctx_selected_editable_fcurves(), screen_ctx_selected_visible_fcurves(), and screen_ctx_visible_fcurves().
|
static |
Definition at line 142 of file screen_context.c.
References BASE_SELECTABLE, C, CTX_data_id_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_OK, CTX_wm_view3d(), CTX_wm_window(), LISTBASE_FOREACH, ViewLayer::object_bases, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 373 of file screen_context.c.
References C, result, and screen_ctx_selected_bones_().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 311 of file screen_context.c.
References ARM_MIRROR_EDIT, BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BONE_SELECTED, C, CTX_data_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_view3d(), CTX_wm_window(), Object::data, EBONE_EDITABLE, EBONE_VISIBLE, ED_armature_ebone_get_mirrored(), bArmature::edbo, bArmature::flag, bArmature::id, if(), LISTBASE_FOREACH, MEM_freeN, NULL, OB_ARMATURE, OBEDIT_FROM_VIEW_LAYER, result, Object::type, and WM_window_get_active_view_layer().
Referenced by screen_ctx_selected_bones(), and screen_ctx_selected_editable_bones().
|
static |
Definition at line 1069 of file screen_context.c.
References C, result, and screen_ctx_sel_actions_impl().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 377 of file screen_context.c.
References C, result, and screen_ctx_selected_bones_().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 1111 of file screen_context.c.
References ANIMFILTER_FOREDIT, ANIMFILTER_SEL, C, result, and screen_ctx_sel_edit_fcurves_().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 1145 of file screen_context.c.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_CURVE_VISIBLE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, ANIMTYPE_FCURVE, ANIMTYPE_NLACURVE, FCurve::bezt, C, CTX_data_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, bAnimContext::data, bAnimContext::datatype, ELEM, BezTriple::f2, filter(), if(), LISTBASE_FOREACH, NULL, result, SELECT, SPACE_ACTION, SPACE_GRAPH, and bAnimContext::spacetype.
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 170 of file screen_context.c.
References BASE_SELECTED_EDITABLE, C, CTX_data_id_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_OK, CTX_wm_view3d(), CTX_wm_window(), LISTBASE_FOREACH, ViewLayer::object_bases, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 645 of file screen_context.c.
References C, channels(), CTX_data_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_window(), Scene::id, LISTBASE_FOREACH, NULL, result, scene, SELECT, SEQ_channels_displayed_get(), SEQ_editing_get(), SEQ_transform_is_locked(), Editing::seqbasep, and WM_window_get_active_scene().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 708 of file screen_context.c.
References BKE_tracking_get_active_tracks(), C, CTX_data_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_space_clip(), ED_space_clip_get_clip(), MovieClip::id, LISTBASE_FOREACH, NULL, result, TRACK_SELECTED, and MovieClip::tracking.
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 683 of file screen_context.c.
References ALE_NLASTRIP, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_DATA_VISIBLE, C, CTX_data_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, bAnimContext::data, bAnimContext::datatype, LISTBASE_FOREACH, NLASTRIP_FLAG_SELECT, NULL, result, and NlaTrack::strips.
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 156 of file screen_context.c.
References BASE_SELECTED, C, CTX_data_id_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_OK, CTX_wm_view3d(), CTX_wm_window(), LISTBASE_FOREACH, ViewLayer::object_bases, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 410 of file screen_context.c.
References ViewLayer::basact, BKE_object_pose_armature_get(), C, CTX_data_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_view3d(), CTX_wm_window(), Object::data, FOREACH_OBJECT_IN_MODE_BEGIN, FOREACH_OBJECT_IN_MODE_END, FOREACH_PCHAN_SELECTED_IN_OBJECT_BEGIN, FOREACH_PCHAN_SELECTED_IN_OBJECT_END, Object::id, Object::mode, NULL, OB_ARMATURE, OB_MODE_POSE, Base::object, Object::pose, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 438 of file screen_context.c.
References ViewLayer::basact, BKE_object_pose_armature_get(), C, CTX_data_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_window(), Object::data, FOREACH_PCHAN_SELECTED_IN_OBJECT_BEGIN, FOREACH_PCHAN_SELECTED_IN_OBJECT_END, Object::id, Object::mode, NULL, OB_MODE_POSE, Base::object, Object::pose, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 629 of file screen_context.c.
References C, CTX_data_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_window(), Scene::id, LISTBASE_FOREACH, result, scene, SELECT, SEQ_editing_get(), Editing::seqbasep, and WM_window_get_active_scene().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 1064 of file screen_context.c.
References C, result, and screen_ctx_sel_actions_impl().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 1116 of file screen_context.c.
References ANIMFILTER_SEL, C, result, and screen_ctx_sel_edit_fcurves_().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 615 of file screen_context.c.
References C, CTX_data_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_window(), Scene::id, LISTBASE_FOREACH, result, scene, SEQ_editing_get(), Editing::seqbasep, and WM_window_get_active_scene().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 1200 of file screen_context.c.
References C, CTX_data_pointer_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_region(), CTX_wm_window(), wmWindow::eventstate, NULL, result, and UI_list_find_mouse_over().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 547 of file screen_context.c.
References ViewLayer::basact, C, CTX_data_id_pointer_set(), CTX_RESULT_OK, CTX_wm_window(), Object::id, Object::mode, NULL, OB_MODE_VERTEX_PAINT, Base::object, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 303 of file screen_context.c.
References C, result, and screen_ctx_visible_or_editable_bones_().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 1107 of file screen_context.c.
References C, result, and screen_ctx_sel_edit_fcurves_().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 861 of file screen_context.c.
References blender::compositor::area(), ViewLayer::basact, C, CTX_data_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_area(), CTX_wm_window(), ED_gpencil_data_get_active_direct(), GP_LAYER_HIDE, bGPdata::id, bGPdata::layers, LISTBASE_FOREACH, NULL, Base::object, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 128 of file screen_context.c.
References BASE_VISIBLE, C, CTX_data_id_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_OK, CTX_wm_view3d(), CTX_wm_window(), LISTBASE_FOREACH, ViewLayer::object_bases, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 240 of file screen_context.c.
References ARM_MIRROR_EDIT, BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BONE_SELECTED, C, CTX_data_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_view3d(), CTX_wm_window(), Object::data, EBONE_EDITABLE, EBONE_VISIBLE, ED_armature_ebone_get_mirrored(), bArmature::edbo, bArmature::flag, bArmature::id, if(), LISTBASE_FOREACH, MEM_freeN, NULL, OB_ARMATURE, OBEDIT_FROM_VIEW_LAYER, result, Object::type, and WM_window_get_active_view_layer().
Referenced by screen_ctx_editable_bones(), and screen_ctx_visible_bones().
|
static |
Definition at line 382 of file screen_context.c.
References ViewLayer::basact, BKE_object_pose_armature_get(), C, CTX_data_list_add(), CTX_DATA_TYPE_COLLECTION, CTX_data_type_set(), CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_view3d(), CTX_wm_window(), Object::data, FOREACH_OBJECT_IN_MODE_BEGIN, FOREACH_OBJECT_IN_MODE_END, FOREACH_PCHAN_SELECTED_IN_OBJECT_END, FOREACH_PCHAN_VISIBLE_IN_OBJECT_BEGIN, FOREACH_PCHAN_VISIBLE_IN_OBJECT_END, Object::id, Object::mode, NULL, OB_ARMATURE, OB_MODE_POSE, Base::object, Object::pose, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
|
static |
Definition at line 558 of file screen_context.c.
References ViewLayer::basact, C, CTX_data_id_pointer_set(), CTX_RESULT_OK, CTX_wm_window(), Object::id, Object::mode, NULL, OB_MODE_ALL_WEIGHT_PAINT, Base::object, result, and WM_window_get_active_view_layer().
Referenced by ensure_ed_screen_context_functions().
Definition at line 1217 of file screen_context.c.
Referenced by ed_screen_context(), ensure_ed_screen_context_functions(), free_context_function_ghash(), and register_context_function().
const char* screen_context_dir[] |
Definition at line 56 of file screen_context.c.
Referenced by bpy_context_members(), and ed_screen_context().