Page MenuHome

Sculpt: Make Sculpt Vertex Colors features experimental
ClosedPublic

Authored by Pablo Dobarro (pablodp606) on Jul 7 2020, 4:34 PM.

Diff Detail

Repository
rB Blender

Event Timeline

Pablo Dobarro (pablodp606) requested review of this revision.Jul 7 2020, 4:34 PM
Pablo Dobarro (pablodp606) created this revision.

@Brecht Van Lommel (brecht) The only thing left is to disable the brush and sculpt vertex colors icons from the sculpt mode toolbar. Is that possible to do with an experimental option?

It appears to be possible like this:

diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index 75e7cc1..b513839 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -2485,7 +2485,12 @@ class VIEW3D_PT_tools_active(ToolSelectPanelHelper, Panel):
             None,
             _defs_sculpt.mesh_filter,
             _defs_sculpt.cloth_filter,
-            _defs_sculpt.color_filter,
+            lambda context: (
+                (_defs_sculpt.color_filter,)
+                if bpy.context.preferences.view.show_developer_ui and \
+                   bpy.context.preferences.experimental.use_sculpt_vertex_colors
+                else ()
+            ),
             None,
             _defs_sculpt.mask_by_color,
             None,

@Brecht Van Lommel (brecht) Ok, I'll update the patch with that. And what for brush tools that are defined in the RNA in C? I guess that filtering them in the toolbar is not enough as they can still be selected from the sculpt tool menu for any brush

I'm not sure how best to do that. That's pretty hidden anyway, I don't think it's a big problem.

  • Disable sculpt vertex colors tools from the toolbar
Brecht Van Lommel (brecht) added inline comments.
source/blender/nodes/shader/nodes/node_shader_vertex_color.c
42–45

This will still need to be properly fixed in D8185: Fix T78369: Sculpt Vertex Colors not rendering in EEVEE to support rendering either.

This revision is now accepted and ready to land.Jul 9 2020, 6:13 PM