Shape tween warning

This commit is contained in:
2017-05-15 04:21:57 +07:00
parent 8ded077428
commit d591379acc
6 changed files with 21 additions and 6 deletions

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 12654680c0cae45d3a44f4fc666262bd
timeCreated: 1494492625
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -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

View File

@@ -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]");
})();
})();