Check for old py in UI scripts. Temp fix that'll go when the move
to Py 3.1 is definite! :)
This commit is contained in:
Ton Roosendaal 2009-07-31 08:07:41 +00:00
parent a1eef5bb4d
commit 65cb64665a
3 changed files with 18 additions and 0 deletions

@ -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"

@ -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"

@ -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"