[Bf-blender-cvs] [9c665e79803] temp-lineart-contained: LineArt: UI Fixes.

YimingWu noreply at git.blender.org
Wed Apr 21 07:13:35 CEST 2021


Commit: 9c665e7980344ad034ab854df45e872727324d20
Author: YimingWu
Date:   Mon Apr 19 16:54:39 2021 +0800
Branches: temp-lineart-contained
https://developer.blender.org/rB9c665e7980344ad034ab854df45e872727324d20

LineArt: UI Fixes.

===================================================================

M	release/scripts/startup/bl_ui/properties_material.py
M	release/scripts/startup/bl_ui/properties_object.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_material.py b/release/scripts/startup/bl_ui/properties_material.py
index aca7ba3c5ad..217ec248764 100644
--- a/release/scripts/startup/bl_ui/properties_material.py
+++ b/release/scripts/startup/bl_ui/properties_material.py
@@ -286,19 +286,17 @@ class MATERIAL_PT_lineart(MaterialButtonsPanel, Panel):
 
     def draw(self, context):
         layout = self.layout
+        layout.use_property_split = True
 
         mat = context.material
         lineart = mat.lineart
 
         layout.prop(lineart, "use_transparency")
 
-        if lineart.use_transparency:
-
-            layout.label(text="Transparency Masks:")
-
-            row = layout.row(align=True)
-            for i in range(8):
-                row.prop(lineart, "use_transparency_mask", text=str(i), index=i, toggle=True)
+        row = layout.row(align=True, heading="Masks")
+        row.active = lineart.use_transparency
+        for i in range(8):
+            row.prop(lineart, "use_transparency_mask", text=str(i), index=i, toggle=True)
 
 
 classes = (
diff --git a/release/scripts/startup/bl_ui/properties_object.py b/release/scripts/startup/bl_ui/properties_object.py
index fbb827aece4..4ea1ec26738 100644
--- a/release/scripts/startup/bl_ui/properties_object.py
+++ b/release/scripts/startup/bl_ui/properties_object.py
@@ -327,11 +327,11 @@ class OBJECT_PT_lineart(ObjectButtonsPanel, Panel):
         layout.prop(lineart, "usage")
         layout.use_property_split = True
 
-        row = layout.row()
-        row.prop(lineart, "use_crease_override", text="Override Crease")
-        row = layout.row()
-        row.active = lineart.use_crease_override
-        row.prop(lineart, "crease_threshold", slider=True, text="Threshold")
+        row = layout.row(heading="Override Crease")
+        row.prop(lineart, "use_crease_override", text="")
+        subrow = row.row()
+        subrow.active = lineart.use_crease_override
+        subrow.prop(lineart, "crease_threshold", slider=True, text="")
 
 
 class OBJECT_PT_motion_paths(MotionPathButtonsPanel, Panel):



More information about the Bf-blender-cvs mailing list