Page MenuHome

Restrict toggle visibility/renderability for object an all child-objects (toggle with Ctrl-key pressed)
AbandonedPublic

Authored by Julian Eisel (Severin) on Mar 16 2014, 11:34 AM.

Details

Summary

This patch change the behaviour of the outliner toggle visibility/renderability buttons (and corresponding keyboard functions) in a small detail: toggle the visibility/renderablilty for the object and all child-objects only for objects which are not excluded from selection.

Current behaviour:

With Ctrl key+click the visiblity/selectable/renderable state of an object and all sub-objects can be toggled. This is done independent from the current select-state of the sub-objects.

New behaviour:

With Ctrl key+click the visiblity/selectable/renderable state of an object and all sub-objects can be toggled if the select-state of an object is set. If the select-state is cleared (the object cannot be selected) the visibility or renderable state of the object it _not_ toggled. This keep objects which should be kept in a "locked" state, e. g. helper objects like mirror-planes which should not be visible and not rendered, in their preselected visiblity/renderable state even when the visibility or renderable state of a complete hierarchy is changed.

Diff Detail

Event Timeline

Hi, you can already select/deselect visibility/renderability thanks to Ctrl+Click (tested in 2.69).
No need in my opinion to change the UI behavior, because you may want some objects hidden (like bones for renderability )and others visible.

Thanks for the note to the Ctrl-Click behaviour. I did'nt knew that.

Nevertheless the patch do something different: it does not simply toggle the visibilty recursive for all sub-objects. The change respect the selectability flag to decide if the visibility should be toggled or not. Thus if a e. g. a bone should not be toggled and either kept visible or invisible the select-flag can be set.

The main reason for the patch was the unexpected behaviour of the toggle e. g. with empties which are in many cases the root-node of a complex set of objects. Clicking "visibility" for an empty does simply nothing which is IMHO not what someone may expect.

Torsten Rupp (rupp) retitled this revision from Toggle visibility/renderability for object an all child-objects to Restrict toggle visibility/renderability for object an all child-objects (toggle with Ctrl-key pressed).
Torsten Rupp (rupp) updated this object.
Torsten Rupp (rupp) edited edge metadata.

I updated and reduced the patch accoording to the new feature (since some time) for toggling visiblity/select/render of an object and all its sub-objects with Ctrl+click.

The new patch just suggest a small detail behavior in case an object have the select-state-flag set resp. not set.

Julian Eisel (Severin) commandeered this revision.Feb 14 2015, 9:58 PM

Committed this with some really minor changes rB24976dd29d1

Thanks for the patch @Torsten Rupp (rupp)!