Skip to content

Importing a GLTF mesh with joint indices encoded as VEC4 results in an error #65

@jbrd

Description

@jbrd

Many applications (incl Blender) write GLTF joint indices as VEC4 but the readAccessorInts function used to read joint indices expects them to be encoded as SCALAR, which results in the following warning (and results in the joint indices not being read, and coming through to the USD stage as all zeroes):

Warning: in readAccessorInts at line 869 of USD-Fileformat-plugins\gltf\src\gltf.cpp -- Accessor 2 used as indices has invalid type 4 (expected SCALAR type 65). Rejecting to prevent type confusion attack.

Repro Steps

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions