| 68 | } |
| 69 | |
| 70 | void walkSceneNode( SceneNode *self, const glm::mat4 &accumulated, std::function<bool(SceneNode *,const glm::mat4 &)> visit_func ) |
| 71 | { |
| 72 | if(!visit_func(self, accumulated)) |
| 73 | return; |
| 74 | |
| 75 | for(const auto & child : self->m_children) |
| 76 | { |
| 77 | glm::mat4 transform(child.m_matrix2); |
| 78 | transform[3] = glm::vec4(child.m_translation,1); |
| 79 | |
| 80 | walkSceneNode(child.node, accumulated * transform, visit_func); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | static bool checkCostumeExists(const QString &n) |
| 85 | { |
no outgoing calls
no test coverage detected