VOXELFORMAT: transfer the loaded palette into the new node for vxr

master
Martin Gerhardy 2022-05-18 17:31:30 +02:00
parent db0999ef8c
commit 3e3081eed5
1 changed files with 1 additions and 0 deletions

View File

@ -176,6 +176,7 @@ bool VXRFormat::loadChildVXM(const core::String& vxmPath, SceneGraphNode &node,
node.setVisible(childModelNode->visible());
node.setLocked(childModelNode->locked());
node.addProperties(childModelNode->properties());
node.setPalette(childModelNode->palette());
// TODO: this shouldn't be needed - should get set in vxa or vxr (or in vxm version <= 3)
const voxelformat::SceneGraphTransform &childTransform = childModelNode->transform(0);
voxelformat::SceneGraphTransform &transform = node.transform(0);