Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 4 files). Show all
Unified · Split
| @@ -185,10 +185,11 @@ int MetavoxelSystem::SimulateVisitor::visit(MetavoxelInfo& info) { · 184 unmodified lines | ||
| 185 | 185 | } |
| 186 | 186 | QRgb color = info.inputValues.at(0).getInlineValue<QRgb>(); |
| 187 | 187 | QRgb normal = info.inputValues.at(1).getInlineValue<QRgb>(); |
| 188 | − int alpha = qAlpha(color); | |
| 188 | + quint8 alpha = qAlpha(color); | |
| 189 | 189 | if (alpha > 0) { |
| 190 | 190 | Point point = { glm::vec4(info.minimum + glm::vec3(info.size, info.size, info.size) * 0.5f, info.size), |
| 191 | − { qRed(color), qGreen(color), qBlue(color), alpha }, { qRed(normal), qGreen(normal), qBlue(normal) } }; | |
| 191 | + { quint8(qRed(color)), quint8(qGreen(color)), quint8(qBlue(color)), alpha }, | |
| 192 | + { quint8(qRed(normal)), quint8(qGreen(normal)), quint8(qBlue(normal)) } }; | |
| 192 | 193 | _points.append(point); |
| 193 | 194 | } |
| 194 | 195 | return STOP_RECURSION; |