[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22826] branches/blender2.5/blender/ release/ui/buttons_texture.py: Fix for last commit.

Thomas Dinges dingto at gmx.de
Thu Aug 27 21:32:01 CEST 2009


Revision: 22826
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22826
Author:   dingto
Date:     2009-08-27 21:32:01 +0200 (Thu, 27 Aug 2009)

Log Message:
-----------
Fix for last commit. Forgot poll for new panel. 

Modified Paths:
--------------
    branches/blender2.5/blender/release/ui/buttons_texture.py

Modified: branches/blender2.5/blender/release/ui/buttons_texture.py
===================================================================
--- branches/blender2.5/blender/release/ui/buttons_texture.py	2009-08-27 19:31:14 UTC (rev 22825)
+++ branches/blender2.5/blender/release/ui/buttons_texture.py	2009-08-27 19:32:01 UTC (rev 22826)
@@ -693,7 +693,11 @@
 
 class TEXTURE_PT_pointdensity_turbulence(TextureButtonsPanel):
 	__label__ = "Turbulence"
-
+	
+	def poll(self, context):
+		tex = context.texture
+		return (tex and tex.type == 'POINT_DENSITY')
+		
 	def draw_header(self, context):
 		layout = self.layout
 		





More information about the Bf-blender-cvs mailing list