Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added another check for renderpasses to prevent IndexError exceptions

  • Loading branch information...
commit 5a42eed206b45248d4f770b77b43dd2018782302 1 parent 77d2870
@frigge authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 export_renderman/ui.py
View
10 export_renderman/ui.py
@@ -1316,14 +1316,18 @@ class Render_PT_RendermanPassesPanel(RenderButtonsPanel, bpy.types.Panel):
def draw(self, context):
scene = context.scene
- #bpy.ops.renderman.maintain()
renderman_settings = scene.renderman_settings
layout = self.layout
+
+ try:
+ active_pass = getactivepass(scene)
+ except IndexError:
+ layout.label("No Render Pass")
+ return
+
row = layout.row()
col = row.column(align=True)
- active_pass = getactivepass(scene)
-
if len(renderman_settings.passes) < 15:
rows = len(renderman_settings.passes)+1
else:
Please sign in to comment.
Something went wrong with that request. Please try again.