Skip to content

Maya glTF exporter writes unnecessary default values #626

Closed
@bghgary

Description

@bghgary

Probably happens for Max also.

For example, https://github.com/bghgary/glTF-Sample-Models/blob/flighthelmet-fix/2.0/FlightHelmet/glTF/FlightHelmet.gltf#L24-L27 (translation is all zeros by default)

These values do not need to be present in the glTF as they are the defaults. It makes the glTF harder to read and bloats the JSON for no reason. This fix should be applied to all values that are written to the glTF.

Here are some other examples where default values should not be written:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions