Page MenuHome

Fix: Cannot select object by clicking on its instances.
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on Nov 24 2020, 1:11 PM.

Details

Summary

Currently, one cannot select an object by clicking on its instances, if the object itself is not shown in the viewport (by disabling the "Viewport" option in the Instancing settings).
There was already a comment that states an assumption that is not fullfilled in all cases: This relies on dupli instances being after their instancing object.

The solution is give every object the correct select_id in the depsgraph object iterator right before rendering.

The video shows that I cannot select by clicking on the one of the four outer cones.

Diff Detail

Repository
rB Blender

Event Timeline

Jacques Lucke (JacquesLucke) requested review of this revision.Nov 24 2020, 1:11 PM
Jacques Lucke (JacquesLucke) created this revision.
  • use simpler solution

Does this works with multiple recursion?

source/blender/draw/engines/overlay/overlay_armature.c
1913

Is this 100% safe? are all edit bones operators flushing updates to evaluated object nowadays?

It should be safe but I'm a bit curious to know why this loop was using the original object before.

Does this works with multiple recursion?

It works with instances that have instances, yes.

source/blender/draw/engines/overlay/overlay_armature.c
1913

Well, tbh, I don't know how I would create an example file that tests this specific case...

This revision is now accepted and ready to land.Nov 24 2020, 4:19 PM