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-04-24 22:05:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-04-24 22:05:24 +0300
commit987fc3095980dcba83fd9a4cb277f628ba65ccf2 (patch)
tree0458ea23fbcc317304de8f907162821da786ac4b /release
parent1a8b24e1b1d3d4cdd28e56edd97aee631b44a907 (diff)
UI: disable grease pencil panel
Disable poll functions since branch replaces this code.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_grease_pencil_common.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
index 2aa978a51d8..decbbff5d60 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -97,6 +97,11 @@ class GreasePencilDrawingToolsPanel:
bl_category = "Grease Pencil"
bl_region_type = 'TOOLS'
+ @classmethod
+ def poll(cls, context):
+ # XXX - disabled in 2.8 branch.
+ return False
+
@staticmethod
def draw(self, context):
layout = self.layout
@@ -171,6 +176,9 @@ class GreasePencilStrokeEditPanel:
@classmethod
def poll(cls, context):
+ # XXX - disabled in 2.8 branch.
+ return False
+
if context.gpencil_data is None:
return False
@@ -260,6 +268,9 @@ class GreasePencilInterpolatePanel:
@classmethod
def poll(cls, context):
+ # XXX - disabled in 2.8 branch.
+ return False
+
if context.gpencil_data is None:
return False
elif context.space_data.type != 'VIEW_3D':
@@ -308,6 +319,11 @@ class GreasePencilBrushPanel:
bl_category = "Grease Pencil"
bl_region_type = 'TOOLS'
+ @classmethod
+ def poll(cls, context):
+ # XXX - disabled in 2.8 branch.
+ return False
+
@staticmethod
def draw(self, context):
layout = self.layout
@@ -377,6 +393,9 @@ class GreasePencilStrokeSculptPanel:
@classmethod
def poll(cls, context):
+ # XXX - disabled in 2.8 branch.
+ return False
+
if context.gpencil_data is None:
return False
@@ -437,6 +456,9 @@ class GreasePencilBrushCurvesPanel:
@classmethod
def poll(cls, context):
+ # XXX - disabled in 2.8 branch.
+ return False
+
if context.active_gpencil_brush is None:
return False
@@ -1027,6 +1049,9 @@ class GreasePencilPaletteColorPanel:
@classmethod
def poll(cls, context):
+ # XXX - disabled in 2.8 branch.
+ return False
+
if context.gpencil_data is None:
return False
@@ -1129,6 +1154,9 @@ class GreasePencilToolsPanel:
@classmethod
def poll(cls, context):
+ # XXX - disabled in 2.8 branch.
+ return False
+
return (context.gpencil_data is not None)
@staticmethod