From bd71a4b581a2fb7338692ed333cf6df71170333e Mon Sep 17 00:00:00 2001 From: Bruno Date: Sat, 1 May 2021 19:12:09 +0200 Subject: [PATCH] restoring copy of transform_ matrix would be possible to optimize and avoid this copy, but should be verified everywhere that this change of paradigm is taken into account (i.e. run update after copy transform if needed) --- Scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scene.cpp b/Scene.cpp index 9717370..0fd70fb 100644 --- a/Scene.cpp +++ b/Scene.cpp @@ -61,7 +61,7 @@ void Node::copyTransform(const Node *other) { if (!other) return; -// transform_ = other->transform_; + transform_ = other->transform_; scale_ = other->scale_; rotation_ = other->rotation_; translation_ = other->translation_;