[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34459] trunk/blender/release/scripts/ui/ properties_particle.py: Own mistake in fluid particles ui cleanup commit.
Janne Karhu
jhkarh at gmail.com
Sat Jan 22 22:22:29 CET 2011
Revision: 34459
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34459
Author: jhk
Date: 2011-01-22 21:22:29 +0000 (Sat, 22 Jan 2011)
Log Message:
-----------
Own mistake in fluid particles ui cleanup commit.
* Emission tab was shown without particle settings.
Modified Paths:
--------------
trunk/blender/release/scripts/ui/properties_particle.py
Modified: trunk/blender/release/scripts/ui/properties_particle.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_particle.py 2011-01-22 21:13:29 UTC (rev 34458)
+++ trunk/blender/release/scripts/ui/properties_particle.py 2011-01-22 21:22:29 UTC (rev 34459)
@@ -150,8 +150,13 @@
@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
return False
More information about the Bf-blender-cvs
mailing list