forked from bartvdbraak/blender
2.5
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:
parent
a1eef5bb4d
commit
65cb64665a
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user