use python3 syntax for defining a set.
authorCampbell Barton <ideasman42@gmail.com>
Sun, 13 Dec 2009 16:20:18 +0000 (16:20 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 13 Dec 2009 16:20:18 +0000 (16:20 +0000)
release/scripts/io/engine_render_pov.py
release/scripts/io/netrender/ui.py
release/scripts/modules/retopo.py
release/scripts/modules/rigify/__init__.py
release/scripts/ui/properties_material.py
release/scripts/ui/properties_render.py
release/scripts/ui/properties_scene.py
release/scripts/ui/properties_world.py

index d5f02fa3b6aa09ecb9a365124e46029bdba9bd23..aa8fb29756a8702f967ac999fcda784c29d1e6bc 100644 (file)
@@ -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
index fd9ce0fcc32bb672f739758f8552627391a3e2a2..ab3844d5597966e7d1d06750f4a878b585f2496b 100644 (file)
@@ -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
index e554881c87be4f7ea892a93be41dfc0d64f6158c..15c4c504b324e527084f0f222843d32613232cb5 100644 (file)
@@ -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:
index 519784e850702377c3dc3f948796343ee7c89d35..9e59f0965e0f8346667c32f9a9e1622d572c70db 100644 (file)
@@ -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)
index 64e36a26961838223afb93eb706e4685fd9eafa1..a48b3b1a30a8b997916ec1f45cf9f6c3292552dd 100644 (file)
@@ -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
index fbb402efaaa34cc20310957a7e0c986880ae347d..ed703a0403e0a64b32cb12a67ef63e66ea80010f 100644 (file)
@@ -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
index cce49172428b9abc1ca358ee804575515d24a7c7..c059339c14e123e93c3a63023425f7360d50299d 100644 (file)
@@ -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="")
index 9adc8d0bad48b2812a7e411bef31aca04f8c5b7a..b23a0dffbad8954718a76184ef3d78cc09b59f94 100644 (file)
@@ -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