diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-27 19:09:30 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-28 18:35:12 +0300 |
commit | 846d265a06e39c86574cba6722495b6373596c7a (patch) | |
tree | c8534796d130c03faa4bcdc3d7fa558f1a361113 /release/scripts/startup/bl_ui/space_view3d.py | |
parent | 7895c6b83db862b13afee1facd8b6dc5e24dbede (diff) |
Split base flags on own and collection-defined
This allows to update base flags to a proper state then object's restriction
flags are changed, without requiring to re-evaluate an entire tree of flags.
Some old unused flags are were removed by this change, and also disabling
menu items might not work the same as before. This is something we can bring
back if it's really needed (the way how flags are handled did change since
that interface code was done anyway, so code was looking weird anyway).
Reviewers: brecht
Differential Revision: https://developer.blender.org/D4420
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 3a8419ffe3e..cacf946b3b5 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -4370,13 +4370,10 @@ class VIEW3D_PT_collections(Panel): else: has_objects = False - has_visible_objects = has_objects and child.has_visible_objects(view_layer) - row = layout.row() sub = row.split(factor=0.98) subrow = sub.row() subrow.alignment = 'LEFT' - subrow.active = has_visible_objects subrow.operator( "object.hide_collection", text=child.name, icon=icon, emboss=False, ).collection_index = index |