Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Karhu <jhkarh@gmail.com>2010-11-26 18:37:08 +0300
committerJanne Karhu <jhkarh@gmail.com>2010-11-26 18:37:08 +0300
commit782d7b312ff6799258fb318e2aa5bbd64dbd2a9d (patch)
tree64a15bfcabaaa0cfdf78b44410196938b9cb158a /release
parent4efffc90f90c16bc515aecc2e3274f420bfe84dc (diff)
"Fix" for [#24934] Particle single user crash
* Changing anything related to particle settings shouldn't be allowed when in particle mode, so disabled the buttons in ui.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/ui/properties_particle.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/ui/properties_particle.py b/release/scripts/ui/properties_particle.py
index ff49b0e4e9f..6389dcb2207 100644
--- a/release/scripts/ui/properties_particle.py
+++ b/release/scripts/ui/properties_particle.py
@@ -102,7 +102,9 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, bpy.types.Panel):
col = split.column()
col.prop(psys, "name", text="")
if part.type in ('EMITTER', 'REACTOR', 'HAIR'):
- col.template_ID(psys, "settings", new="particle.new")
+ row = col.row()
+ row.enabled = particle_panel_enabled(context, psys)
+ row.template_ID(psys, "settings", new="particle.new")
#row = layout.row()
#row.label(text="Viewport")