Skip to content

Commit

Permalink
[fix] Blender: Added types into seperate file for readability.
Browse files Browse the repository at this point in the history
  • Loading branch information
hhirsch committed Oct 23, 2014
1 parent 35cfeaa commit 0849a45
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions tools/blender/blenderToXmlExport/glportalobjectpanel.py
@@ -1,32 +1,6 @@
import bpy
from bpy.props import *

types = [
("none" ,"None" , "No special property"),
("wall" ,"Wall" , "Wall"),
("trigger" , "Trigger" , "trigger")
]

triggerTypes = [
("none" ,"None" , "No special property"),
("win" , "Trigger Win" , "Area triggers win"),
("death" , "Trigger Death" , "Area triggers death"),
("radiation" , "Trigger Radiation" , "Area triggers rad"),
("portable" , "Portable" , "Set Wall Portable")
]

def setTypes():
bpy.types.Object.types = EnumProperty(
items = types,
name = "type")

def setTriggerTypes():
bpy.types.Object.triggerTypes = EnumProperty(
items = triggerTypes,
name = "triggerType")

setTypes()
setTriggerTypes();
from .types import *

class GlPortalObjectPanel(bpy.types.Panel):
"""GlPortal panel in the toolbar"""
Expand Down

0 comments on commit 0849a45

Please sign in to comment.