Fix T66053: hair shape panel shows for emitter particles
This commit is contained in:
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
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue