mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-16 18:01:40 +00:00
rename
This commit is contained in:
parent
c7c99296cb
commit
de726bd41e
2 changed files with 5 additions and 5 deletions
|
@ -99,7 +99,7 @@ public:
|
|||
//! returns an axis aligned bounding box
|
||||
const core::aabbox3d<f32> &getBoundingBox() const override {
|
||||
// assert(false); // TODO refactor IMesh so that we don't have to implement this
|
||||
return StaticBoundingBox;
|
||||
return StaticPartsBoundingBox;
|
||||
}
|
||||
|
||||
//! set user axis aligned bounding box
|
||||
|
@ -398,7 +398,7 @@ protected:
|
|||
std::vector<std::vector<char>> Vertices_Moved;
|
||||
|
||||
//! Bounding box of just the static parts of the mesh
|
||||
core::aabbox3d<f32> StaticBoundingBox{{0, 0, 0}};
|
||||
core::aabbox3d<f32> StaticPartsBoundingBox{{0, 0, 0}};
|
||||
|
||||
f32 EndFrame;
|
||||
f32 FramesPerSecond;
|
||||
|
|
|
@ -74,7 +74,7 @@ core::aabbox3df SkinnedMesh::calculateBoundingBox(
|
|||
const std::vector<core::matrix4> &global_transforms)
|
||||
{
|
||||
assert(global_transforms.size() == AllJoints.size());
|
||||
core::aabbox3df result = StaticBoundingBox;
|
||||
core::aabbox3df result = StaticPartsBoundingBox;
|
||||
// skeletal animation
|
||||
for (u16 i = 0; i < AllJoints.size(); ++i) {
|
||||
auto box = AllJoints[i]->LocalBoundingBox;
|
||||
|
@ -364,9 +364,9 @@ void SkinnedMesh::calculateStaticBoundingBox()
|
|||
if (!animated[mb][v]) {
|
||||
auto pos = getMeshBuffer(mb)->getVertexBuffer()->getPosition(v);
|
||||
if (!first) {
|
||||
StaticBoundingBox.addInternalPoint(pos);
|
||||
StaticPartsBoundingBox.addInternalPoint(pos);
|
||||
} else {
|
||||
StaticBoundingBox.reset(pos);
|
||||
StaticPartsBoundingBox.reset(pos);
|
||||
first = false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue