Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-03-17 20:46:41 +0300
committerHans Goudey <h.goudey@me.com>2021-03-17 20:46:41 +0300
commitbe33d3eccdcdf252201883ea681e261e967c87fc (patch)
treec2e4392fe5dd28f068ede71d49240c1f088be5e7 /release/scripts/startup/bl_ui/properties_collection.py
parent0ff3f96a1b0193d69dae5ca69e7c93d6cdf34558 (diff)
UI: Tweak labels, descriptions, and panel layout for line art
Changes include: - Use `IFACE_` for UI labels set in the modifier panels - Use a sub-sub-panel for transparency - Fix grammar and spelling mistakes - Use more natural user-friendly wording - Make descriptions more specific and more useful - Don't capitalize "line art" in descriptions (tooltips) These changes are aimed at making the UI strings more consistent with the rest of the UI and being more helpful to someone trying to understand how to use the modifier. Differential Revision: https://developer.blender.org/D10750
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_collection.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_collection.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/release/scripts/startup/bl_ui/properties_collection.py b/release/scripts/startup/bl_ui/properties_collection.py
index fa4c3cdb779..186314f9591 100644
--- a/release/scripts/startup/bl_ui/properties_collection.py
+++ b/release/scripts/startup/bl_ui/properties_collection.py
@@ -62,8 +62,8 @@ class COLLECTION_PT_collection_flags(CollectionButtonsPanel, Panel):
col.prop(vlc, "indirect_only", toggle=False)
-class COLLECTION_PT_lineart_collection(CollectionButtonsPanel, Panel):
- bl_label = "Line Art"
+class COLLECTION_PT_instancing(CollectionButtonsPanel, Panel):
+ bl_label = "Instancing"
def draw(self, context):
layout = self.layout
@@ -72,10 +72,11 @@ class COLLECTION_PT_lineart_collection(CollectionButtonsPanel, Panel):
collection = context.collection
row = layout.row()
- row.prop(collection, "lineart_usage")
+ row.prop(collection, "instance_offset")
-class COLLECTION_PT_instancing(CollectionButtonsPanel, Panel):
- bl_label = "Instancing"
+
+class COLLECTION_PT_lineart_collection(CollectionButtonsPanel, Panel):
+ bl_label = "Line Art"
def draw(self, context):
layout = self.layout
@@ -84,12 +85,13 @@ class COLLECTION_PT_instancing(CollectionButtonsPanel, Panel):
collection = context.collection
row = layout.row()
- row.prop(collection, "instance_offset")
+ row.prop(collection, "lineart_usage")
+
classes = (
COLLECTION_PT_collection_flags,
- COLLECTION_PT_lineart_collection,
COLLECTION_PT_instancing,
+ COLLECTION_PT_lineart_collection,
)
if __name__ == "__main__": # only for live edit.