diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2018-05-14 13:54:23 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2018-05-24 10:02:17 +0300 |
commit | 1318660b0449b6e6afe6d349826af89005bc29dd (patch) | |
tree | 0e48cc89cae8a690b55d82c2088e843f97cd9d18 /source/blender/editors/interface | |
parent | 3e9b592b08b614e29acdfd7906f572953c528378 (diff) |
Fix T55034: Setting duplication group for multiple selected items only
affects one item
UI editing multiple selected items missed the case of PROP_POINTER
properties
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D3373
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index a795a00dc24..590b34dfc21 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -1560,6 +1560,7 @@ static void ui_selectcontext_apply( bool b; int i; float f; + PointerRNA p; } delta, min, max; const bool is_array = RNA_property_array_check(prop); @@ -1584,6 +1585,9 @@ static void ui_selectcontext_apply( delta.b = RNA_property_boolean_get(&but->rnapoin, prop); /* not a delta infact */ } } + else if (rna_type == PROP_POINTER) { + delta.p = RNA_property_pointer_get(&but->rnapoin, prop); /* not a delta infact */ + } #ifdef USE_ALLSELECT_LAYER_HACK /* make up for not having 'handle_layer_buttons' */ @@ -1656,6 +1660,10 @@ static void ui_selectcontext_apply( BLI_assert(!is_array); RNA_property_enum_set(&lptr, lprop, other_value); } + else if (rna_type == PROP_POINTER) { + const PointerRNA other_value = delta.p; + RNA_property_pointer_set(&lptr, lprop, other_value); + } RNA_property_update(C, &lptr, prop); } |