Remove Transparent from cube texture menu

Closes #1722
Minor improvements
This commit is contained in:
JannisX11 2023-01-09 22:48:13 +01:00
parent da1fe851e4
commit 4d0c6f02dc
5 changed files with 6 additions and 9 deletions

View File

@ -48,7 +48,7 @@ class Codec {
let project = Project;
setTimeout(() => {
if (Project == project) updateRecentProjectThumbnail();
}, 200)
}, 500)
}
}
//parse(model, path)

View File

@ -815,11 +815,6 @@ class Cube extends OutlinerElement {
cube.forSelected(function(obj) {
obj.applyTexture(false, true)
}, 'texture blank')
}},
{icon: 'clear', name: 'menu.cube.texture.transparent', click: function(cube) {
cube.forSelected(function(obj) {
obj.applyTexture(null, true)
}, 'texture transparent')
}}
]
Texture.all.forEach(function(t) {

View File

@ -845,8 +845,9 @@ const Canvas = {
if (texture && obj.faces && !Format.single_texture) {
used = false;
for (var face in obj.faces) {
if (obj.faces[face].getTexture() == texture) {
if (obj.faces[face].texture == texture.uuid) {
used = true;
break;
}
}
}

View File

@ -21,11 +21,11 @@ const Screencam = {
length: {label: 'dialog.create_gif.length', type: 'number', value: 5, min: 0.1, step: 0.25, condition: (form) => ['seconds', 'frames'].includes(form.length_mode)},
fps: {label: 'dialog.create_gif.fps', type: 'number', value: 20, min: 0.5, max: 120},
'_2': '_',
pixelate: {label: 'dialog.create_gif.pixelate', type: 'range', value: 1, min: 1, max: 8, step: 1},
color: {label: 'dialog.create_gif.color', type: 'color', value: '#00000000'},
bg_image: {label: 'dialog.create_gif.bg_image', type: 'file', extensions: ['png'], readtype: 'image', filetype: 'PNG'},
turn: {label: 'dialog.create_gif.turn', type: 'number', value: 0, min: -10, max: 10},
turn: {label: 'dialog.create_gif.turn', type: 'number', value: 0, min: -90, max: 90, description: 'dialog.create_gif.turn.desc'},
play: {label: 'dialog.create_gif.play', type: 'checkbox', condition: () => Animator.open},
pixelate: {label: 'dialog.create_gif.pixelate', type: 'range', value: 1, min: 1, max: 8, step: 1},
},
onConfirm(formData) {
let background = formData.color.toHex8String() != '#00000000' ? formData.color.toHexString() : undefined;

View File

@ -542,6 +542,7 @@
"dialog.create_gif.color": "Background Color",
"dialog.create_gif.bg_image": "Background Image",
"dialog.create_gif.turn": "Turntable Speed",
"dialog.create_gif.turn.desc": "Rotate the model while recording. Use negative values to turn the model clockwise. A value of 60 corresponds to one rotation every second.",
"dialog.create_gif.play": "Start Animation",
"dialog.timelapse.interval": "Interval (Seconds)",