History

Merge branch 'master' of https://github.com/worklist/hifi into animation_server_jurisdictions

ZappoMan committed 13 years ago

Commit 2be85d42 parents e64664c a391e6f27 files · +1596 −1439Browse files

Showing the changes to interface/src/VoxelPacketProcessor.cpp (1 of 27 files). Show all

Unified · Split

interface/src/VoxelPacketProcessor.cpp+6−4
@@ -11,14 +11,16 @@ · 10 unmodified lines
1111 #include <PerfStat.h>
1212
1313 #include "Application.h"
14+#include "Menu.h"
1415 #include "VoxelPacketProcessor.h"
1516
1617 void VoxelPacketProcessor::processPacket(sockaddr& senderAddress, unsigned char* packetData, ssize_t packetLength) {
17− Application* app = Application::getInstance();
18−
19− PerformanceWarning warn(app->_renderPipelineWarnings->isChecked(),"VoxelPacketProcessor::processPacket()");
18+ PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings),
19+ "VoxelPacketProcessor::processPacket()");
2020 ssize_t messageLength = packetLength;
2121
22+ Application* app = Application::getInstance();
23+
2224 // check to see if the UI thread asked us to kill the voxel tree. since we're the only thread allowed to do that
2325 if (app->_wantToKillLocalVoxels) {
2426 app->_voxels.killLocalVoxels();
@@ -42,7 +44,7 @@ void VoxelPacketProcessor::processPacket(sockaddr& senderAddress, unsigned char* · 17 unmodified lines
4244 }
4345 } // fall through to piggyback message
4446
45− if (app->_renderVoxels->isChecked()) {
47+ if (Menu::getInstance()->isOptionChecked(MenuOption::Voxels)) {
4648 Node* voxelServer = NodeList::getInstance()->nodeWithAddress(&senderAddress);
4749 if (voxelServer && socketMatch(voxelServer->getActiveSocket(), &senderAddress)) {
4850 voxelServer->lock();

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