diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-24 15:02:23 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-24 15:02:23 +0300 |
commit | d51b74f9e3de4379dc675e08df8766b37105ee0e (patch) | |
tree | c525fa1e82b07dd0e09d73b77f649327688c6989 /release | |
parent | 6dfdf1f82d201faa24b0095109599bdab26f024f (diff) |
Fix T66053: hair shape panel shows for emitter particles
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_particle.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py index 52089fa816d..c4b6168be61 100644 --- a/release/scripts/startup/bl_ui/properties_particle.py +++ b/release/scripts/startup/bl_ui/properties_particle.py @@ -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 |