forked from bartvdbraak/blender
fix [#24804] filetring of files doesnt work for import/export
This commit is contained in:
parent
7358a95c8a
commit
506e692263
@ -33,6 +33,7 @@ class ExportPLY(bpy.types.Operator, ExportHelper):
|
|||||||
bl_label = "Export PLY"
|
bl_label = "Export PLY"
|
||||||
|
|
||||||
filename_ext = ".ply"
|
filename_ext = ".ply"
|
||||||
|
filter_glob = StringProperty(default="*.ply", options={'HIDDEN'})
|
||||||
|
|
||||||
use_modifiers = BoolProperty(name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default=True)
|
use_modifiers = BoolProperty(name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default=True)
|
||||||
use_normals = BoolProperty(name="Normals", description="Export Normals for smooth and hard shaded faces", default=True)
|
use_normals = BoolProperty(name="Normals", description="Export Normals for smooth and hard shaded faces", default=True)
|
||||||
|
@ -53,6 +53,7 @@ class Export3DS(bpy.types.Operator, ExportHelper):
|
|||||||
bl_label = 'Export 3DS'
|
bl_label = 'Export 3DS'
|
||||||
|
|
||||||
filename_ext = ".3ds"
|
filename_ext = ".3ds"
|
||||||
|
filter_glob = StringProperty(default="*.3ds", options={'HIDDEN'})
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
import io_scene_3ds.export_3ds
|
import io_scene_3ds.export_3ds
|
||||||
|
@ -36,6 +36,7 @@ class ExportFBX(bpy.types.Operator, ExportHelper):
|
|||||||
bl_label = "Export FBX"
|
bl_label = "Export FBX"
|
||||||
|
|
||||||
filename_ext = ".fbx"
|
filename_ext = ".fbx"
|
||||||
|
filter_glob = StringProperty(default="*.fbx", options={'HIDDEN'})
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
@ -64,8 +64,9 @@ class ExportOBJ(bpy.types.Operator, ExportHelper):
|
|||||||
|
|
||||||
bl_idname = "export_scene.obj"
|
bl_idname = "export_scene.obj"
|
||||||
bl_label = 'Export OBJ'
|
bl_label = 'Export OBJ'
|
||||||
|
|
||||||
filename_ext = ".obj"
|
filename_ext = ".obj"
|
||||||
|
filter_glob = StringProperty(default="*.obj;*.mtl", options={'HIDDEN'})
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
@ -34,6 +34,7 @@ class ExportX3D(bpy.types.Operator, ExportHelper):
|
|||||||
bl_label = 'Export X3D'
|
bl_label = 'Export X3D'
|
||||||
|
|
||||||
filename_ext = ".x3d"
|
filename_ext = ".x3d"
|
||||||
|
filter_glob = StringProperty(default="*.x3d", options={'HIDDEN'})
|
||||||
|
|
||||||
use_apply_modifiers = BoolProperty(name="Apply Modifiers", description="Use transformed mesh data from each object", default=True)
|
use_apply_modifiers = BoolProperty(name="Apply Modifiers", description="Use transformed mesh data from each object", default=True)
|
||||||
use_triangulate = BoolProperty(name="Triangulate", description="Triangulate quads.", default=False)
|
use_triangulate = BoolProperty(name="Triangulate", description="Triangulate quads.", default=False)
|
||||||
|
@ -63,6 +63,7 @@ class ExportMDD(bpy.types.Operator, ExportHelper):
|
|||||||
bl_label = "Export MDD"
|
bl_label = "Export MDD"
|
||||||
|
|
||||||
filename_ext = ".mdd"
|
filename_ext = ".mdd"
|
||||||
|
filter_glob = StringProperty(default="*.mdd", options={'HIDDEN'})
|
||||||
|
|
||||||
# get first scene to get min and max properties for frames, fps
|
# get first scene to get min and max properties for frames, fps
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user