[Bf-blender-cvs] [be30358] master: Fix (unreported) do not show 'appearances' options tool panel in ParticleEdit mode (not supported).

Bastien Montagne noreply at git.blender.org
Thu Dec 24 18:54:55 CET 2015


Commit: be303589bcd0e3fa5de892ea63be5d392946a01a
Author: Bastien Montagne
Date:   Thu Dec 24 18:53:18 2015 +0100
Branches: master
https://developer.blender.org/rBbe303589bcd0e3fa5de892ea63be5d392946a01a

Fix (unreported) do not show 'appearances' options tool panel in ParticleEdit mode (not supported).

===================================================================

M	release/scripts/startup/bl_ui/space_view3d_toolbar.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index cf5e2da..3c3899d 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1570,7 +1570,7 @@ class VIEW3D_PT_tools_brush_appearance(Panel, View3DPaintPanel):
     @classmethod
     def poll(cls, context):
         settings = cls.paint_settings(context)
-        return settings
+        return (settings is not None) and (not isinstance(settings, bpy.types.ParticleEdit))
 
     def draw(self, context):
         layout = self.layout




More information about the Bf-blender-cvs mailing list