error for vector graphics

This commit is contained in:
2016-09-04 16:52:53 +07:00
parent 007d46685e
commit 7b7ca0a064

View File

@@ -112,6 +112,10 @@ namespace FlashTools.Internal.SwfTools.SwfTypes {
if ( fill_style.Type.IsBitmapType ) {
fill_style.BitmapId = reader.ReadUInt16();
fill_style.BitmapMatrix = SwfMatrix.Read(reader, true);
} else {
throw new UnityException(
"imported .swf file contains vector graphics. " +
"You should use Tools/FlashExport.jsfl script for prepare .fla file");
}
return fill_style;
}