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
18501850 // yellow indicates deletion
18511851 _mouseVoxel.red = _mouseVoxel.green = 255;
18521852 _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();
18531858 }
18541859
18551860 // 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