Page MenuHome

Setting duplication group for multiple selected items only affects one item
Closed, ResolvedPublic

Description

System Information
Windows 10 Pro, GTX 1060 6 GB

Blender Version
Broken: 2.79b, current 2.79 builds
Worked: (optional)

Short description of error
Alt-left should apply a setting to all selected items (where applicable). This doesn't seem to be the case for the group menu under the duplication setting. Only one of the items gets the change, the others are left untouched.

Exact steps for others to reproduce the error
Create a scene with several empties.
Add Suzanne and place her in a group.
Select all empties and using Alt-Left, change the duplication settings to Group and select the group Suzanne is in, using Alt-left click for the menu actions.
Review the duplication settings for each empty. Only one of the empties will have been changed.

Event Timeline

Lukas Ziechmann (bl_cat) triaged this task as Confirmed, Medium priority.

I can reproduce this behavior here. Trying to set the group for all empties from within the object properties panel doesn't work via Alt-LMB. It works by pressing RMB+'copy to selected'-operator though. So even if this does not work via Alt-LMB, there is a really simple workaround, so that I guess it is not a bug of very high priority, but I let others decide this.

Philipp Oeser (lichtwerk) claimed this task.

I'll see if I can track this down...

UI editing multiple selected items was added in rBdfbb876d4660, bit more info reg. limitations in rB2821da5b703

atm. doesnt work for:

  • any object pointer picking (PROP_POINTER)
  • add modifier, add vertex group, etc. so just properties, no operators afaics
  • object color (see comment "/* for now don't support whole colors */")
  • motion path type,...
  • probably others

Anyways, following code here [and limiting to the reported case of PROP_POINTER failing], one can see:
ui_selectcontext_begin() is a success, sets uiSelectContextElem->ptr correctly
ui_selectcontext_apply() doesnt have a switch case for PROP_POINTER, it's just not implemented.

Maybe this was left out intentionally, however D3373 seems to work, maybe @Campbell Barton (campbellbarton) can comment?

Is this supposed to be resolved in the 2.79 code? I'm still seeing this behavior in the current nightly builds, so wanted to check

Yes, this is supposed to be working (and it does for me)
Checked my local master build and todays buildbot build (linux).
Created 3 empties, added Suzanne, Ctr+G, selected all three empties, Alt+click Group type in object duplication, Alt+Click on group selector and choose "Group" --> works here.

Can you confirm this isnt working on your side?

Ah, that works. There's a different issue (multi-selection of objects, and 'add to group'). I'll file a separate ticket for this - I guess it's not related to this specific case.