Fix texture mesh rotation order

Make start screen sections deletable
Add "name" alias in dialogs
This commit is contained in:
JannisX11 2022-04-04 22:56:51 +02:00
parent 99c0cabd75
commit c951b2f727
3 changed files with 7 additions and 1 deletions

View File

@ -422,7 +422,7 @@ window.Dialog = class Dialog {
id = options.id;
}
this.id = options.id
this.title = options.title
this.title = options.title || options.name;
this.lines = options.lines
this.form = options.form

View File

@ -117,6 +117,11 @@ function addStartScreenSection(id, data) {
if (!obj[0].parentElement) {
$('#start_screen content').append(obj);
}
return {
delete() {
obj[0].remove();
}
}
}
onVueSetup(function() {

View File

@ -115,6 +115,7 @@ new NodePreviewController(TextureMesh, {
mesh.name = element.uuid;
mesh.type = element.type;
mesh.isElement = true;
mesh.rotation.order = 'ZYX';
mesh.geometry.setAttribute('highlight', new THREE.BufferAttribute(new Uint8Array(4), 1));