mirror of
https://github.com/minetest/minetest.git
synced 2024-12-03 04:53:47 +01:00
Revert "upright_sprite: Fix texture position for players"
This reverts commit d58801ab3204757e6c49892a05633281144f4f44.
This commit is contained in:
parent
3d15a6774d
commit
957c59a678
@ -835,11 +835,6 @@ void GenericCAO::addToScene(scene::ISceneManager *smgr,
|
|||||||
video::S3DVertex( dx, dy, 0, 0,0,0, c, 0,0),
|
video::S3DVertex( dx, dy, 0, 0,0,0, c, 0,0),
|
||||||
video::S3DVertex(-dx, dy, 0, 0,0,0, c, 1,0),
|
video::S3DVertex(-dx, dy, 0, 0,0,0, c, 1,0),
|
||||||
};
|
};
|
||||||
if (m_is_player) {
|
|
||||||
// Move minimal Y position to 0 (feet position)
|
|
||||||
for (size_t i = 0; i < 4; i++)
|
|
||||||
vertices[i].Pos.Y += dy;
|
|
||||||
}
|
|
||||||
u16 indices[] = {0,1,2,2,3,0};
|
u16 indices[] = {0,1,2,2,3,0};
|
||||||
buf->append(vertices, 4, indices, 6);
|
buf->append(vertices, 4, indices, 6);
|
||||||
// Set material
|
// Set material
|
||||||
@ -859,11 +854,6 @@ void GenericCAO::addToScene(scene::ISceneManager *smgr,
|
|||||||
video::S3DVertex(-dx, dy, 0, 0,0,0, c, 0,0),
|
video::S3DVertex(-dx, dy, 0, 0,0,0, c, 0,0),
|
||||||
video::S3DVertex( dx, dy, 0, 0,0,0, c, 1,0),
|
video::S3DVertex( dx, dy, 0, 0,0,0, c, 1,0),
|
||||||
};
|
};
|
||||||
if (m_is_player) {
|
|
||||||
// Move minimal Y position to 0 (feet position)
|
|
||||||
for (size_t i = 0; i < 4; i++)
|
|
||||||
vertices[i].Pos.Y += dy;
|
|
||||||
}
|
|
||||||
u16 indices[] = {0,1,2,2,3,0};
|
u16 indices[] = {0,1,2,2,3,0};
|
||||||
buf->append(vertices, 4, indices, 6);
|
buf->append(vertices, 4, indices, 6);
|
||||||
// Set material
|
// Set material
|
||||||
|
Loading…
Reference in New Issue
Block a user