mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Add missing "normalized" accessor property to glTF document
This commit is contained in:
parent
6fd9a1bb10
commit
4771004664
@ -846,6 +846,7 @@ Error GLTFDocument::_encode_accessors(Ref<GLTFState> state) {
|
||||
d["count"] = accessor->count;
|
||||
d["type"] = _get_accessor_type_name(accessor->type);
|
||||
d["byteOffset"] = accessor->byte_offset;
|
||||
d["normalized"] = accessor->normalized;
|
||||
d["max"] = accessor->max;
|
||||
d["min"] = accessor->min;
|
||||
d["bufferView"] = accessor->buffer_view; //optional because it may be sparse...
|
||||
@ -961,6 +962,10 @@ Error GLTFDocument::_parse_accessors(Ref<GLTFState> state) {
|
||||
accessor->byte_offset = d["byteOffset"];
|
||||
}
|
||||
|
||||
if (d.has("normalized")) {
|
||||
accessor->normalized = d["normalized"];
|
||||
}
|
||||
|
||||
if (d.has("max")) {
|
||||
accessor->max = d["max"];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user