Changes
- Material JSON Exporting/Rebuilding
- The Material JSON export/rebuilding code has been updated with new class and instance flags to provide additional functionality.
- Class Flags Changes:
UNKNOWN_1
has been renamed toSAMPLE_LIGHTING
.UNKNOWN_2
has been renamed toHORIZONMAPPING
.
- Instance Flags Changes:
TRANSALL
has been added.SAMPLE_LIGHTING
has been added.EXCLUDE_GLOBAL_SHADOWS
has been added.ALL
has been added.
- Material JSON files exported with this update will include the updated/newer flags.
Bug Fixes
- PRIM Rebuilding
- The GLTF plugin in Blender sometimes appends a 'neutral_bone' when exporting to GLB files. This can cause a bone 'mismatch' when attempting to rebuild weighted PRIMs. 1
- This update addresses the issue by ignoring the 'neutral_bone' when rebuilding the weighted PRIMs, preventing 'mismatch' errors and allowing the rebuilding process to continue.
- In cases where a genuine bone mismatch exists, the error message popup will now display information about the offending mismatched bone.
1 The 'neutral_bone' issue is also noted here in another modding community: https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators/3d-modelling/troubleshooting-your-mesh-edits#bone-neutral_bone-not-present-in-export-rig-s-import-mesh.
Compatibility
- This update does not break compatibility with existing Material JSON files. The old flags still work.