Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1850,6 +1850,11 @@ void Application::update(float deltaTime) { · 1849 unmodified lines | ||
| 1850 | 1850 | // yellow indicates deletion |
| 1851 | 1851 | _mouseVoxel.red = _mouseVoxel.green = 255; |
| 1852 | 1852 | _mouseVoxel.blue = 0; |
| 1853 | + } else { // _addVoxelMode->isChecked() || _colorVoxelMode->isChecked() | |
| 1854 | + QColor paintColor = Menu::getInstance()->getActionForOption(MenuOption::VoxelPaintColor)->data().value<QColor>(); | |
| 1855 | + _mouseVoxel.red = paintColor.red(); | |
| 1856 | + _mouseVoxel.green = paintColor.green(); | |
| 1857 | + _mouseVoxel.blue = paintColor.blue(); | |
| 1853 | 1858 | } |
| 1854 | 1859 | |
| 1855 | 1860 | // if we just edited, use the currently selected voxel as the "last" for drag detection |