1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-06-03 14:14:15 +02:00
This commit is contained in:
syuilo
2026-04-02 14:15:52 +09:00
parent a01bbf828d
commit ea8df304c9
22 changed files with 193 additions and 147 deletions

View File

@@ -26,8 +26,8 @@ export const woodRingFloorLamp = defineObject({
},
},
placement: 'floor',
createInstance: ({ options, findMaterial }) => {
const shadeMaterial = findMaterial('__X_SHADE__');
createInstance: ({ options, model }) => {
const shadeMaterial = model.findMaterial('__X_SHADE__');
const applyShadeColor = () => {
const [r, g, b] = options.shadeColor;
@@ -36,7 +36,7 @@ export const woodRingFloorLamp = defineObject({
applyShadeColor();
const bodyMaterial = findMaterial('__X_BODY__');
const bodyMaterial = model.findMaterial('__X_BODY__');
const applyBodyColor = () => {
const [r, g, b] = options.bodyColor;