mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-04 13:34:10 +02:00
wip
This commit is contained in:
@@ -1284,6 +1284,7 @@ export class RoomEngine extends EventEmitter {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
removeStickyParentRecursively(selectedObject);
|
removeStickyParentRecursively(selectedObject);
|
||||||
|
|
||||||
this.sr.enableSnapshotRendering();
|
this.sr.enableSnapshotRendering();
|
||||||
|
|
||||||
const pos = selectedObject.position.clone();
|
const pos = selectedObject.position.clone();
|
||||||
@@ -1314,12 +1315,15 @@ export class RoomEngine extends EventEmitter {
|
|||||||
public endGrabbing(cancel = false) {
|
public endGrabbing(cancel = false) {
|
||||||
if (this.grabbingCtx == null) return;
|
if (this.grabbingCtx == null) return;
|
||||||
|
|
||||||
|
this.sr.disableSnapshotRendering();
|
||||||
// 一度に子までdisposeしようとするとなぜか照明系の家具の場合エンジンがクラッシュする(消しちゃまずいものが子に混じっている?)ので、まず子からちびちび消していく
|
// 一度に子までdisposeしようとするとなぜか照明系の家具の場合エンジンがクラッシュする(消しちゃまずいものが子に混じっている?)ので、まず子からちびちび消していく
|
||||||
//this.grabbingCtx.ghost.dispose(false, false);
|
//this.grabbingCtx.ghost.dispose(false, false);
|
||||||
for (const m of this.grabbingCtx.ghost.getChildMeshes()) {
|
for (const m of this.grabbingCtx.ghost.getChildMeshes()) {
|
||||||
m.dispose(true, false);
|
m.dispose(true, false);
|
||||||
}
|
}
|
||||||
this.grabbingCtx.ghost.dispose(true, false);
|
this.grabbingCtx.ghost.dispose(true, false);
|
||||||
|
this.gridPlane.isVisible = false;
|
||||||
|
this.sr.enableSnapshotRendering();
|
||||||
|
|
||||||
if (cancel) {
|
if (cancel) {
|
||||||
this.grabbingCtx.onCancel?.();
|
this.grabbingCtx.onCancel?.();
|
||||||
@@ -1327,10 +1331,6 @@ export class RoomEngine extends EventEmitter {
|
|||||||
this.grabbingCtx.onDone?.();
|
this.grabbingCtx.onDone?.();
|
||||||
}
|
}
|
||||||
this.grabbingCtx = null;
|
this.grabbingCtx = null;
|
||||||
|
|
||||||
this.sr.disableSnapshotRendering();
|
|
||||||
this.gridPlane.isVisible = false;
|
|
||||||
this.sr.enableSnapshotRendering();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public interact(oid: string) {
|
public interact(oid: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user