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>2015-08-05 22:19:21 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-08-05 22:22:43 +0300
commit0015dd2308be82151efc354e78d608f4108aeb14 (patch)
treeca31b399b3e8a1e0d22af3d7786e45723e777d77 /io_scene_fbx
parent6a8229fceb72839b3da168c3fdbe9ca57bdd3722 (diff)
Fix T45677: Explicitely ignore dupli instances of armatures, this is not supported currently.
Doubt to implement this any time soon, armatures and duplis are both complex area, if you combine them together you get a Gordian knot (and have no right to cut it!). Also, this commit fixes a stupid mistake - dupli objects types were not checked at all before...
Diffstat (limited to 'io_scene_fbx')
-rw-r--r--io_scene_fbx/__init__.py4
-rw-r--r--io_scene_fbx/export_fbx_bin.py3
2 files changed, 5 insertions, 2 deletions
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py
index 243c9a2e..5e3f93a5 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, 5, 2),
+ "version": (3, 5, 3),
"blender": (2, 74, 0),
"location": "File > Import-Export",
"description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
@@ -294,7 +294,7 @@ class ExportFBX(bpy.types.Operator, ExportHelper, IOFBXOrientationHelper):
items=(('EMPTY', "Empty", ""),
('CAMERA', "Camera", ""),
('LAMP', "Lamp", ""),
- ('ARMATURE', "Armature", ""),
+ ('ARMATURE', "Armature", "WARNING: not supported in dupli/group instances"),
('MESH', "Mesh", ""),
('OTHER', "Other", "Other geometry types, like curve, metaball, etc. (converted to meshes)"),
),
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py
index 46415b2f..58cfea1b 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -2097,6 +2097,7 @@ def fbx_data_from_scene(scene, settings):
Do some pre-processing over scene's data...
"""
objtypes = settings.object_types
+ dp_objtypes = objtypes - {'ARMATURE'} # Armatures are not supported as dupli instances currently...
perfmon = PerfMon()
perfmon.level_up()
@@ -2115,6 +2116,8 @@ def fbx_data_from_scene(scene, settings):
# Duplis...
ob_obj.dupli_list_create(scene, 'RENDER')
for dp_obj in ob_obj.dupli_list:
+ if dp_obj.type not in dp_objtypes:
+ continue
objects[dp_obj] = None
ob_obj.dupli_list_clear()