mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
wip
This commit is contained in:
parent
f2be8a2169
commit
85dea8b49d
2 changed files with 5 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue