diff options
author | Lyuma <xn.lyuma@gmail.com> | 2021-11-01 17:31:59 -0700 |
---|---|---|
committer | Lyuma <xn.lyuma@gmail.com> | 2021-11-01 23:22:45 -0700 |
commit | de93d489012772a9a9eaa0a6b962fa411a1ea06c (patch) | |
tree | 8b82dccf3a363bc436fc5ff419132e622eb3a89f /modules/gltf/doc_classes | |
parent | 5945f43cc8d18976129e7f59003caf3873c90e22 (diff) |
glTF: Fix override materials and non-empty arrays
Keep track of MeshInstance and GeometryInstance override materials in the GLTFMesh object.
Ensure all arrays are non-empty to conform with "minItems":1 in glTF spec.
Diffstat (limited to 'modules/gltf/doc_classes')
-rw-r--r-- | modules/gltf/doc_classes/GLTFMesh.xml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gltf/doc_classes/GLTFMesh.xml b/modules/gltf/doc_classes/GLTFMesh.xml index 1e7199d229..58853217e2 100644 --- a/modules/gltf/doc_classes/GLTFMesh.xml +++ b/modules/gltf/doc_classes/GLTFMesh.xml @@ -9,6 +9,8 @@ <members> <member name="blend_weights" type="PackedFloat32Array" setter="set_blend_weights" getter="get_blend_weights" default="PackedFloat32Array()"> </member> + <member name="instance_materials" type="Array" setter="set_instance_materials" getter="get_instance_materials" default="[]"> + </member> <member name="mesh" type="ImporterMesh" setter="set_mesh" getter="get_mesh"> </member> </members> |