Skip to content

Commit

Permalink
rename AttrByID to AttrByUniqueID
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Feb 24, 2021
1 parent 4059a3a commit 53ce8b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion draco/draco_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func TestDecode(t *testing.T) {
t.Errorf("PointAttr.UniqueID got %d, want %d", got, i)
}
}
attr1 := m.AttrByID(0)
attr1 := m.AttrByUniqueID(0)
if _, ok := m.AttrData(attr1, nil); !ok {
t.Error("Mesh.AttrData failed")
}
Expand Down
2 changes: 1 addition & 1 deletion draco/mesh.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (m *Mesh) Attr(i int32) *PointAttr {
return &PointAttr{ref: attr}
}

func (m *Mesh) AttrByID(id uint32) *PointAttr {
func (m *Mesh) AttrByUniqueID(id uint32) *PointAttr {
attr := C.dracoMeshGetAttributeByUniqueId(m.ref, C.uint32_t(id))
if attr == nil {
return nil
Expand Down

0 comments on commit 53ce8b5

Please sign in to comment.