return index
def write(self, path):
+ bl.message("open: "+path)
io=bl.Writer(path, 'cp932')
self.__write_header(io)
self.__write_scene(io)
def __execute(filename, scene, scale=10, apply_modifier=False):
- if not scene.objects.active:
+ if scene.objects.active:
+ exporter=MqoExporter(scale, apply_modifier)
+ exporter.setup(scene)
+ exporter.write(filename)
+ else:
bl.message('no active object !')
- return
-
- exporter=MqoExporter(scale, apply_modifier)
- exporter.setup(scene)
- exporter.write(filename)
if isBlender24():