Session loading and saving in thread.

This commit is contained in:
brunoherbelin
2020-05-09 13:40:47 +02:00
parent 48d5991c3e
commit 069009fc06
11 changed files with 304 additions and 130 deletions

View File

@@ -50,6 +50,16 @@ Node::~Node ()
}
void Node::copyTransform(Node *other)
{
if (!other)
return;
transform_ = glm::identity<glm::mat4>();
scale_ = other->scale_;
rotation_ = other->rotation_;
translation_ = other->translation_;
}
void Node::update( float )
{
// update transform matrix from attributes