mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
V3.1 [editor] fix inspector edit some component undo bug (#8618)
* fix inspector edit some component undo bug * update fbx meta file in internal-db
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"ver": "2.0.13",
|
||||
"ver": "2.0.14",
|
||||
"importer": "fbx",
|
||||
"imported": true,
|
||||
"uuid": "1263d74c-8167-4928-91a6-4e2672411f47",
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user