diff --git a/Assets/DevTests/Animations/AlphaTests/Tests/charexp.fla b/Assets/DevTests/Animations/AlphaTests/Tests/charexp.fla new file mode 100644 index 0000000..7bb62a6 Binary files /dev/null and b/Assets/DevTests/Animations/AlphaTests/Tests/charexp.fla differ diff --git a/Assets/DevTests/Animations/AlphaTests/Tests/charexp.fla.meta b/Assets/DevTests/Animations/AlphaTests/Tests/charexp.fla.meta new file mode 100644 index 0000000..30e2b6e --- /dev/null +++ b/Assets/DevTests/Animations/AlphaTests/Tests/charexp.fla.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 12654680c0cae45d3a44f4fc666262bd +timeCreated: 1494492625 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/DevTests/Animations/FeatureTests/5.1_rasterization.fla b/Assets/DevTests/Animations/FeatureTests/5.1_rasterization.fla index 2f5fa01..7eca9cd 100644 Binary files a/Assets/DevTests/Animations/FeatureTests/5.1_rasterization.fla and b/Assets/DevTests/Animations/FeatureTests/5.1_rasterization.fla differ diff --git a/Assets/FlashTools/Docs/CHANGELOG.md b/Assets/FlashTools/Docs/CHANGELOG.md index d1db2a3..0e9eb31 100644 --- a/Assets/FlashTools/Docs/CHANGELOG.md +++ b/Assets/FlashTools/Docs/CHANGELOG.md @@ -2,6 +2,7 @@ * Fix shape groups in tweens problems * Fix locked elements problem * Fix optimizator bitmap trim problems +* Add shape tween warning ###### Version 1.3.7 * Fix multiple import diff --git a/Assets/FlashTools/FlashExport/FlashExport.jsfl b/Assets/FlashTools/FlashExport/FlashExport.jsfl index b7186e3..65645e3 100644 --- a/Assets/FlashTools/FlashExport/FlashExport.jsfl +++ b/Assets/FlashTools/FlashExport/FlashExport.jsfl @@ -490,7 +490,7 @@ ftdoc.export_swf = function (doc) { ft.type_assert(doc, Document); - ft.trace_fmt("!!!Document!!!: '{0}' conversion complete!", doc.name); + ft.trace_fmt("[Document] '{0}' conversion complete!", doc.name); doc.exportSWF(ftdoc.get_export_swf_path(doc)); }; @@ -917,6 +917,10 @@ timeline.setSelectedLayers(layer_index); ft.array_foreach(layer.frames, function (frame, frame_index) { if ( ft.is_function(frame.convertToFrameByFrameAnimation) ) { + ft.trace_fmt( + "[Warning] Timeline: '{0}'\n" + + "- Shape tween strongly not recommended because it rasterized to frame-by-frame bitmap sequence.", + timeline.name); frame.convertToFrameByFrameAnimation(); } else { throw "Animation uses shape tweens. To export this animation you should use Adobe Animate CC or higher!"; @@ -954,13 +958,13 @@ (function () { ft.clear_output(); fl.showIdleMessage(false); - ft.trace("- Start -"); + ft.trace("[Start]"); ft.array_foreach(fl.documents, function (doc) { try { - ft.trace_fmt("!!!Document!!!: '{0}'", doc.name); + ft.trace_fmt("[Document] '{0}' conversion started...", doc.name); ftdoc.prepare(doc); } catch (e) { - ft.trace_fmt("!!!Document!!!: '{0}' conversion error: '{1}'", doc.name, e); + ft.trace_fmt("[Document] '{0}' conversion error: '{1}'", doc.name, e); } }); ft.profile_function(function () { @@ -970,6 +974,6 @@ } }); }, "Revert documents"); - ft.trace("- Finish -"); + ft.trace("[Finish]"); })(); })(); \ No newline at end of file diff --git a/ProjectStuff/FlashTools.org b/ProjectStuff/FlashTools.org index 7a919ff..15aa127 100644 --- a/ProjectStuff/FlashTools.org +++ b/ProjectStuff/FlashTools.org @@ -51,10 +51,12 @@ https://gist.github.com/talecrafter/111ea3345911bd238f4998b4d5a04bf3 *** Общее **** TODO Написать гайд по качеству выгружаемых анимаций *** Улучшения -**** TODO Ворнинг на shape-tween +**** DONE Ворнинг на shape-tween **** TODO Интеграция с автобилдами **** TODO Избавиться от условия на _ExternalAlpha **** TODO Добавить возможность брать bounds у клипа +**** TODO Не реимпортить на каждый чих анимацию, хранить хэш +dipyalov: фишка в том, что swf обновился, но и собранные ассеты-то тоже обновились **** DONE Элемент может быть залокан (element.locked) **** DONE Возможно не стоит преобразовывать группы в символы Таки стоит, но с рекурсивным выносом в отдельные символы и последующей их обработкой