From a17f4dfda618c8fd1b8b56f2cf8f461c324fd77a Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Tue, 20 Dec 2011 06:26:03 +0000 Subject: [PATCH] First fix after Cucumber merge starts. * Restore COMPAT_ENGINES for particle panel, caused error on startup. (Cycles needs it) --- release/scripts/startup/bl_ui/properties_particle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py index bc42b2a2a11..74f12545511 100644 --- a/release/scripts/startup/bl_ui/properties_particle.py +++ b/release/scripts/startup/bl_ui/properties_particle.py @@ -76,12 +76,12 @@ class ParticleButtonsPanel(): class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel): bl_label = "" bl_options = {'HIDE_HEADER'} - # COMPAT_ENGINES = {'BLENDER_RENDER'} + COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod def poll(cls, context): engine = context.scene.render.engine - return (context.particle_system or context.object or context.space_data.pin_id)# and (engine in cls.COMPAT_ENGINES) + return (context.particle_system or context.object or context.space_data.pin_id) and (engine in cls.COMPAT_ENGINES) def draw(self, context): layout = self.layout