diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-07-05 21:27:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-07-05 21:43:50 +0300 |
commit | 72e04f98909c0970c82c3e708b0c651553487693 (patch) | |
tree | 810994a4668e46fa08b89f70057286d3b4014637 /source/blender/makesrna | |
parent | e5ca319f9db4de752fe7628807d7a1edad2389c0 (diff) |
Draw Manager: simplify object mask usage
Remove flag defines, use object types directly.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_space.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index df7cc228fc4..239203bd384 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -2616,8 +2616,11 @@ static void rna_def_space_view3d_overlay(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Show 3D Cursor", "Display 3D Cursor Overlay"); RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); - prop = RNA_def_property(srna, "show_non_renderable_objects", PROP_BOOLEAN, PROP_NONE); - RNA_def_property_boolean_negative_sdna(prop, NULL, "overlay.hidden_object_types", V3D_OVERLAY_HIDE_NON_RENDERABLE); + prop = RNA_def_property(srna, "show_non_geometry", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_negative_sdna( + prop, NULL, "overlay.object_type_exclude", + ((1 << OB_TYPE_MAX) - 1) & + ~((1 << OB_MESH) | (1 << OB_CURVE) | (1 << OB_SURF) | (1 << OB_FONT) | (1 << OB_MBALL))); RNA_def_property_boolean_default(prop, true); RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); RNA_def_property_ui_text(prop, "Show Non Renderable", "Draw not renderable objects in the overlay"); |