fix fragment:place rotation (#593)

* fix fragment:place rotation
This commit is contained in:
MihailRis
2025-08-22 22:26:43 +03:00
committed by GitHub
parent eba7eed8c0
commit a46aafa562
5 changed files with 38 additions and 17 deletions
+1 -1
View File
@@ -171,7 +171,7 @@ void VoxelFragment::prepare(const Content& content) {
}
void VoxelFragment::place(
GlobalChunks& chunks, const glm::ivec3& offset, ubyte rotation
GlobalChunks& chunks, const glm::ivec3& offset
) {
auto& structVoxels = getRuntimeVoxels();
for (int y = 0; y < size.y; y++) {
+1 -2
View File
@@ -45,8 +45,7 @@ public:
/// @brief Place fragment to the world
/// @param offset target location
/// @param rotation rotation index
void place(GlobalChunks& chunks, const glm::ivec3& offset, ubyte rotation);
void place(GlobalChunks& chunks, const glm::ivec3& offset);
/// @brief Create structure copy rotated 90 deg. clockwise
std::unique_ptr<VoxelFragment> rotated(const Content& content) const;