Skip to content

Use null instead of an object with undefined properties#51

Merged
diarmidmackenzie merged 1 commit into
c-frame:masterfrom
Elettrotecnica:fix-ammo-body-schema
Oct 12, 2023
Merged

Use null instead of an object with undefined properties#51
diarmidmackenzie merged 1 commit into
c-frame:masterfrom
Elettrotecnica:fix-ammo-body-schema

Conversation

@Elettrotecnica
Copy link
Copy Markdown

This will be coalesced to an empty object, which keeps the expected behavior. The previous default would trigger a warning in the console about it not being conform to the vec3 property type definition.

Warning is:

core:schema:warn Default value [object Object] does not match type vec3 in component ammo-body

This will be coalesced to an empty object, which keeps the expected behavior. The previous default would trigger a warning in the console about it not being conform to the vec3 property type definition.
@diarmidmackenzie
Copy link
Copy Markdown
Member

Thanks for this.

@diarmidmackenzie diarmidmackenzie merged commit 9963117 into c-frame:master Oct 12, 2023
@Elettrotecnica Elettrotecnica deleted the fix-ammo-body-schema branch December 28, 2023 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants