diff options
author | Ton Roosendaal <ton@blender.org> | 2009-07-31 12:07:41 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-07-31 12:07:41 +0400 |
commit | 65cb64665ac3932b392012b9d12e4310bd50ebe4 (patch) | |
tree | f61bc9c3982a890d464f00b012969e1d596e432e /release | |
parent | a1eef5bb4d1ac64cfde0a5055a889116ee855b7f (diff) |
2.5
Check for old py in UI scripts. Temp fix that'll go when the move
to Py 3.1 is definite! :)
Diffstat (limited to 'release')
-rw-r--r-- | release/ui/buttons_material.py | 6 | ||||
-rw-r--r-- | release/ui/buttons_scene.py | 6 | ||||
-rw-r--r-- | release/ui/buttons_world.py | 6 |
3 files changed, 18 insertions, 0 deletions
diff --git a/release/ui/buttons_material.py b/release/ui/buttons_material.py index 8c977567324..c04fbd7e1da 100644 --- a/release/ui/buttons_material.py +++ b/release/ui/buttons_material.py @@ -1,6 +1,12 @@ import bpy +# If python version is less than 2.4, try to get set stuff from module +try: + set +except: + from sets import Set as set + class MaterialButtonsPanel(bpy.types.Panel): __space_type__ = "BUTTONS_WINDOW" __region_type__ = "WINDOW" diff --git a/release/ui/buttons_scene.py b/release/ui/buttons_scene.py index d34307d0291..f9ca02d2b4b 100644 --- a/release/ui/buttons_scene.py +++ b/release/ui/buttons_scene.py @@ -1,6 +1,12 @@ import bpy +# If python version is less than 2.4, try to get set stuff from module +try: + set +except: + from sets import Set as set + class RenderButtonsPanel(bpy.types.Panel): __space_type__ = "BUTTONS_WINDOW" __region_type__ = "WINDOW" diff --git a/release/ui/buttons_world.py b/release/ui/buttons_world.py index 62c720d09d1..e44d7102511 100644 --- a/release/ui/buttons_world.py +++ b/release/ui/buttons_world.py @@ -1,6 +1,12 @@ import bpy +# If python version is less than 2.4, try to get set stuff from module +try: + set +except: + from sets import Set as set + class WorldButtonsPanel(bpy.types.Panel): __space_type__ = "BUTTONS_WINDOW" __region_type__ = "WINDOW" |