parent
699f4eeb38
commit
e82c36d76b
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ naRef makeVectorFromVec(naContext c, const T& vec)
|
|||
const int num_components
|
||||
= sizeof(vec.data()) / sizeof(typename T::value_type);
|
||||
naRef vector = naNewVector(c);
|
||||
naVec_setsize(vector, num_components);
|
||||
naVec_setsize(c, vector, num_components);
|
||||
for (int i = 0; i < num_components; ++i)
|
||||
naVec_set(vector, i, naNum(vec[i]));
|
||||
return vector;
|
||||
|
|
Loading…
Reference in a new issue