History

fix voxel paint color assignment

Stephen Birarda committed 13 years ago

Commit 89248cd1 parent f864b641 file · +5 −0Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+5−0
@@ -1850,6 +1850,11 @@ void Application::update(float deltaTime) { · 1849 unmodified lines
1850 // yellow indicates deletion1850 // yellow indicates deletion
1851 _mouseVoxel.red = _mouseVoxel.green = 255;1851 _mouseVoxel.red = _mouseVoxel.green = 255;
1852 _mouseVoxel.blue = 0;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 // if we just edited, use the currently selected voxel as the "last" for drag detection1860 // if we just edited, use the currently selected voxel as the "last" for drag detection

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t