diff --git a/editor/assets/primitives.fbx.meta b/editor/assets/primitives.fbx.meta index 35fb987c27..478631f9f4 100644 --- a/editor/assets/primitives.fbx.meta +++ b/editor/assets/primitives.fbx.meta @@ -1,5 +1,5 @@ { - "ver": "2.0.13", + "ver": "2.0.14", "importer": "fbx", "imported": true, "uuid": "1263d74c-8167-4928-91a6-4e2672411f47", diff --git a/editor/inspector/components/batched-skinning-model.js b/editor/inspector/components/batched-skinning-model.js index 85b15f0fa5..2f5559a0cf 100644 --- a/editor/inspector/components/batched-skinning-model.js +++ b/editor/inspector/components/batched-skinning-model.js @@ -20,6 +20,8 @@ exports.ready = function () { $prop.appendChild($button); $button.addEventListener('confirm', () => { + Editor.Message.send('scene', 'snapshot'); + const uuids = this.dump.value.uuid.values || [this.dump.value.uuid.value]; uuids.forEach((uuid) => { diff --git a/editor/inspector/components/particle-system-2d.js b/editor/inspector/components/particle-system-2d.js index 057b6bc2b4..2afa621ece 100644 --- a/editor/inspector/components/particle-system-2d.js +++ b/editor/inspector/components/particle-system-2d.js @@ -50,8 +50,6 @@ exports.ready = function () { custom: { displayOrder: 6, ready(element) { - element.classList.add('flex'); - const $checkbox = element.querySelector('ui-checkbox[slot="content"]'); const $sync = document.createElement('ui-button'); @@ -64,8 +62,9 @@ exports.ready = function () { $checkbox.after($sync); // Hack: ui-button has extra events that are passed up to ui-prop ; - $sync.addEventListener('change', async (event) => { + $sync.addEventListener('change', (event) => { event.stopPropagation(); + Editor.Message.send('scene', 'snapshot'); }); $sync.addEventListener('confirm', async (event) => { @@ -117,8 +116,9 @@ exports.ready = function () { $export.appendChild($exportLabel); $sync.after($export); - $export.addEventListener('change', async (event) => { + $export.addEventListener('change', (event) => { event.stopPropagation(); + Editor.Message.send('scene', 'snapshot'); }); $export.addEventListener('confirm', async (event) => { diff --git a/editor/inspector/components/polygon-collider.js b/editor/inspector/components/polygon-collider.js index 2851dfaa3b..aa45afae94 100644 --- a/editor/inspector/components/polygon-collider.js +++ b/editor/inspector/components/polygon-collider.js @@ -19,7 +19,14 @@ exports.ready = function () { $button.innerText = 'Regenerate Points'; $input.after($button); - $button.addEventListener('confirm', () => { + $button.addEventListener('change', (event) => { + event.stopPropagation(); + Editor.Message.send('scene', 'snapshot'); + }); + + $button.addEventListener('confirm', (event) => { + event.stopPropagation(); + const uuids = this.dump.value.uuid.values || [this.dump.value.uuid.value]; uuids.forEach((uuid) => { diff --git a/editor/inspector/components/terrain.js b/editor/inspector/components/terrain.js index a0f8d9484e..df3b1557bc 100644 --- a/editor/inspector/components/terrain.js +++ b/editor/inspector/components/terrain.js @@ -12,6 +12,7 @@ exports.ready = function () { displayOrder: 0, ready (element) { element.addEventListener('change-dump', (event) => { + Editor.Message.send('scene', 'snapshot'); Editor.Message.request('scene', 'execute-component-method', { uuid: this.dump.value.uuid.value, name: 'manager.addAssetToComp',