Browse Source

python: adapt to Magnum changes.

pull/9/head
Vladimír Vondruš 6 years ago
parent
commit
f2cba9cb57
  1. 2
      src/python/magnum/math.matrix.h
  2. 2
      src/python/magnum/math.vector.h

2
src/python/magnum/math.matrix.h

@ -123,7 +123,7 @@ template<class T, class ...Args> void everyRectangularMatrixBuffer(py::class_<T,
throw py::error_already_set{};
}
T out{Math::NoInit};
T out{NoInit};
/* Expecting just an one-letter format */
if(buffer.format[0] == 'f' && !buffer.format[1])

2
src/python/magnum/math.vector.h

@ -157,7 +157,7 @@ template<class T, class ...Args> void everyVectorBuffer(py::class_<T, Args...>&
throw py::error_already_set{};
}
T out{Math::NoInit};
T out{NoInit};
initFromBuffer<T>(out, buffer);
return out;
}), "Construct from a buffer");

Loading…
Cancel
Save