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:
Diffstat (limited to 'io_export_directx_x.py')
-rw-r--r--io_export_directx_x.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/io_export_directx_x.py b/io_export_directx_x.py
index b204b4ea..e51ec37d 100644
--- a/io_export_directx_x.py
+++ b/io_export_directx_x.py
@@ -274,11 +274,11 @@ def WriteObjects(Config, ObjectList):
Object2 = Object.copy()
for Modifier in [Modifier for Modifier in Object2.modifiers if Modifier.type == "ARMATURE"]:
Object2.modifiers.remove(Modifier)
- Mesh = Object2.create_mesh(bpy.context.scene, True, "PREVIEW")
+ Mesh = Object2.to_mesh(bpy.context.scene, True, "PREVIEW")
else:
- Mesh = Object.create_mesh(bpy.context.scene, True, "PREVIEW")
+ Mesh = Object.to_mesh(bpy.context.scene, True, "PREVIEW")
else:
- Mesh = Object.create_mesh(bpy.context.scene, False, "PREVIEW")
+ Mesh = Object.to_mesh(bpy.context.scene, False, "PREVIEW")
if Config.Verbose:
print(" Done")
print(" Writing Mesh...")