Fix T66053: hair shape panel shows for emitter particles

This commit is contained in:
Brecht Van Lommel 2019-06-24 14:02:23 +02:00
parent 6dfdf1f82d
commit d51b74f9e3
Notes: blender-bot 2023-02-14 02:07:26 +01:00
Referenced by issue #66053, Hair Shape property visible for non-hair particle systems
1 changed files with 3 additions and 2 deletions

View File

@ -1947,9 +1947,10 @@ class PARTICLE_PT_hair_shape(ParticleButtonsPanel, Panel):
@classmethod
def poll(cls, context):
if context.particle_system is None:
psys = context.particle_system
if psys is None:
return False
return particle_panel_poll(cls, context)
return particle_panel_poll(cls, context) and psys.settings.type == 'HAIR'
def draw(self, context):
layout = self.layout