mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Session loading and saving in thread.
This commit is contained in:
10
Scene.cpp
10
Scene.cpp
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user