UI: disable grease pencil panel
Disable poll functions since branch replaces this code.
This commit is contained in:
@@ -97,6 +97,11 @@ class GreasePencilDrawingToolsPanel:
|
|||||||
bl_category = "Grease Pencil"
|
bl_category = "Grease Pencil"
|
||||||
bl_region_type = 'TOOLS'
|
bl_region_type = 'TOOLS'
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def poll(cls, context):
|
||||||
|
# XXX - disabled in 2.8 branch.
|
||||||
|
return False
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@@ -171,6 +176,9 @@ class GreasePencilStrokeEditPanel:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
|
# XXX - disabled in 2.8 branch.
|
||||||
|
return False
|
||||||
|
|
||||||
if context.gpencil_data is None:
|
if context.gpencil_data is None:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@@ -260,6 +268,9 @@ class GreasePencilInterpolatePanel:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
|
# XXX - disabled in 2.8 branch.
|
||||||
|
return False
|
||||||
|
|
||||||
if context.gpencil_data is None:
|
if context.gpencil_data is None:
|
||||||
return False
|
return False
|
||||||
elif context.space_data.type != 'VIEW_3D':
|
elif context.space_data.type != 'VIEW_3D':
|
||||||
@@ -308,6 +319,11 @@ class GreasePencilBrushPanel:
|
|||||||
bl_category = "Grease Pencil"
|
bl_category = "Grease Pencil"
|
||||||
bl_region_type = 'TOOLS'
|
bl_region_type = 'TOOLS'
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def poll(cls, context):
|
||||||
|
# XXX - disabled in 2.8 branch.
|
||||||
|
return False
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@@ -377,6 +393,9 @@ class GreasePencilStrokeSculptPanel:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
|
# XXX - disabled in 2.8 branch.
|
||||||
|
return False
|
||||||
|
|
||||||
if context.gpencil_data is None:
|
if context.gpencil_data is None:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@@ -437,6 +456,9 @@ class GreasePencilBrushCurvesPanel:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
|
# XXX - disabled in 2.8 branch.
|
||||||
|
return False
|
||||||
|
|
||||||
if context.active_gpencil_brush is None:
|
if context.active_gpencil_brush is None:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@@ -1027,6 +1049,9 @@ class GreasePencilPaletteColorPanel:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
|
# XXX - disabled in 2.8 branch.
|
||||||
|
return False
|
||||||
|
|
||||||
if context.gpencil_data is None:
|
if context.gpencil_data is None:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@@ -1129,6 +1154,9 @@ class GreasePencilToolsPanel:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
|
# XXX - disabled in 2.8 branch.
|
||||||
|
return False
|
||||||
|
|
||||||
return (context.gpencil_data is not None)
|
return (context.gpencil_data is not None)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
Reference in New Issue
Block a user