Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2009-07-31 12:07:41 +0400
committerTon Roosendaal <ton@blender.org>2009-07-31 12:07:41 +0400
commit65cb64665ac3932b392012b9d12e4310bd50ebe4 (patch)
treef61bc9c3982a890d464f00b012969e1d596e432e /release
parenta1eef5bb4d1ac64cfde0a5055a889116ee855b7f (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.py6
-rw-r--r--release/ui/buttons_scene.py6
-rw-r--r--release/ui/buttons_world.py6
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"