from bpy.types import Panel, Menu
-from cycles import enums
-from cycles import engine
+from . import enums, engine
class CYCLES_MT_integrator_presets(Menu):
@classmethod
def poll(cls, context):
ob = context.object
- return CyclesButtonsPanel.poll(context) and ob and ob.type in ('MESH', 'CURVE', 'CURVE', 'SURFACE', 'FONT', 'META') # todo: 'LAMP'
+ return CyclesButtonsPanel.poll(context) and ob and ob.type in {'MESH', 'CURVE', 'CURVE', 'SURFACE', 'FONT', 'META'} # todo: 'LAMP'
def draw(self, context):
layout = self.layout
split = layout.split()
col = split.column(align=True)
- if lamp.type in ('POINT', 'SUN', 'SPOT'):
+ if lamp.type in {'POINT', 'SUN', 'SPOT'}:
col.prop(lamp, "shadow_soft_size", text="Size")
elif lamp.type == 'AREA':
col.prop(lamp, "shape", text="")
@classmethod
def poll(cls, context):
# world = context.world
- return False # world and world.node_tree and CyclesButtonsPanel.poll(context)
+ # world and world.node_tree and CyclesButtonsPanel.poll(context)
+ return False
def draw(self, context):
layout = self.layout
@classmethod
def poll(cls, context):
# mat = context.material
- return False # mat and mat.node_tree and CyclesButtonsPanel.poll(context)
+ # mat and mat.node_tree and CyclesButtonsPanel.poll(context)
+ return False
def draw(self, context):
layout = self.layout
def get_panels():
- return [
+ return (
bpy.types.RENDER_PT_render,
bpy.types.RENDER_PT_output,
bpy.types.RENDER_PT_encoding,
bpy.types.PARTICLE_PT_field_weights,
bpy.types.PARTICLE_PT_force_fields,
bpy.types.PARTICLE_PT_vertexgroups,
- bpy.types.PARTICLE_PT_custom_props]
+ bpy.types.PARTICLE_PT_custom_props,
+ )
def register():