Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-10-09 00:50:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-09 00:50:06 +0400
commita82bcb38c40fbeeea3715341d07ace5bb56890ed (patch)
tree5e75b39242729489bd797e94eda9d3e7aecf0f0f /render_povray
parentb941652219a5fe080bf2d71664a393ca83c238b5 (diff)
style cleanup: pep8
Diffstat (limited to 'render_povray')
-rw-r--r--render_povray/render.py2
-rw-r--r--render_povray/ui.py12
2 files changed, 7 insertions, 7 deletions
diff --git a/render_povray/render.py b/render_povray/render.py
index 6da156d9..a92aafb8 100644
--- a/render_povray/render.py
+++ b/render_povray/render.py
@@ -822,7 +822,7 @@ def write_pov(filename, scene=None, info_callback=None):
# Export Hair
- if hasattr(ob, 'particle_systems') != False:
+ if hasattr(ob, 'particle_systems'):
for pSys in ob.particle_systems:
if not pSys.settings.use_render_emitter:
continue #don't render mesh
diff --git a/render_povray/ui.py b/render_povray/ui.py
index 0af5253e..3c828d0c 100644
--- a/render_povray/ui.py
+++ b/render_povray/ui.py
@@ -102,7 +102,7 @@ class RenderButtonsPanel():
@classmethod
def poll(cls, context):
rd = context.scene.render
- return (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES)
+ return (rd.use_game_engine is False) and (rd.engine in cls.COMPAT_ENGINES)
class MaterialButtonsPanel():
@@ -115,7 +115,7 @@ class MaterialButtonsPanel():
def poll(cls, context):
mat = context.material
rd = context.scene.render
- return mat and (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES)
+ return mat and (rd.use_game_engine is False) and (rd.engine in cls.COMPAT_ENGINES)
class TextureButtonsPanel():
@@ -128,7 +128,7 @@ class TextureButtonsPanel():
def poll(cls, context):
tex = context.texture
rd = context.scene.render
- return tex and (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES)
+ return tex and (rd.use_game_engine is False) and (rd.engine in cls.COMPAT_ENGINES)
class ObjectButtonsPanel():
@@ -141,7 +141,7 @@ class ObjectButtonsPanel():
def poll(cls, context):
obj = context.object
rd = context.scene.render
- return obj and (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES)
+ return obj and (rd.use_game_engine is False) and (rd.engine in cls.COMPAT_ENGINES)
class CameraDataButtonsPanel():
@@ -154,7 +154,7 @@ class CameraDataButtonsPanel():
def poll(cls, context):
cam = context.camera
rd = context.scene.render
- return cam and (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES)
+ return cam and (rd.use_game_engine is False) and (rd.engine in cls.COMPAT_ENGINES)
class TextButtonsPanel():
@@ -167,7 +167,7 @@ class TextButtonsPanel():
def poll(cls, context):
text = context.space_data
rd = context.scene.render
- return text and (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES)
+ return text and (rd.use_game_engine is False) and (rd.engine in cls.COMPAT_ENGINES)
class RENDER_PT_povray_export_settings(RenderButtonsPanel, bpy.types.Panel):