VOXELFORMAT: use size() to check for empty palette

master
Martin Gerhardy 2022-05-10 20:22:13 +02:00
parent 822ed46734
commit 1cc6137ac7
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ SceneGraphNode::SceneGraphNode(SceneGraphNodeType type) : _type(type) {
}
void SceneGraphNode::setPalette(const voxel::Palette &palette) {
if (palette.colorCount <= 0) {
if (palette.size() <= 0) {
return;
}
_palette.setValue(palette);