[Bf-blender-cvs] [dfe08487a4b] lanpr-under-gp: LineArt: UI logic fixe for object line art panel.
YimingWu
noreply at git.blender.org
Sat Oct 31 09:48:59 CET 2020
Commit: dfe08487a4b0b676fa8c8bec957b3d01389012ba
Author: YimingWu
Date: Sat Oct 31 16:13:28 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rBdfe08487a4b0b676fa8c8bec957b3d01389012ba
LineArt: UI logic fixe for object line art panel.
===================================================================
M release/scripts/startup/bl_ui/properties_lineart.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_lineart.py b/release/scripts/startup/bl_ui/properties_lineart.py
index 90854b01cd8..4044c2500d1 100644
--- a/release/scripts/startup/bl_ui/properties_lineart.py
+++ b/release/scripts/startup/bl_ui/properties_lineart.py
@@ -29,14 +29,18 @@ class LineartButtonsPanel:
class OBJECT_PT_lineart(LineartButtonsPanel, Panel):
bl_label = "Line Art Settings"
+ @classmethod
+ def poll(cls, context):
+ ob = context.object
+ return (ob.type in {'MESH', 'FONT', 'CURVE', 'SURFACE'})
+
def draw(self, context):
layout = self.layout
lineart = context.object.lineart
- if context.object.type == 'MESH':
- layout.prop(lineart, 'usage')
- layout.prop(lineart, "own_crease")
- if lineart.own_crease:
- layout.prop(lineart, "crease_threshold", slider=True)
+ layout.prop(lineart, 'usage')
+ layout.prop(lineart, "own_crease", text='Use Own Crease')
+ if lineart.own_crease:
+ layout.prop(lineart, "crease_threshold", slider=True)
classes = (
More information about the Bf-blender-cvs
mailing list