diff options
author | Sebastian Parborg <zeddb> | 2019-01-22 22:24:33 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-01-22 22:24:42 +0300 |
commit | ccc48bf27eaa6651674a857a95884d821e42e1a7 (patch) | |
tree | af37ff1023519ba8aaa49759ff1f3b24b52c9618 /source/blender/depsgraph | |
parent | a34297a6d64d1a44a504e93a8a6cd383aa014382 (diff) |
Fix T60602: outliner pose bone selection does not update in viewport.
Differential Revision: https://developer.blender.org/D4223
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_tag.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc index 26a12f42bfc..27e1a5fb7dd 100644 --- a/source/blender/depsgraph/intern/depsgraph_tag.cc +++ b/source/blender/depsgraph/intern/depsgraph_tag.cc @@ -93,6 +93,11 @@ void depsgraph_geometry_tag_to_component(const ID *id, } } +bool is_selectable_data_id_type(const ID_Type id_type) +{ + return ELEM(id_type, ID_ME, ID_CU, ID_MB, ID_LT, ID_GD); +} + void depsgraph_select_tag_to_component_opcode( const ID *id, eDepsNode_Type *component_type, @@ -120,10 +125,14 @@ void depsgraph_select_tag_to_component_opcode( *component_type = DEG_NODE_TYPE_BATCH_CACHE; *operation_code = DEG_OPCODE_MOVIECLIP_SELECT_UPDATE; } - else { + else if (is_selectable_data_id_type(id_type)) { *component_type = DEG_NODE_TYPE_BATCH_CACHE; *operation_code = DEG_OPCODE_GEOMETRY_SELECT_UPDATE; } + else { + *component_type = DEG_NODE_TYPE_COPY_ON_WRITE; + *operation_code = DEG_OPCODE_COPY_ON_WRITE; + } } void depsgraph_base_flags_tag_to_component_opcode( |