[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23543] trunk/blender/release/scripts/ui/ buttons_particle.py: Fix python error in boids panel, missing variable psys .

Brecht Van Lommel brecht at blender.org
Mon Sep 28 18:13:24 CEST 2009


Revision: 23543
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23543
Author:   blendix
Date:     2009-09-28 18:13:23 +0200 (Mon, 28 Sep 2009)

Log Message:
-----------
Fix python error in boids panel, missing variable psys.

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/buttons_particle.py

Modified: trunk/blender/release/scripts/ui/buttons_particle.py
===================================================================
--- trunk/blender/release/scripts/ui/buttons_particle.py	2009-09-28 16:11:55 UTC (rev 23542)
+++ trunk/blender/release/scripts/ui/buttons_particle.py	2009-09-28 16:13:23 UTC (rev 23543)
@@ -502,7 +502,8 @@
 		return psys.settings.physics_type=='BOIDS'
 	
 	def draw(self, context):
-		boids = context.particle_system.settings.boids
+		psys = context.particle_system
+		boids = psys.settings.boids
 		layout = self.layout
 		
 		layout.enabled = particle_panel_enabled(psys)





More information about the Bf-blender-cvs mailing list