mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-17 18:35:20 +02:00
Fix and clean up skeletal animation (#15722)
* Fix attachments lagging behind their parents (#14818) * Fix animation blending (#14817) * Bring back cool guy as another .x smoke test * Add .x mesh loader unittest * Do bounding box & matrix calculation at proper point in time * Remove obsolete `SAnimatedMesh`
This commit is contained in:
@@ -916,12 +916,7 @@ struct Node {
|
||||
std::optional<std::size_t> skin;
|
||||
std::optional<std::vector<double>> weights;
|
||||
Node(const Json::Value &o)
|
||||
: transform(Matrix {
|
||||
1, 0, 0, 0,
|
||||
0, 1, 0, 0,
|
||||
0, 0, 1, 0,
|
||||
0, 0, 0, 1
|
||||
})
|
||||
: transform(TRS{})
|
||||
{
|
||||
check(o.isObject());
|
||||
if (o.isMember("camera")) {
|
||||
|
Reference in New Issue
Block a user