|
|
@ -273,18 +273,9 @@ class Exporter: |
|
|
|
self.report.msg("No material(s) on the ObData, so no drawables", indent=1) |
|
|
|
self.report.msg("No material(s) on the ObData, so no drawables", indent=1) |
|
|
|
|
|
|
|
|
|
|
|
def _export_font_blobj(self, so, bo): |
|
|
|
def _export_font_blobj(self, so, bo): |
|
|
|
self.report.msg("Converting font to mesh for export") |
|
|
|
self.animation.convert_object_animations(bo, so) |
|
|
|
bpy.ops.object.select_all(action='DESELECT') |
|
|
|
with utils.temporary_mesh_object(bo) as meshObj: |
|
|
|
bpy.context.scene.objects.active = bo |
|
|
|
self._export_mesh_blobj(so, meshObj) |
|
|
|
bo.select = True |
|
|
|
|
|
|
|
convertible = bpy.ops.object.convert.poll() |
|
|
|
|
|
|
|
if convertible: |
|
|
|
|
|
|
|
bpy.ops.object.convert(target='MESH', keep_original= True) |
|
|
|
|
|
|
|
convertedFont = bpy.context.active_object |
|
|
|
|
|
|
|
self._export_mesh_blobj(so, convertedFont) |
|
|
|
|
|
|
|
bpy.ops.object.delete() |
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
self.report.msg("not convertible, skipping...") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _export_referenced_node_trees(self): |
|
|
|
def _export_referenced_node_trees(self): |
|
|
|
self.report.progress_advance() |
|
|
|
self.report.progress_advance() |
|
|
|