1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-13 15:15:45 +02:00
This commit is contained in:
syuilo
2026-04-04 17:09:20 +09:00
parent f2be8a2169
commit 85dea8b49d
2 changed files with 5 additions and 4 deletions

View File

@@ -717,10 +717,11 @@ export class RoomEngine {
}
public selectObject(objectId: string | null) {
if (this.selected.value != null) {
this.clearHighlight();
this.selected.value.objectEntity.model.bakeMesh();
const currentSelected = this.selected.value;
if (currentSelected != null) {
this.selected.value = null;
this.clearHighlight();
currentSelected.objectEntity.model.bakeMesh();
}
if (objectId != null) {

View File

@@ -58,7 +58,7 @@ export const blind = defineObject({
blades = [];
for (let i = 0; i < options.blades; i++) {
const b = blade.createInstance('blade_' + i);
const b = blade.clone('blade_' + i); // createInstanceを使いたいが、削除するときになぜかエラーになる
if (i / options.blades < temp.open) {
b.position.y -= (i * 4/*cm*/) / WORLD_SCALE;
} else {