[Bf-blender-cvs] [736455522dc] temp-lineart-contained: Update collection tab with instancing and tweak LineArt name

Sebastian Parborg noreply at git.blender.org
Mon Mar 15 12:19:53 CET 2021


Commit: 736455522dc5512b04acf13cf61c78b867d05f74
Author: Sebastian Parborg
Date:   Mon Mar 15 12:19:28 2021 +0100
Branches: temp-lineart-contained
https://developer.blender.org/rB736455522dc5512b04acf13cf61c78b867d05f74

Update collection tab with instancing and tweak LineArt name

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

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 ecf7df0cbb8..fa4c3cdb779 100644
--- a/release/scripts/startup/bl_ui/properties_collection.py
+++ b/release/scripts/startup/bl_ui/properties_collection.py
@@ -63,7 +63,7 @@ class COLLECTION_PT_collection_flags(CollectionButtonsPanel, Panel):
 
 
 class COLLECTION_PT_lineart_collection(CollectionButtonsPanel, Panel):
-    bl_label = "Collection Line Art"
+    bl_label = "Line Art"
 
     def draw(self, context):
         layout = self.layout
@@ -74,10 +74,22 @@ class COLLECTION_PT_lineart_collection(CollectionButtonsPanel, Panel):
         row = layout.row()
         row.prop(collection, "lineart_usage")
 
+class COLLECTION_PT_instancing(CollectionButtonsPanel, Panel):
+    bl_label = "Instancing"
+
+    def draw(self, context):
+        layout = self.layout
+        layout.use_property_split = True
+        layout.use_property_decorate = False
+        collection = context.collection
+
+        row = layout.row()
+        row.prop(collection, "instance_offset")
 
 classes = (
     COLLECTION_PT_collection_flags,
     COLLECTION_PT_lineart_collection,
+    COLLECTION_PT_instancing,
 )
 
 if __name__ == "__main__":  # only for live edit.



More information about the Bf-blender-cvs mailing list