Own mistake in fluid particles ui cleanup commit.
authorJanne Karhu <jhkarh@gmail.com>
Sat, 22 Jan 2011 21:22:29 +0000 (21:22 +0000)
committerJanne Karhu <jhkarh@gmail.com>
Sat, 22 Jan 2011 21:22:29 +0000 (21:22 +0000)
* Emission tab was shown without particle settings.

release/scripts/ui/properties_particle.py

index fbc4d932f3223c08a1c18ee1aaaf3ed18d566af4..9cde2891177318eaf5bb9c9e8cbe26435a89af2c 100644 (file)
@@ -150,7 +150,12 @@ class PARTICLE_PT_emission(ParticleButtonsPanel, bpy.types.Panel):
 
     @classmethod
     def poll(cls, context):
-        if context.particle_system.settings.is_fluid:
+        psys = context.particle_system
+        if psys is None:
+            return False
+        if psys.settings is None:
+            return False
+        if psys.settings.is_fluid:
             return False
         if particle_panel_poll(PARTICLE_PT_emission, context):
             return not context.particle_system.point_cache.use_external