|
@@ -179,10 +179,16 @@ class MeshResourceExporter:
|
|
if not isinstance(modifier, bpy.types.ArmatureModifier):
|
|
if not isinstance(modifier, bpy.types.ArmatureModifier):
|
|
modifier.show_render = False
|
|
modifier.show_render = False
|
|
|
|
|
|
|
|
+ # set shape key to basis key which would have index 0
|
|
|
|
+ self.object.show_only_shape_key = True
|
|
|
|
+ self.object.active_shape_key_index = 0
|
|
|
|
+
|
|
mesh = self.object.to_mesh(bpy.context.scene,
|
|
mesh = self.object.to_mesh(bpy.context.scene,
|
|
True,
|
|
True,
|
|
"RENDER")
|
|
"RENDER")
|
|
|
|
|
|
|
|
+ self.object.show_only_shape_key = False
|
|
|
|
+
|
|
# if the original mesh has an object link material,
|
|
# if the original mesh has an object link material,
|
|
# the new created mesh would use it as data link material,
|
|
# the new created mesh would use it as data link material,
|
|
# seems a bug of Blender,
|
|
# seems a bug of Blender,
|
|
@@ -292,6 +298,8 @@ class MeshResourceExporter:
|
|
"RENDER"
|
|
"RENDER"
|
|
)
|
|
)
|
|
|
|
|
|
|
|
+ self.object.show_only_shape_key = False
|
|
|
|
+
|
|
triangulate_mesh(shape_key_mesh)
|
|
triangulate_mesh(shape_key_mesh)
|
|
|
|
|
|
if self.has_tangents:
|
|
if self.has_tangents:
|