diff options
author | Jacques Lucke <mail@jlucke.com> | 2018-10-31 15:35:53 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2018-10-31 15:42:33 +0300 |
commit | a3802f66e22e57115f48545a39bf41959eb16fad (patch) | |
tree | 9389d31f0f104d00b2a10b86f4afe6cfbdd84eeb /release/scripts/startup/bl_ui/properties_data_empty.py | |
parent | 0727abf1bc70a55426716f5826532ea3ec4dd924 (diff) |
Image Empties: More visibility settings
Support for showing images in background/foreground and only in perspective/orthographic view.
Internally the depth of the image is modified in the fragment shader by setting `gl_FragDepth` explicitly.
The UI still needs some work to improve usability, see D3863 for details.
Currently there is one duplicated function, not sure how to best deduplicate it yet. (`is_image_empty_visible`)
Reviewer: fclem, brecht, campbellbarton
Differential Revision: https://developer.blender.org/D3863
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_empty.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_empty.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_empty.py b/release/scripts/startup/bl_ui/properties_data_empty.py index 9cd5a5909ce..36295eb4b7e 100644 --- a/release/scripts/startup/bl_ui/properties_data_empty.py +++ b/release/scripts/startup/bl_ui/properties_data_empty.py @@ -56,6 +56,10 @@ class DATA_PT_empty(DataButtonsPanel, Panel): layout.separator() layout.prop(ob, "empty_display_size", text="Size") + layout.prop(ob, "empty_image_depth", text="Depth", expand=True) + + layout.prop(ob, "show_empty_image_orthographic", text="Display Orthographic") + layout.prop(ob, "show_empty_image_perspective", text="Display Perspective") classes = ( |