diff --git a/release/scripts/io/engine_render_pov.py b/release/scripts/io/engine_render_pov.py index d5f02fa3b6a..aa8fb29756a 100644 --- a/release/scripts/io/engine_render_pov.py +++ b/release/scripts/io/engine_render_pov.py @@ -868,7 +868,7 @@ class RenderButtonsPanel(bpy.types.Panel): class RENDER_PT_povray_radiosity(RenderButtonsPanel): bl_label = "Radiosity" - COMPAT_ENGINES = set(['POVRAY_RENDER']) + COMPAT_ENGINES = {'POVRAY_RENDER'} def draw_header(self, context): scene = context.scene diff --git a/release/scripts/io/netrender/ui.py b/release/scripts/io/netrender/ui.py index fd9ce0fcc32..ab3844d5597 100644 --- a/release/scripts/io/netrender/ui.py +++ b/release/scripts/io/netrender/ui.py @@ -50,7 +50,7 @@ class RenderButtonsPanel(bpy.types.Panel): @rnaType class RENDER_PT_network_settings(RenderButtonsPanel): bl_label = "Network Settings" - COMPAT_ENGINES = set(['NET_RENDER']) + COMPAT_ENGINES = {'NET_RENDER'} def draw(self, context): layout = self.layout @@ -76,7 +76,7 @@ class RENDER_PT_network_settings(RenderButtonsPanel): @rnaType class RENDER_PT_network_job(RenderButtonsPanel): bl_label = "Job Settings" - COMPAT_ENGINES = set(['NET_RENDER']) + COMPAT_ENGINES = {'NET_RENDER'} def poll(self, context): scene = context.scene @@ -105,7 +105,7 @@ class RENDER_PT_network_job(RenderButtonsPanel): @rnaType class RENDER_PT_network_slaves(RenderButtonsPanel): bl_label = "Slaves Status" - COMPAT_ENGINES = set(['NET_RENDER']) + COMPAT_ENGINES = {'NET_RENDER'} def poll(self, context): scene = context.scene @@ -141,7 +141,7 @@ class RENDER_PT_network_slaves(RenderButtonsPanel): @rnaType class RENDER_PT_network_slaves_blacklist(RenderButtonsPanel): bl_label = "Slaves Blacklist" - COMPAT_ENGINES = set(['NET_RENDER']) + COMPAT_ENGINES = {'NET_RENDER'} def poll(self, context): scene = context.scene @@ -176,7 +176,7 @@ class RENDER_PT_network_slaves_blacklist(RenderButtonsPanel): @rnaType class RENDER_PT_network_jobs(RenderButtonsPanel): bl_label = "Jobs" - COMPAT_ENGINES = set(['NET_RENDER']) + COMPAT_ENGINES = {'NET_RENDER'} def poll(self, context): scene = context.scene diff --git a/release/scripts/modules/retopo.py b/release/scripts/modules/retopo.py index e554881c87b..15c4c504b32 100644 --- a/release/scripts/modules/retopo.py +++ b/release/scripts/modules/retopo.py @@ -99,11 +99,11 @@ class Hub(object): return True for i, l_a in enumerate(self.links): - links_a = set([l.index for l in l_a.links]) + links_a = {l.index for l in l_a.links} for j in range(i): l_b = self.links[j] - links_b = set([l.index for l in l_b.links]) + links_b = {l.index for l in l_b.links} isect = links_a.intersection(links_b) if len(isect) == 2: diff --git a/release/scripts/modules/rigify/__init__.py b/release/scripts/modules/rigify/__init__.py index 519784e8507..9e59f0965e0 100644 --- a/release/scripts/modules/rigify/__init__.py +++ b/release/scripts/modules/rigify/__init__.py @@ -233,7 +233,7 @@ def generate_rig(context, obj_orig, prefix="ORG-", META_DEF=True): # leg.ik and arm.fk could not be blended. results = OrderedDict() - bone_names_pre = set([bone.name for bone in arm.bones]) + bone_names_pre = {bone.name for bone in arm.bones} for type_name, type_func in bone_typeinfos[bone_name]: # this bones definition of the current typeinfo @@ -260,7 +260,7 @@ def generate_rig(context, obj_orig, prefix="ORG-", META_DEF=True): blend_bone_list(obj, definition, result_submod[0], result_submod[1], target_bone=bone_name) - bone_names_post = set([bone.name for bone in arm.bones]) + bone_names_post = {bone.name for bone in arm.bones} # Store which bones were created from this one bone_genesis[bone_name] = list(bone_names_post - bone_names_pre) diff --git a/release/scripts/ui/properties_material.py b/release/scripts/ui/properties_material.py index 64e36a26961..a48b3b1a30a 100644 --- a/release/scripts/ui/properties_material.py +++ b/release/scripts/ui/properties_material.py @@ -56,7 +56,7 @@ class MaterialButtonsPanel(bpy.types.Panel): class MATERIAL_PT_preview(MaterialButtonsPanel): bl_label = "Preview" - COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME']) + COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def draw(self, context): self.layout.template_preview(context.material) @@ -65,7 +65,7 @@ class MATERIAL_PT_preview(MaterialButtonsPanel): class MATERIAL_PT_context_material(MaterialButtonsPanel): bl_label = "" bl_show_header = False - COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME']) + COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def poll(self, context): # An exception, dont call the parent poll func because @@ -127,7 +127,7 @@ class MATERIAL_PT_context_material(MaterialButtonsPanel): class MATERIAL_PT_shading(MaterialButtonsPanel): bl_label = "Shading" - COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME']) + COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def poll(self, context): mat = active_node_mat(context.material) @@ -166,7 +166,7 @@ class MATERIAL_PT_shading(MaterialButtonsPanel): class MATERIAL_PT_strand(MaterialButtonsPanel): bl_label = "Strand" bl_default_closed = True - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def poll(self, context): mat = context.material @@ -214,7 +214,7 @@ class MATERIAL_PT_strand(MaterialButtonsPanel): class MATERIAL_PT_physics(MaterialButtonsPanel): bl_label = "Physics" - COMPAT_ENGINES = set(['BLENDER_GAME']) + COMPAT_ENGINES = {'BLENDER_GAME'} def draw(self, context): layout = self.layout @@ -238,7 +238,7 @@ class MATERIAL_PT_physics(MaterialButtonsPanel): class MATERIAL_PT_options(MaterialButtonsPanel): bl_label = "Options" - COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME']) + COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def poll(self, context): mat = active_node_mat(context.material) @@ -284,7 +284,7 @@ class MATERIAL_PT_options(MaterialButtonsPanel): class MATERIAL_PT_shadow(MaterialButtonsPanel): bl_label = "Shadow" bl_default_closed = True - COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME']) + COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def poll(self, context): mat = active_node_mat(context.material) @@ -320,7 +320,7 @@ class MATERIAL_PT_shadow(MaterialButtonsPanel): class MATERIAL_PT_diffuse(MaterialButtonsPanel): bl_label = "Diffuse" - COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME']) + COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def poll(self, context): mat = active_node_mat(context.material) @@ -391,7 +391,7 @@ class MATERIAL_PT_diffuse(MaterialButtonsPanel): class MATERIAL_PT_specular(MaterialButtonsPanel): bl_label = "Specular" - COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME']) + COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def poll(self, context): mat = active_node_mat(context.material) @@ -461,7 +461,7 @@ class MATERIAL_PT_specular(MaterialButtonsPanel): class MATERIAL_PT_sss(MaterialButtonsPanel): bl_label = "Subsurface Scattering" bl_default_closed = True - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def poll(self, context): mat = active_node_mat(context.material) @@ -513,7 +513,7 @@ class MATERIAL_PT_sss(MaterialButtonsPanel): class MATERIAL_PT_mirror(MaterialButtonsPanel): bl_label = "Mirror" bl_default_closed = True - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def poll(self, context): mat = active_node_mat(context.material) @@ -572,7 +572,7 @@ class MATERIAL_PT_mirror(MaterialButtonsPanel): class MATERIAL_PT_transp(MaterialButtonsPanel): bl_label = "Transparency" bl_default_closed = True - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def poll(self, context): mat = active_node_mat(context.material) @@ -638,7 +638,7 @@ class MATERIAL_PT_transp(MaterialButtonsPanel): class MATERIAL_PT_halo(MaterialButtonsPanel): bl_label = "Halo" - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def poll(self, context): mat = context.material @@ -688,7 +688,7 @@ class MATERIAL_PT_halo(MaterialButtonsPanel): class MATERIAL_PT_flare(MaterialButtonsPanel): bl_label = "Flare" - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def poll(self, context): mat = context.material @@ -750,7 +750,7 @@ class VolumeButtonsPanel(bpy.types.Panel): class MATERIAL_PT_volume_density(VolumeButtonsPanel): bl_label = "Density" bl_default_closed = False - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): layout = self.layout @@ -770,7 +770,7 @@ class MATERIAL_PT_volume_density(VolumeButtonsPanel): class MATERIAL_PT_volume_shading(VolumeButtonsPanel): bl_label = "Shading" bl_default_closed = False - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): layout = self.layout @@ -798,7 +798,7 @@ class MATERIAL_PT_volume_shading(VolumeButtonsPanel): class MATERIAL_PT_volume_lighting(VolumeButtonsPanel): bl_label = "Lighting" bl_default_closed = False - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): layout = self.layout @@ -835,7 +835,7 @@ class MATERIAL_PT_volume_lighting(VolumeButtonsPanel): class MATERIAL_PT_volume_transp(VolumeButtonsPanel): bl_label = "Transparency" - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): layout = self.layout @@ -852,7 +852,7 @@ class MATERIAL_PT_volume_transp(VolumeButtonsPanel): class MATERIAL_PT_volume_integration(VolumeButtonsPanel): bl_label = "Integration" bl_default_closed = False - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): layout = self.layout diff --git a/release/scripts/ui/properties_render.py b/release/scripts/ui/properties_render.py index fbb402efaaa..ed703a0403e 100644 --- a/release/scripts/ui/properties_render.py +++ b/release/scripts/ui/properties_render.py @@ -42,7 +42,7 @@ class RenderButtonsPanel(bpy.types.Panel): class RENDER_PT_render(RenderButtonsPanel): bl_label = "Render" - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): layout = self.layout @@ -65,7 +65,7 @@ class RENDER_PT_render(RenderButtonsPanel): class RENDER_PT_layers(RenderButtonsPanel): bl_label = "Layers" bl_default_closed = True - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): layout = self.layout @@ -162,7 +162,7 @@ class RENDER_PT_layers(RenderButtonsPanel): class RENDER_PT_shading(RenderButtonsPanel): bl_label = "Shading" - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): layout = self.layout @@ -188,7 +188,7 @@ class RENDER_PT_shading(RenderButtonsPanel): class RENDER_PT_performance(RenderButtonsPanel): bl_label = "Performance" bl_default_closed = True - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): layout = self.layout @@ -232,7 +232,7 @@ class RENDER_PT_performance(RenderButtonsPanel): class RENDER_PT_post_processing(RenderButtonsPanel): bl_label = "Post Processing" bl_default_closed = True - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): layout = self.layout @@ -275,7 +275,7 @@ class RENDER_PT_post_processing(RenderButtonsPanel): class RENDER_PT_output(RenderButtonsPanel): bl_label = "Output" - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): layout = self.layout @@ -358,7 +358,7 @@ class RENDER_PT_output(RenderButtonsPanel): class RENDER_PT_encoding(RenderButtonsPanel): bl_label = "Encoding" bl_default_closed = True - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def poll(self, context): rd = context.scene.render_data @@ -427,7 +427,7 @@ class RENDER_PT_encoding(RenderButtonsPanel): class RENDER_PT_antialiasing(RenderButtonsPanel): bl_label = "Anti-Aliasing" - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw_header(self, context): rd = context.scene.render_data @@ -455,7 +455,7 @@ class RENDER_PT_antialiasing(RenderButtonsPanel): class RENDER_PT_dimensions(RenderButtonsPanel): bl_label = "Dimensions" - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): layout = self.layout @@ -504,7 +504,7 @@ class RENDER_PT_dimensions(RenderButtonsPanel): class RENDER_PT_stamp(RenderButtonsPanel): bl_label = "Stamp" bl_default_closed = True - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw_header(self, context): rd = context.scene.render_data diff --git a/release/scripts/ui/properties_scene.py b/release/scripts/ui/properties_scene.py index cce49172428..c059339c14e 100644 --- a/release/scripts/ui/properties_scene.py +++ b/release/scripts/ui/properties_scene.py @@ -33,7 +33,7 @@ class SceneButtonsPanel(bpy.types.Panel): class SCENE_PT_scene(SceneButtonsPanel): bl_label = "Scene" - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): layout = self.layout @@ -50,7 +50,7 @@ class SCENE_PT_scene(SceneButtonsPanel): class SCENE_PT_unit(SceneButtonsPanel): bl_label = "Units" - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): layout = self.layout @@ -155,7 +155,7 @@ class SCENE_PT_keying_set_paths(SceneButtonsPanel): class SCENE_PT_physics(SceneButtonsPanel): bl_label = "Gravity" - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw_header(self, context): self.layout.prop(context.scene, "use_gravity", text="") diff --git a/release/scripts/ui/properties_world.py b/release/scripts/ui/properties_world.py index 9adc8d0bad4..b23a0dffbad 100644 --- a/release/scripts/ui/properties_world.py +++ b/release/scripts/ui/properties_world.py @@ -35,7 +35,7 @@ class WorldButtonsPanel(bpy.types.Panel): class WORLD_PT_preview(WorldButtonsPanel): bl_label = "Preview" - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): self.layout.template_preview(context.world) @@ -44,7 +44,7 @@ class WORLD_PT_preview(WorldButtonsPanel): class WORLD_PT_context_world(WorldButtonsPanel): bl_label = "" bl_show_header = False - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def poll(self, context): rd = context.scene.render_data @@ -71,7 +71,7 @@ class WORLD_PT_context_world(WorldButtonsPanel): class WORLD_PT_world(WorldButtonsPanel): bl_label = "World" - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): layout = self.layout @@ -99,7 +99,7 @@ class WORLD_PT_world(WorldButtonsPanel): class WORLD_PT_mist(WorldButtonsPanel): bl_label = "Mist" - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw_header(self, context): world = context.world @@ -129,7 +129,7 @@ class WORLD_PT_mist(WorldButtonsPanel): class WORLD_PT_stars(WorldButtonsPanel): bl_label = "Stars" - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw_header(self, context): world = context.world @@ -157,7 +157,7 @@ class WORLD_PT_stars(WorldButtonsPanel): class WORLD_PT_ambient_occlusion(WorldButtonsPanel): bl_label = "Ambient Occlusion" - COMPAT_ENGINES = set(['BLENDER_RENDER']) + COMPAT_ENGINES = {'BLENDER_RENDER'} def draw_header(self, context): world = context.world