[Bf-blender-cvs] [a4b55c207fb] temp-sculpt-colors: Remove save/load to corners from py scripts

Joseph Eagar noreply at git.blender.org
Tue Jan 4 13:12:39 CET 2022


Commit: a4b55c207fb70cb8c95d151ff843492151b379d9
Author: Joseph Eagar
Date:   Mon Dec 20 10:43:38 2021 -0500
Branches: temp-sculpt-colors
https://developer.blender.org/rBa4b55c207fb70cb8c95d151ff843492151b379d9

Remove save/load to corners from py scripts

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

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

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

diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py
index 8a9f79b795d..de2bacff37f 100644
--- a/release/scripts/startup/bl_ui/properties_data_mesh.py
+++ b/release/scripts/startup/bl_ui/properties_data_mesh.py
@@ -502,10 +502,6 @@ class DATA_PT_vertex_colors(MeshButtonsPanel, Panel):
 
         active = mesh.attributes.active
         
-        if active and (active.domain == "POINT" and active.data_type == "FLOAT_COLOR"):
-            layout.operator("sculpt.vertex_to_loop_colors", text="Save To Corners")
-            layout.operator("sculpt.loop_to_vertex_colors", text="Load From Corners")
-
         self.draw_attribute_warnings(context, layout)
 
     def draw_attribute_warnings(self, context, layout):
@@ -664,10 +660,6 @@ class DATA_PT_mesh_attributes(MeshButtonsPanel, Panel):
         col.operator("geometry.attribute_remove", icon='REMOVE', text="")
 
         active = mesh.attributes.active
-        
-        if active and (active.domain == "POINT" and active.data_type == "FLOAT_COLOR"):
-            layout.operator("sculpt.vertex_to_loop_colors", text="Save To Corners")
-            layout.operator("sculpt.loop_to_vertex_colors", text="Load From Corners")
 
         self.draw_attribute_warnings(context, layout)



More information about the Bf-blender-cvs mailing list