Skip to content

Commit

Permalink
#642 Fixing array types
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrocortesark committed Oct 22, 2024
1 parent ca509eb commit a677837
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bindings/bnd_pointcloud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -814,13 +814,13 @@ BND_PointCloud* BND_PointCloud::CreateFromThreejsJSON(BND_DICT json)
std::vector<double> normal_array;
if (emscripten::val::undefined() != attributes["normal"])
{
normal_array = emscripten::vecFromJSArray<float>(attributes["normal"]["array"]);
normal_array = emscripten::vecFromJSArray<double>(attributes["normal"]["array"]);
}

std::vector<float> color_array;
std::vector<double> color_array;
if (emscripten::val::undefined() != attributes["color"])
{
color_array = emscripten::vecFromJSArray<float>(attributes["normal"]["array"]);
color_array = emscripten::vecFromJSArray<double>(attributes["normal"]["array"]);
}

ON_PointCloud* pc = new ON_PointCloud();
Expand Down

0 comments on commit a677837

Please sign in to comment.