]> git.tdb.fi Git - libs/math.git/blob - blender/io_mspmath/properties.py
Fix the name of the properties panel
[libs/math.git] / blender / io_mspmath / properties.py
1 import bpy
2
3 class MspMathObjectProperties(bpy.types.Panel):
4         bl_idname = "OBJECT_PT_mspmath_properties"
5         bl_label = "Msp math properties"
6         bl_space_type = "PROPERTIES"
7         bl_region_type = "WINDOW"
8         bl_context = "object"
9
10         def draw(self, context):
11                 obj = context.active_object
12
13                 self.layout.prop(obj, "shape_type");
14
15 def register_properties():
16         bpy.types.Object.shape_type = bpy.props.EnumProperty(name="Shape type", description="Type of shape to use for exporting this object", default="AUTO",
17                 items=(("AUTO", "Automatic", "Automatic"),
18                         ("BOX", "Box", "Box"),
19                         ("SPHERE", "Sphere", "Sphere")))