Skip to content

Commit

Permalink
PALETTE: use Material::has for hasEmit
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerhardy committed Feb 9, 2025
1 parent fa9f032 commit 4eb92d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/palette/Palette.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ bool Palette::hasAlpha(uint8_t paletteColorIdx) const {
}

bool Palette::hasEmit(uint8_t paletteColorIdx) const {
return _materials[paletteColorIdx].mask & (1 << MaterialEmit);
return _materials[paletteColorIdx].has(MaterialEmit);
}

void Palette::setMaterialValue(uint8_t paletteColorIdx, MaterialProperty property, float factor) {
Expand Down

0 comments on commit 4eb92d8

Please sign in to comment.