X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=blender%2Fio_mspmath%2Fproperties.py;fp=blender%2Fio_mspmath%2Fproperties.py;h=b296e5a2b9c62eeb9503fa6e35b817e4d70fe16a;hb=1df02cf6bf187dfc8f0afe9223dd0f4cbb90b559;hp=0000000000000000000000000000000000000000;hpb=0aaef0b1fd412875137937f9e58ccb480c304be8;p=libs%2Fmath.git diff --git a/blender/io_mspmath/properties.py b/blender/io_mspmath/properties.py new file mode 100644 index 0000000..b296e5a --- /dev/null +++ b/blender/io_mspmath/properties.py @@ -0,0 +1,19 @@ +import bpy + +class MspMathObjectProperties(bpy.types.Panel): + bl_idname = "OBJECT_PT_mspgl_properties" + bl_label = "MspGL properties" + bl_space_type = "PROPERTIES" + bl_region_type = "WINDOW" + bl_context = "object" + + def draw(self, context): + obj = context.active_object + + self.layout.prop(obj, "shape_type"); + +def register_properties(): + bpy.types.Object.shape_type = bpy.props.EnumProperty(name="Shape type", description="Type of shape to use for exporting this object", default="AUTO", + items=(("AUTO", "Automatic", "Automatic"), + ("BOX", "Box", "Box"), + ("SPHERE", "Sphere", "Sphere")))