1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-23 16:54:10 +02:00
This commit is contained in:
syuilo
2026-04-13 21:42:12 +09:00
parent b6e269d140
commit 205d2c3343
2 changed files with 30 additions and 7 deletions

View File

@@ -50,7 +50,7 @@ export const ironFrameTable = defineObject({
},
},
placement: 'top',
createInstance: ({ options, model }) => {
createInstance: ({ options, model, stickyMarkerMeshUpdated }) => {
const frameMaterial = model.findMaterial('__X_FRAME__');
const boardMaterial = model.findMaterial('__X_BOARD__');
@@ -68,6 +68,8 @@ export const ironFrameTable = defineObject({
applyBoardColor();
const topMesh = model.findMesh('__TOP__');
const applySize = () => {
for (const mesh of model.root.getChildMeshes()) {
if (mesh.morphTargetManager != null && mesh.morphTargetManager.getTargetByName('W') != null) {
@@ -90,9 +92,9 @@ export const ironFrameTable = defineObject({
switch (k) {
case 'frameColor': applyFrameColor(); break;
case 'boardColor': applyBoardColor(); break;
case 'width': applySize(); break;
case 'depth': applySize(); break;
case 'height': applySize(); break;
case 'width': applySize(); stickyMarkerMeshUpdated?.(topMesh); break;
case 'depth': applySize(); stickyMarkerMeshUpdated?.(topMesh); break;
case 'height': applySize(); stickyMarkerMeshUpdated?.(topMesh); break;
}
},
interactions: {},