mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-23 16:54:10 +02:00
wip
This commit is contained in:
@@ -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: {},
|
||||
|
||||
Reference in New Issue
Block a user