Enable fast open for files which support it
This commit is contained in:
parent
f0a3930ed7
commit
17fe5299dc
|
|
@ -4449,6 +4449,7 @@ async function _open(path, returnJson = false) {
|
|||
|
||||
const objectOffsets = {};
|
||||
const frameIDs = []
|
||||
if (file.version < "1.7.5") {
|
||||
for (let action of file.actions) {
|
||||
if (!(action.name in actions)) {
|
||||
await messageDialog(
|
||||
|
|
@ -4541,6 +4542,14 @@ async function _open(path, returnJson = false) {
|
|||
await actions[action.name].execute(action.action);
|
||||
undoStack.push(action);
|
||||
}
|
||||
} else {
|
||||
// disabled for now
|
||||
// for (let action of file.actions) {
|
||||
// undoStack.push(action)
|
||||
// }
|
||||
root = GraphicsObject.fromJSON(file.json)
|
||||
context.objectStack = [root]
|
||||
}
|
||||
|
||||
lastSaveIndex = undoStack.length;
|
||||
filePath = path;
|
||||
|
|
|
|||
Loading…
Reference in New Issue