Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2017-05-18 19:34:04 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-05-18 19:46:46 +0300
commit740f33d8a20eac253696b20f9e6477dfd649ab43 (patch)
tree5e4184c980cd93926629b32e12aeedcde942c924 /release
parentec774fdb481808368e4ada01241fce907ce673ec (diff)
Remove "Modern Viewport"
The "Modern Viewport" was an option in the Viewport panel that would use the new fancy wire frame code and some depth debugging functionality. This was introduced as a quick and dirty way to get the new drawing system showing in the viewport. Overtime we built a complete Draw Manager system, leaving this original approach deprecated which adds clutter to Blender code since it would be removed sooner or later. Note: The new fancy wireframes and related shaders (white out other objects) are still in Blender code, though you can't use them anymore. If we are to have any of those drawing options they should be integrated in the new draw manager, instead of integrated in the old drawing pipeline as it was originally coded.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py50
1 files changed, 1 insertions, 49 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 8a429690f10..cb963c773a8 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -3128,48 +3128,6 @@ class VIEW3D_MT_edit_gpencil_interpolate(Menu):
# ********** Panel **********
-
-class VIEW3D_PT_viewport_debug(Panel):
- bl_space_type = 'VIEW_3D'
- bl_region_type = 'UI'
- bl_label = "Modern Viewport"
- bl_options = {'DEFAULT_CLOSED'}
-
- @classmethod
- def poll(cls, context):
- view = context.space_data
- return (view)
-
- def draw_header(self, context):
- view = context.space_data
- self.layout.prop(view, "use_modern_viewport", text="")
-
- def draw(self, context):
- layout = self.layout
- view = context.space_data
-
- layout.active = view.use_modern_viewport
-
- col = layout.column()
- col.label(text="Placeholder for debugging options")
- col.separator()
-
- row = col.row()
- row.active = not view.show_combined_depth
- row.prop(view, "show_scene_depth")
- row = col.row()
- row.active = not view.show_scene_depth
- row.prop(view, "show_combined_depth")
-
- row = col.row(align=True)
- row.active = view.show_scene_depth or view.show_combined_depth
- row.prop(view, "debug_near")
- row.prop(view, "debug_far")
-
- col.label(text="Background:")
- col.row(align=True).prop(view, "debug_background", expand=True)
-
-
class VIEW3D_PT_grease_pencil(GreasePencilDataPanel, Panel):
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
@@ -3283,7 +3241,7 @@ class VIEW3D_PT_view3d_display(Panel):
@classmethod
def poll(cls, context):
view = context.space_data
- return (view) and not view.use_modern_viewport
+ return (view)
def draw(self, context):
layout = self.layout
@@ -3383,11 +3341,6 @@ class VIEW3D_PT_view3d_shading(Panel):
bl_region_type = 'UI'
bl_label = "Shading"
- @classmethod
- def poll(cls, context):
- view = context.space_data
- return (view) and not view.use_modern_viewport
-
def draw(self, context):
layout = self.layout
@@ -3944,7 +3897,6 @@ classes = (
VIEW3D_MT_edit_armature_delete,
VIEW3D_MT_edit_gpencil_transform,
VIEW3D_MT_edit_gpencil_interpolate,
- VIEW3D_PT_viewport_debug,
VIEW3D_PT_grease_pencil,
VIEW3D_PT_grease_pencil_palettecolor,
VIEW3D_PT_view3d_properties,