Skip to content

Commit

Permalink
update about pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
alexchicn committed Oct 16, 2020
1 parent 04b8f89 commit 3f1d10c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/libgltf/extensions/google_draco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ namespace libgltf
{
if (const draco::PointAttribute* point_attribute = draco_mesh->GetAttributeByUniqueId(static_cast<uint32_t>(_pGoogleDracoStream->GetAttributeID())))
{
const int8_t components_num = point_attribute ? point_attribute->num_components() : 0;
const int8_t components_num = point_attribute->num_components();
if (components_num > 0)
{
const size_t map_size = point_attribute->indices_map_size();
Expand Down

0 comments on commit 3f1d10c

Please sign in to comment.