diff --git a/io_scene_dae/export_dae.py b/io_scene_dae/export_dae.py index 65c040e..157ef5c 100644 --- a/io_scene_dae/export_dae.py +++ b/io_scene_dae/export_dae.py @@ -1148,7 +1148,7 @@ class DaeExporter: boneid = self.new_id("bone") boneidx = si["bone_count"] si["bone_count"] += 1 - bonesid = + "{}-{}".format(si["id"], boneidx) + bonesid = "{}-{}".format(si["id"], boneidx) if (bone.name in self.used_bones): if (self.config["use_anim_action_all"]): self.operator.report( @@ -1232,25 +1232,25 @@ class DaeExporter: self.writel(S_CAMS, 3, "") if (camera.type == "PERSP"): self.writel(S_CAMS, 4, "") - self.writel(S_CAMS, 5, " {} ".format( + self.writel(S_CAMS, 5, "{}".format( math.degrees(camera.angle))) # I think? - self.writel(S_CAMS, 5, " {} ".format( + self.writel(S_CAMS, 5, "{}".format( self.scene.render.resolution_x / self.scene.render.resolution_y)) - self.writel(S_CAMS, 5, " {} ".format( + self.writel(S_CAMS, 5, "{}".format( camera.clip_start)) - self.writel(S_CAMS, 5, " {} ".format(camera.clip_end)) + self.writel(S_CAMS, 5, "{}".format(camera.clip_end)) self.writel(S_CAMS, 4, "") else: self.writel(S_CAMS, 4, "") - self.writel(S_CAMS, 5, " {} ".format( + self.writel(S_CAMS, 5, "{}".format( camera.ortho_scale * 0.5)) # I think? - self.writel(S_CAMS, 5, " {} ".format( + self.writel(S_CAMS, 5, "{}".format( self.scene.render.resolution_x / self.scene.render.resolution_y)) - self.writel(S_CAMS, 5, " {} ".format( + self.writel(S_CAMS, 5, "{}".format( camera.clip_start)) - self.writel(S_CAMS, 5, " {} ".format(camera.clip_end)) + self.writel(S_CAMS, 5, "{}".format(camera.clip_end)) self.writel(S_CAMS, 4, "") self.writel(S_CAMS, 3, "") @@ -1583,11 +1583,11 @@ class DaeExporter: self.writel(S_ASSET, 2, " Anonymous ") # Who made Collada, the FBI ? self.writel( - S_ASSET, 2, " Collada Exporter for Blender 2.6+, " - "by Juan Linietsky (juan@codenix.com) ") + S_ASSET, 2, "Collada Exporter for Blender 2.6+, " + "by Juan Linietsky (juan@codenix.com)") self.writel(S_ASSET, 1, "") self.writel(S_ASSET, 1, "{}".format( - time.strftime("%Y-%m-%dT%H:%M:%SZ "))) + time.strftime("%Y-%m-%dT%H:%M:%SZ"))) self.writel(S_ASSET, 1, "{}".format( time.strftime("%Y-%m-%dT%H:%M:%SZ"))) self.writel(S_ASSET, 1, "")