[Bf-blender-cvs] [987fc309598] blender2.8: UI: disable grease pencil panel
Campbell Barton
noreply at git.blender.org
Tue Apr 24 21:07:17 CEST 2018
Commit: 987fc3095980dcba83fd9a4cb277f628ba65ccf2
Author: Campbell Barton
Date: Tue Apr 24 21:05:24 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB987fc3095980dcba83fd9a4cb277f628ba65ccf2
UI: disable grease pencil panel
Disable poll functions since branch replaces this code.
===================================================================
M release/scripts/startup/bl_ui/properties_grease_pencil_common.py
===================================================================
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
More information about the Bf-blender-cvs
mailing list