[Bf-blender-cvs] [f7ee2348c00] master: Fix Particles Keyed Physics target UI greyed out

Philipp Oeser noreply at git.blender.org
Fri Sep 13 12:39:35 CEST 2019


Commit: f7ee2348c00d7263c33b1e05173942349e9bb312
Author: Philipp Oeser
Date:   Fri Sep 13 11:04:07 2019 +0200
Branches: master
https://developer.blender.org/rBf7ee2348c00d7263c33b1e05173942349e9bb312

Fix Particles Keyed Physics target UI greyed out

Picking the 'Target Object' as well as the 'System' number was greyed
out as long as 'Use Timing' was disabled. 'Use Timing' is unrelated for
the above two, these should always be active...

part of T69741

Reviewers: sergey

Maniphest Tasks: T69741

Differential Revision: https://developer.blender.org/D5782

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

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 0b8617e40ca..d121091932f 100644
--- a/release/scripts/startup/bl_ui/properties_particle.py
+++ b/release/scripts/startup/bl_ui/properties_particle.py
@@ -960,10 +960,10 @@ class PARTICLE_PT_physics_relations(ParticleButtonsPanel, Panel):
                 #col.alert = key.valid
                 col.prop(key, "object")
                 col.prop(key, "system", text="System")
-
-                col.active = psys.use_keyed_timing
-                col.prop(key, "time")
-                col.prop(key, "duration")
+                sub = col.column(align=True)
+                sub.active = psys.use_keyed_timing
+                sub.prop(key, "time")
+                sub.prop(key, "duration")
             elif part.physics_type == 'BOIDS':
                 sub = layout.column()
                 # doesn't work yet



More information about the Bf-blender-cvs mailing list