[Bf-blender-cvs] [7552972de0a] blender2.8: UI: Remove duplicate Viewport Display panel from Scene properties

Pablo Vazquez noreply at git.blender.org
Wed Jul 11 16:10:10 CEST 2018


Commit: 7552972de0a2403d93699ad4a63882080fbde6f3
Author: Pablo Vazquez
Date:   Wed Jul 11 16:07:32 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB7552972de0a2403d93699ad4a63882080fbde6f3

UI: Remove duplicate Viewport Display panel from Scene properties

The Shadow and SSAO settings here are accessible from the Shading popover.

===================================================================

M	release/scripts/startup/bl_ui/properties_scene.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_scene.py b/release/scripts/startup/bl_ui/properties_scene.py
index 1394a9388d0..d0fce0a2582 100644
--- a/release/scripts/startup/bl_ui/properties_scene.py
+++ b/release/scripts/startup/bl_ui/properties_scene.py
@@ -481,41 +481,6 @@ class SCENE_PT_simplify_render(SceneButtonsPanel, Panel):
         col.prop(rd, "simplify_child_particles_render", text="Max Child Particles")
 
 
-class SCENE_PT_viewport_display(SceneButtonsPanel, Panel):
-    bl_label = "Viewport Display"
-    bl_options = {'DEFAULT_CLOSED'}
-
-    @classmethod
-    def poll(cls, context):
-        return True
-
-    def draw(self, context):
-        layout = self.layout
-        layout.use_property_split = True
-        scene = context.scene
-        col = layout.column()
-        col.prop(scene.display, "light_direction")
-        col.prop(scene.display, "shadow_shift")
-
-
-class SCENE_PT_viewport_display_ssao(SceneButtonsPanel, Panel):
-    bl_label = "Screen Space Ambient Occlusion"
-    bl_parent_id = "SCENE_PT_viewport_display"
-
-    @classmethod
-    def poll(cls, context):
-        return True
-
-    def draw(self, context):
-        layout = self.layout
-        layout.use_property_split = True
-        scene = context.scene
-        col = layout.column()
-        col.prop(scene.display, "matcap_ssao_samples")
-        col.prop(scene.display, "matcap_ssao_distance")
-        col.prop(scene.display, "matcap_ssao_attenuation")
-
-
 class SCENE_PT_custom_props(SceneButtonsPanel, PropertyPanel, Panel):
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE'}
     _context_path = "scene"
@@ -531,8 +496,6 @@ classes = (
     SCENE_PT_keying_set_paths,
     SCENE_PT_color_management,
     SCENE_PT_color_management_curves,
-    SCENE_PT_viewport_display,
-    SCENE_PT_viewport_display_ssao,
     SCENE_PT_audio,
     SCENE_PT_physics,
     SCENE_PT_rigid_body_world,



More information about the Bf-blender-cvs mailing list