From 11cd6829047540f0763552f25ac7b5c9ee51eb74 Mon Sep 17 00:00:00 2001 From: Dorian Lux Date: Wed, 25 Jul 2018 12:36:07 +0200 Subject: [PATCH] new scrach 3 projects can be converted once again --- src/scratchtocatrobat/scratch/scratch3.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/scratchtocatrobat/scratch/scratch3.py b/src/scratchtocatrobat/scratch/scratch3.py index dcfc646c..f4e8270f 100644 --- a/src/scratchtocatrobat/scratch/scratch3.py +++ b/src/scratchtocatrobat/scratch/scratch3.py @@ -122,7 +122,10 @@ def parse_sprite(self, sprite): s2Costume = {} s2Costume["costumeName"] = s3Costume["name"] s2Costume["baseLayerID"] = s3Costume["assetId"] - s2Costume["baseLayerMD5"] = s3Costume["md5ext"] + if "md5ext" in s3Costume: + s2Costume["baseLayerMD5"] = s3Costume["md5ext"] + else: + s2Costume["baseLayerMD5"] = s3Costume["assetId"] + "." + s3Costume["dataFormat"] s2Costume["rotationCenterX"]= s3Costume["rotationCenterX"] s2Costume["rotationCenterY"]= s3Costume["rotationCenterX"] if "bitmapResolution" in s3Costume: