diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2019-11-16 20:50:59 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2019-12-04 12:23:41 +0300 |
commit | b3f388dca9e547c12db277b8422c620ca3b64eaa (patch) | |
tree | ffbf14c7371ef7dd96ac49cb0c6e1810c1708f6f /source/blender/blenkernel/BKE_context.h | |
parent | fda791ab1241534e377bee84b3a214e1343094af (diff) |
UI: support Copy To Selected and Alt-Click for PropertyGroup members.
Rigify uses a property group to contain options of its rigs, so
currently it is impossible to use Alt-Click or Copy To Selected
to change a setting for multiple rigs at the same time.
The main problem here is that there is no efficient way to find
which bone the property group belongs to. To maintain performance,
implement this by checking the active bone if it is known. Copy
Data Path and related features still don't work, as data path
calculation can't use context.
Differential Revision: https://developer.blender.org/D6264
Diffstat (limited to 'source/blender/blenkernel/BKE_context.h')
-rw-r--r-- | source/blender/blenkernel/BKE_context.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_context.h b/source/blender/blenkernel/BKE_context.h index 105f8e82343..88a27b67963 100644 --- a/source/blender/blenkernel/BKE_context.h +++ b/source/blender/blenkernel/BKE_context.h @@ -198,6 +198,9 @@ enum { PointerRNA CTX_data_pointer_get(const bContext *C, const char *member); PointerRNA CTX_data_pointer_get_type(const bContext *C, const char *member, StructRNA *type); +PointerRNA CTX_data_pointer_get_type_silent(const bContext *C, + const char *member, + StructRNA *type); ListBase CTX_data_collection_get(const bContext *C, const char *member); ListBase CTX_data_dir_get_ex(const bContext *C, const bool use_store, |