Fix T68227: Pinning the particles system data-block causes error
The 'Seed' setting is not part of the pinned data-block. When pinning, the local variable `psys` is `None`, and this wasn't properly checked for when drawing the 'Seed' setting.
This commit is contained in:
@@ -272,7 +272,9 @@ class PARTICLE_PT_emission(ParticleButtonsPanel, Panel):
|
||||
col = layout.column()
|
||||
col.active = part.emit_from == 'VERT' or part.distribution != 'GRID'
|
||||
col.prop(part, "count")
|
||||
col.prop(psys, "seed")
|
||||
|
||||
if psys is not None:
|
||||
col.prop(psys, "seed")
|
||||
|
||||
if part.type == 'HAIR':
|
||||
col.prop(part, "hair_length")
|
||||
|
||||
Reference in New Issue
Block a user