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:
authorCampbell Barton <ideasman42@gmail.com>2018-11-27 07:23:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-11-27 07:25:52 +0300
commit09f97f937d81ae4e306062ec88486f6442057432 (patch)
tree8bc5fec928a3b24a6eff9bf48fc7b0d6fc1b1366 /release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
parent030830be9a11459502d467ea974baa079d83c52d (diff)
Cleanup: move non-toolbar panels out of the toolbar
Diffstat (limited to 'release/scripts/startup/bl_ui/space_toolsystem_toolbar.py')
-rw-r--r--release/scripts/startup/bl_ui/space_toolsystem_toolbar.py58
1 files changed, 0 insertions, 58 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index 4348efd75bd..66cadb635d1 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -31,13 +31,6 @@ from .space_toolsystem_common import (
ToolSelectPanelHelper,
ToolDef,
)
-from .properties_material_gpencil import (
- GPENCIL_UL_matslots,
-)
-from .properties_grease_pencil_common import (
- AnnotationDataPanel,
-)
-
def generate_from_enum_ex(
context, *,
@@ -1180,48 +1173,6 @@ class _defs_gpencil_weight:
)
-class TOPBAR_PT_gpencil_materials(Panel):
- bl_space_type = 'VIEW_3D'
- bl_region_type = 'HEADER'
- bl_label = "Materials"
- bl_ui_units_x = 14
-
- @classmethod
- def poll(cls, context):
- ob = context.object
- return ob and ob.type == 'GPENCIL'
-
- @staticmethod
- def draw(self, context):
- layout = self.layout
- ob = context.object
-
- if ob:
- is_sortable = len(ob.material_slots) > 1
- rows = 1
- if (is_sortable):
- rows = 10
-
- row = layout.row()
-
- row.template_list("GPENCIL_UL_matslots", "", ob, "material_slots", ob, "active_material_index", rows=rows)
-
- col = row.column(align=True)
- col.menu("GPENCIL_MT_color_specials", icon='DOWNARROW_HLT', text="")
-
- if is_sortable:
- col.separator()
-
- col.operator("object.material_slot_move", icon='TRIA_UP', text="").direction = 'UP'
- col.operator("object.material_slot_move", icon='TRIA_DOWN', text="").direction = 'DOWN'
-
- col.separator()
-
- sub = col.column(align=True)
- sub.operator("gpencil.color_isolate", icon='LOCKED', text="").affect_visibility = False
- sub.operator("gpencil.color_isolate", icon='HIDE_OFF', text="").affect_visibility = True
-
-
class IMAGE_PT_tools_active(ToolSelectPanelHelper, Panel):
bl_space_type = 'IMAGE_EDITOR'
bl_region_type = 'TOOLS'
@@ -1563,18 +1514,9 @@ class VIEW3D_PT_tools_active(ToolSelectPanelHelper, Panel):
}
-class TOPBAR_PT_annotation_layers(Panel, AnnotationDataPanel):
- bl_space_type = 'VIEW_3D'
- bl_region_type = 'HEADER'
- bl_label = "Layers"
- bl_ui_units_x = 14
-
-
classes = (
IMAGE_PT_tools_active,
VIEW3D_PT_tools_active,
- TOPBAR_PT_gpencil_materials,
- TOPBAR_PT_annotation_layers,
)
if __name__ == "__main__": # only for live edit.