VOXEDIT: also transform the root node properties

master
Martin Gerhardy 2022-01-26 16:27:46 +01:00
parent 37b1f64ff0
commit cd4cf908a7
1 changed files with 1 additions and 0 deletions

View File

@ -693,6 +693,7 @@ int SceneManager::addSceneGraphNode_r(voxel::SceneGraph &sceneGraph, voxel::Scen
int SceneManager::addSceneGraphNodes(voxel::SceneGraph& sceneGraph) {
const voxel::SceneGraphNode &root = sceneGraph.root();
int modelsAdded = 0;
_sceneGraph.node(0).addProperties(root.properties());
for (int nodeId : root.children()) {
modelsAdded += addSceneGraphNode_r(sceneGraph, sceneGraph.node(nodeId), 0);
}