mirror of
https://github.com/drewcassidy/quicktex.git
synced 2024-09-13 06:37:34 +00:00
tweaks
This commit is contained in:
parent
2fa4f59104
commit
7149864173
@ -195,7 +195,7 @@ template <typename B> py::class_<B> BindBlock(py::module_& m, const char* name)
|
|||||||
"tobytes", [](const B& b) { return py::bytes(reinterpret_cast<const char*>(&b), sizeof(B)); },
|
"tobytes", [](const B& b) { return py::bytes(reinterpret_cast<const char*>(&b), sizeof(B)); },
|
||||||
Format(tobytes_doc, name, std::to_string(sizeof(B))).c_str());
|
Format(tobytes_doc, name, std::to_string(sizeof(B))).c_str());
|
||||||
|
|
||||||
return block;
|
return std::move(block);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename B> py::class_<BlockTexture<B>> BindBlockTexture(py::module_& m, const char* name) {
|
template <typename B> py::class_<BlockTexture<B>> BindBlockTexture(py::module_& m, const char* name) {
|
||||||
@ -231,6 +231,6 @@ template <typename B> py::class_<BlockTexture<B>> BindBlockTexture(py::module_&
|
|||||||
|
|
||||||
DefSubscript2D(block_texture, &BTex::GetBlock, &BTex::SetBlock, &BTex::BlocksXY);
|
DefSubscript2D(block_texture, &BTex::GetBlock, &BTex::SetBlock, &BTex::BlocksXY);
|
||||||
|
|
||||||
return block_texture;
|
return std::move(block_texture);
|
||||||
}
|
}
|
||||||
} // namespace quicktex::bindings
|
} // namespace quicktex::bindings
|
@ -25,7 +25,6 @@
|
|||||||
|
|
||||||
#include "../../Color.h"
|
#include "../../Color.h"
|
||||||
#include "../../ColorBlock.h"
|
#include "../../ColorBlock.h"
|
||||||
#include "../../util.h"
|
|
||||||
#include "BC4Block.h"
|
#include "BC4Block.h"
|
||||||
|
|
||||||
namespace quicktex::s3tc {
|
namespace quicktex::s3tc {
|
||||||
|
Loading…
Reference in New Issue
Block a user