Skip to content

Fix load_object color refresh on MODELS change#361

Merged
tracygardner merged 1 commit intomainfrom
codex/fix-live-update-color-issue
Mar 8, 2026
Merged

Fix load_object color refresh on MODELS change#361
tracygardner merged 1 commit intomainfrom
codex/fix-live-update-color-issue

Conversation

@tracygardner
Copy link
Contributor

Motivation

  • Selecting a different model in the load_object block did not immediately update the connected COLOR shadow/input to the default from objectColours, breaking the expected live-update behavior when swapping items.

Description

  • Added a specific onChange check in blocks/models.js to call updateColorField() when the MODELS field changes on the load_object block so the connected COLOR value is refreshed from the config immediately.

Testing

  • Ran the production build with npm run build, which completed successfully (Vite emitted non-blocking warnings about chunking/externalized modules but the build finished).

Codex Task

@tracygardner tracygardner merged commit 2fe365c into main Mar 8, 2026
5 checks passed
@tracygardner tracygardner deleted the codex/fix-live-update-color-issue branch March 8, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant