Compare commits

...

3 Commits

Author SHA1 Message Date
bee56e75a9 Fix undefined unusedItems in CS6 2017-02-13 19:59:49 +07:00
7ba00a7e9a undefined unusedItems in CS6 2017-02-13 19:51:49 +07:00
545eacdaf8 Added tag versions/1.3.2 for changeset f4c5c42402d6 2017-02-13 18:09:58 +07:00
4 changed files with 22 additions and 6 deletions

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 55c438c941e894f25bb2b0527ee72f7c
timeCreated: 1486989506
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,3 +1,9 @@
-------------------
-- Version 1.3.3 --
-------------------
Fix undefined unusedItems in CS6
-------------------
-- Version 1.3.2 --
-------------------

View File

@@ -297,12 +297,14 @@
ftdoc.remove_unused_items = function (doc) {
ft.type_assert(doc, Document);
var unused_items = doc.library.unusedItems;
ft.array_reverse_foreach(unused_items, function(item) {
if (ft.verbose_mode) {
ft.trace_fmt("Remove unused item: {0}", item.name);
}
doc.library.deleteItem(item.name);
});
if (unused_items && unused_items !== undefined) {
ft.array_reverse_foreach(unused_items, function(item) {
if (ft.verbose_mode) {
ft.trace_fmt("Remove unused item: {0}", item.name);
}
doc.library.deleteItem(item.name);
});
}
};
ftdoc.unlock_all_timelines = function (doc) {