Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d.py
| Context not available. | |||||
| # ********** Panel ********** | # ********** 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") | |||||
| class VIEW3D_PT_grease_pencil(GreasePencilDataPanel, Panel): | class VIEW3D_PT_grease_pencil(GreasePencilDataPanel, Panel): | ||||
| bl_space_type = 'VIEW_3D' | bl_space_type = 'VIEW_3D' | ||||
| bl_region_type = 'UI' | bl_region_type = 'UI' | ||||
| Context not available. | |||||
| rna_prop_ui.draw(self.layout, context, member, object, False) | rna_prop_ui.draw(self.layout, context, member, object, False) | ||||
| class VIEW3D_PT_viewport_debug(Panel): | |||||
| bl_space_type = 'VIEW_3D' | |||||
| bl_region_type = 'UI' | |||||
| bl_label = "..." | |||||
| 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") | |||||
| 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") | |||||
| def register(): | def register(): | ||||
| bpy.utils.register_module(__name__) | bpy.utils.register_module(__name__) | ||||
| Context not available. | |||||