Fix (unreported) sculpt vertex color panel visible for all object types

Since DATA_PT_sculpt_vertex_colors has its own poll() we need to call
the poll() of MeshButtonsPanel as well

Differential Revision: https://developer.blender.org/D8563
This commit is contained in:
Philipp Oeser 2020-08-13 15:38:20 +02:00
parent c5519d4b6f
commit a5cf71fa5d
1 changed files with 1 additions and 1 deletions

View File

@ -468,7 +468,7 @@ class DATA_PT_sculpt_vertex_colors(MeshButtonsPanel, Panel):
@classmethod
def poll(cls, context):
return context.preferences.experimental.use_sculpt_vertex_colors
return super().poll(context) and context.preferences.experimental.use_sculpt_vertex_colors
def draw(self, context):
layout = self.layout