[Bf-blender-cvs] [1f6ab32196d] blender-v2.82-release: Fix T73279: Particle Rotation checkbox enabled when a bake exists

Sybren A. Stüvel noreply at git.blender.org
Thu Jan 23 10:38:22 CET 2020


Commit: 1f6ab32196d7cdd78e55f51ccc4304994b78b5c0
Author: Sybren A. Stüvel
Date:   Thu Jan 23 10:37:32 2020 +0100
Branches: blender-v2.82-release
https://developer.blender.org/rB1f6ab32196d7cdd78e55f51ccc4304994b78b5c0

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.

===================================================================

M	release/scripts/startup/bl_ui/properties_particle.py

===================================================================

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



More information about the Bf-blender-cvs mailing list