1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-25 06:14:14 +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) { public selectObject(objectId: string | null) {
if (this.selected.value != null) { const currentSelected = this.selected.value;
this.clearHighlight(); if (currentSelected != null) {
this.selected.value.objectEntity.model.bakeMesh();
this.selected.value = null; this.selected.value = null;
this.clearHighlight();
currentSelected.objectEntity.model.bakeMesh();
} }
if (objectId != null) { if (objectId != null) {

View File

@@ -58,7 +58,7 @@ export const blind = defineObject({
blades = []; blades = [];
for (let i = 0; i < options.blades; i++) { 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) { if (i / options.blades < temp.open) {
b.position.y -= (i * 4/*cm*/) / WORLD_SCALE; b.position.y -= (i * 4/*cm*/) / WORLD_SCALE;
} else { } else {