diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-01-23 12:37:32 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-01-23 12:37:32 +0300 |
commit | 1f6ab32196d7cdd78e55f51ccc4304994b78b5c0 (patch) | |
tree | d3af50e20b0ac76f9a0e23a5a9258b37cddcd592 | |
parent | ca7bd3f1c341157e686038a3b159cda7e7083554 (diff) |
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.
-rw-r--r-- | release/scripts/startup/bl_ui/properties_particle.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py index 2028857640e..34ff386893b 100644 --- a/release/scripts/startup/bl_ui/properties_particle.py +++ b/release/scripts/startup/bl_ui/properties_particle.py @@ -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 |