mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
Update engine.ts
This commit is contained in:
parent
9de48030fc
commit
64a4283c35
1 changed files with 6 additions and 2 deletions
|
|
@ -1041,6 +1041,8 @@ export class RoomEngine extends EngineBase<{
|
|||
};
|
||||
removeStickyParentRecursively(selectedFuniture);
|
||||
this.sr.enableSnapshotRendering();
|
||||
|
||||
this.envManager.renderShadow();
|
||||
},
|
||||
onDone: () => { // todo: sticky状態などを引数でもらうようにしたい
|
||||
grabbingEnded = true;
|
||||
|
|
@ -1084,6 +1086,8 @@ export class RoomEngine extends EngineBase<{
|
|||
};
|
||||
removeStickyParentRecursively(selectedFuniture);
|
||||
|
||||
this.envManager.renderShadow();
|
||||
|
||||
const pos = selectedFuniture.position.clone();
|
||||
const rotation = selectedFuniture.rotation.clone();
|
||||
this.roomState.installedFurnitures.find(o => o.id === selectedFuniture.metadata.furnitureId)!.sticky = sticky;
|
||||
|
|
@ -1132,8 +1136,6 @@ export class RoomEngine extends EngineBase<{
|
|||
this.grabbingCtx.onDone?.();
|
||||
}
|
||||
this.grabbingCtx = null;
|
||||
|
||||
this.envManager.renderShadow();
|
||||
}
|
||||
|
||||
public interact(oid: string, iid: string | null = null) {
|
||||
|
|
@ -1304,6 +1306,8 @@ export class RoomEngine extends EngineBase<{
|
|||
});
|
||||
this.scene.beginAnimation(container.root, 0, 60, false, 3, () => {
|
||||
this.scene.onAfterAnimationsObservable.remove(animationObserver);
|
||||
|
||||
this.envManager.renderShadow();
|
||||
});
|
||||
|
||||
this.roomState.installedFurnitures.push({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue