mirror of
https://github.com/BlackMATov/unity-flash-tools.git
synced 2025-12-15 04:25:27 +07:00
Shape tween warning
This commit is contained in:
BIN
Assets/DevTests/Animations/AlphaTests/Tests/charexp.fla
Normal file
BIN
Assets/DevTests/Animations/AlphaTests/Tests/charexp.fla
Normal file
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 12654680c0cae45d3a44f4fc666262bd
|
||||
timeCreated: 1494492625
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -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
|
||||
|
||||
@@ -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]");
|
||||
})();
|
||||
})();
|
||||
Reference in New Issue
Block a user