Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2017-01-17 14:23:24 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2017-01-17 14:23:24 +0300
commit18099be5f837a3141f7150fdc6c068e297b7da47 (patch)
tree80178c51155b4bc4900ecb20ab310b36ebc36f8f /io_scene_fbx/__init__.py
parente264efb7e8424d300d49fe99d87f9f279d40fe09 (diff)
Fix T50453: Add option to FBX export to apply render or preview modifiers.
Diffstat (limited to 'io_scene_fbx/__init__.py')
-rw-r--r--io_scene_fbx/__init__.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py
index 661955bc..e1872596 100644
--- a/io_scene_fbx/__init__.py
+++ b/io_scene_fbx/__init__.py
@@ -21,7 +21,7 @@
bl_info = {
"name": "FBX format",
"author": "Campbell Barton, Bastien Montagne, Jens Restemeier",
- "version": (3, 7, 7),
+ "version": (3, 7, 8),
"blender": (2, 77, 0),
"location": "File > Import-Export",
"description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
@@ -314,6 +314,11 @@ class ExportFBX(bpy.types.Operator, ExportHelper, IOFBXOrientationHelper):
"WARNING: prevents exporting shape keys",
default=True,
)
+ use_mesh_modifiers_render = BoolProperty(
+ name="Use Modifiers Render Setting",
+ description="Use render settings when applying modifiers to mesh objects",
+ default=True,
+ )
mesh_smooth_type = EnumProperty(
name="Smoothing",
items=(('OFF', "Normals Only", "Export only normals instead of writing edge or face smoothing data"),
@@ -518,6 +523,9 @@ class ExportFBX(bpy.types.Operator, ExportHelper, IOFBXOrientationHelper):
sub.prop(self, "use_batch_own_dir", text="", icon='NEWFOLDER')
elif self.ui_tab == 'GEOMETRY':
layout.prop(self, "use_mesh_modifiers")
+ sub = layout.row()
+ sub.enabled = self.use_mesh_modifiers
+ sub.prop(self, "use_mesh_modifiers_render")
layout.prop(self, "mesh_smooth_type")
layout.prop(self, "use_mesh_edges")
sub = layout.row()