[Bf-blender-cvs] [ad6a7988fc6] temp-lineart-contained: LineArt: Fix collection intersection ui.

YimingWu noreply at git.blender.org
Mon Jun 28 09:38:09 CEST 2021


Commit: ad6a7988fc6e2b466ddd6d6fa500a0cd9544ae5d
Author: YimingWu
Date:   Mon Jun 28 15:01:13 2021 +0800
Branches: temp-lineart-contained
https://developer.blender.org/rBad6a7988fc6e2b466ddd6d6fa500a0cd9544ae5d

LineArt: Fix collection intersection ui.

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

M	release/scripts/startup/bl_ui/properties_collection.py

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

diff --git a/release/scripts/startup/bl_ui/properties_collection.py b/release/scripts/startup/bl_ui/properties_collection.py
index a16410fcec9..d21c2aa156d 100644
--- a/release/scripts/startup/bl_ui/properties_collection.py
+++ b/release/scripts/startup/bl_ui/properties_collection.py
@@ -89,8 +89,11 @@ class COLLECTION_PT_lineart_collection(CollectionButtonsPanel, Panel):
         row.prop(collection, "lineart_usage")
 
         layout.prop(collection, "lineart_use_intersection_mask")
-        row = layout.row()
-        row.prop(collection, "lineart_intersection_mask", text="Masks", toggle=True)
+
+        row = layout.row(align=True)
+        row.active = collection.lineart_use_intersection_mask
+        for i in range(0,8):
+            row.prop(collection, "lineart_intersection_mask", index=i, text=str(i), toggle=True)
 
 
 classes = (



More information about the Bf-blender-cvs mailing list