X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=blender%2Fio_mspgl%2Fproperties.py;fp=blender%2Fio_mspgl%2Fproperties.py;h=6e1df6416b974ecb731d47d65c7fb7c53814a7b8;hp=b21f45a2bfdc103ec2d130174cbb5fe87e54ba8a;hb=2bf43ec60f148fe2c9a4ed2a322118860be3b25c;hpb=9eb9f592d37e9a1e05c2ff70887a1c5f26b98864 diff --git a/blender/io_mspgl/properties.py b/blender/io_mspgl/properties.py index b21f45a2..6e1df641 100644 --- a/blender/io_mspgl/properties.py +++ b/blender/io_mspgl/properties.py @@ -43,13 +43,16 @@ class MspGLMeshProperties(bpy.types.Panel): mesh = context.active_object.data self.layout.prop(mesh, "smoothing") - self.layout.prop(mesh, "use_strips") + self.layout.prop(mesh, "use_patches") + if not mesh.use_patches: + self.layout.prop(mesh, "use_strips") self.layout.separator() col = self.layout.column() col.label(text="Data selection") - col.prop(mesh, "use_lines") + if not mesh.use_patches: + col.prop(mesh, "use_lines") col.prop(mesh, "vertex_groups") col.prop(mesh, "max_groups_per_vertex") @@ -244,6 +247,7 @@ def register_properties(): ("MSPGL", "MspGL", "Compute vertex normals internally"))) bpy.types.Mesh.use_lines = bpy.props.BoolProperty(name="Include lines", description="Include edges without faces as lines", default=False) bpy.types.Mesh.use_strips = bpy.props.BoolProperty(name="Use strips", description="Combine the mesh's triangles into triangle strips", default=True) + bpy.types.Mesh.use_patches = bpy.props.BoolProperty(name="Export as patches", description="Export faces as patches, suitable for tessellation", default=False) bpy.types.Mesh.vertex_groups = bpy.props.BoolProperty(name="Vertex groups", description="Include vertex groups and weights", default=False) bpy.types.Mesh.max_groups_per_vertex = bpy.props.IntProperty(name="Max groups", description="Maximum amount of groups per vertex", min=1, max=4, default=2) bpy.types.Mesh.use_uv = bpy.props.EnumProperty(name="Use UV", description="Use UV coordinates", default="UNIT0",