mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 18:56:22 +02:00
When we add voxels, add them with the selected color.
This commit is contained in:
parent
9ff006916f
commit
45e1d341fa
1 changed files with 6 additions and 6 deletions
|
@ -851,16 +851,16 @@ void Application::idle() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_mouseMode == COLOR_VOXEL_MODE) {
|
if (_mouseMode == DELETE_VOXEL_MODE) {
|
||||||
|
// red indicates deletion
|
||||||
|
_mouseVoxel.red = 255;
|
||||||
|
_mouseVoxel.green = _mouseVoxel.blue = 0;
|
||||||
|
|
||||||
|
} else { // _mouseMode == ADD_VOXEL_MODE || _mouseMode == COLOR_VOXEL_MODE
|
||||||
QColor paintColor = _voxelPaintColor->data().value<QColor>();
|
QColor paintColor = _voxelPaintColor->data().value<QColor>();
|
||||||
_mouseVoxel.red = paintColor.red();
|
_mouseVoxel.red = paintColor.red();
|
||||||
_mouseVoxel.green = paintColor.green();
|
_mouseVoxel.green = paintColor.green();
|
||||||
_mouseVoxel.blue = paintColor.blue();
|
_mouseVoxel.blue = paintColor.blue();
|
||||||
|
|
||||||
} else if (_mouseMode == DELETE_VOXEL_MODE) {
|
|
||||||
// red indicates deletion
|
|
||||||
_mouseVoxel.red = 255;
|
|
||||||
_mouseVoxel.green = _mouseVoxel.blue = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue