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:
authorJung Jaeyun <cube-c>2022-04-20 17:54:46 +0300
committerJeroen Bakker <jeroen@blender.org>2022-04-20 17:55:33 +0300
commit56d1d19c88e0fceea197c44d78f93fb26d8f9824 (patch)
treeb513c2d4307d07b5563417398ee44f2bba1507ea /release
parent604c33e694375828b0f322010e8e4ac17b4b02f3 (diff)
UI: Add option to create color attribute directly from canvas selector.
Added + and - buttons to create and delete color attributes from canvas selector. {T97345} {F13006374} Reviewed By: jbakker, Ethan1080 Maniphest Tasks: T97345 Differential Revision: https://developer.blender.org/D14672
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 10dfd182836..570d7c12e30 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -526,7 +526,10 @@ class SelectPaintSlotHelper:
case 'COLOR_ATTRIBUTE':
mesh = ob.data
- layout.template_list(
+
+ row = layout.row()
+ col = row.column()
+ col.template_list(
"MESH_UL_color_attributes_selector",
"color_attributes",
mesh,
@@ -536,6 +539,10 @@ class SelectPaintSlotHelper:
rows=3,
)
+ col = row.column(align=True)
+ col.operator("geometry.color_attribute_add", icon='ADD', text="")
+ col.operator("geometry.color_attribute_remove", icon='REMOVE', text="")
+
if settings.missing_uvs:
layout.separator()
split = layout.split()