Fix T73279: Particle Rotation checkbox enabled when a bake exists

The contents of the Rotation panel was already disabled when a bake
exists, but the checkbox in the header wasn't. Since rotations are part
of the baked data, it doesn't make sense to enable/disable rotations
after baking.
This commit is contained in:
Sybren A. Stüvel 2020-01-23 10:37:32 +01:00
parent ca7bd3f1c3
commit 1f6ab32196
Notes: blender-bot 2023-02-14 07:39:46 +01:00
Referenced by commit e4faed120d, Fix T73466: Unable to set particle rotation
Referenced by issue #73279, "Rotation" tab checkbox for particles not grayed out when a bake exists
1 changed files with 4 additions and 1 deletions

View File

@ -582,7 +582,10 @@ class PARTICLE_PT_rotation(ParticleButtonsPanel, Panel):
else:
part = context.space_data.pin_id
self.layout.prop(part, "use_rotations", text="")
layout = self.layout
layout.prop(part, "use_rotations", text="")
layout.enabled = particle_panel_enabled(context, psys) and part.use_rotations
def draw(self, context):
layout = self.layout