Skip to content

Conversation

@willeastcott
Copy link
Contributor

Summary

  • Fix material migration to unset the shader field instead of setting it to 'blinn'
  • Update log message to reflect that the property is removed, not switched

Problem

The migration code comment says "remove shader" but it was actually setting the field to 'blinn'. This caused a C3 validation error in the collab-server because the shader field is not defined in the material data schema.

Solution

Changed asset.set('data.shader', 'blinn') to asset.unset('data.shader') to be consistent with how fresnelModel is handled in the same migration.

Fixes #1709

The migration comment says 'remove shader' but the code was setting it to 'blinn',
which causes a C3 validation error since the shader field is not defined in the
material data schema. Changed to unset() to be consistent with how fresnelModel
is handled.

Fixes #1709
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the material migration logic so that deprecated shader data is actually removed instead of being set to an unsupported value, resolving validation errors in the collab-server.

Changes:

  • Replace asset.set('data.shader', 'blinn') with asset.unset('data.shader') in the material migration.
  • Update the migration log message to state that data.shader has been removed rather than switched.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kpal81xd kpal81xd mentioned this pull request Jan 29, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: assets bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Material migration sets shader field instead of unsetting it

3 participants