History

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

ZappoMan committed 13 years ago

Commit 31875ab2 parents 099fa4b dc0b4d310 files · +84 −25Browse files

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

Unified · Split

interface/src/Application.cpp+4−4
@@ -1447,7 +1447,7 @@ void Application::importVoxels() { · 1446 unmodified lines
14471447 importVoxels.readFromSquareARGB32Pixels(pixels, pngImage.height());
14481448 } else if (fileNameString.endsWith(".svo", Qt::CaseInsensitive)) {
14491449 importVoxels.readFromSVOFile(fileName);
1450− } else {
1450+ } else if (fileNameString.endsWith(".schematic", Qt::CaseInsensitive)) {
14511451 importVoxels.readFromSchematicFile(fileName);
14521452 }
14531453
@@ -1480,9 +1480,6 @@ void Application::importVoxels() { · 26 unmodified lines
14801480 // If we have voxels left in the packet, then send the packet
14811481 if (args.bufferInUse > (numBytesPacketHeader + sizeof(unsigned short int))) {
14821482 controlledBroadcastToNodes(args.messageBuffer, args.bufferInUse, & NODE_TYPE_VOXEL_SERVER, 1);
1483− printLog("sending packet: %d\n", ++args.packetsSent);
1484− args.bytesSent += args.bufferInUse;
1485− printLog("total bytes sent: %ld\n", args.bytesSent);
14861483 }
14871484
14881485 if (calculatedOctCode) {
@@ -1704,6 +1701,8 @@ void Application::initMenu() { · 215 unmodified lines
17041701 (_renderCoverageMapV2 = debugMenu->addAction("Render Coverage Map V2"))->setCheckable(true);
17051702 _renderCoverageMapV2->setShortcut(Qt::SHIFT | Qt::CTRL | Qt::Key_P);
17061703
1704+ (_simulateLeapHand = debugMenu->addAction("Simulate Leap Hand"))->setCheckable(true);
1705+ (_testRaveGlove = debugMenu->addAction("Test RaveGlove"))->setCheckable(true);
17071706
17081707 QMenu* settingsMenu = menuBar->addMenu("Settings");
17091708 (_settingsAutosave = settingsMenu->addAction("Autosave"))->setCheckable(true);
@@ -1962,6 +1961,7 @@ void Application::update(float deltaTime) { · 252 unmodified lines
19621961 }
19631962
19641963 // Leap finger-sensing device
1964+ LeapManager::enableFakeFingers(_simulateLeapHand->isChecked() || _testRaveGlove->isChecked());
19651965 LeapManager::nextFrame();
19661966 _myAvatar.getHand().setLeapFingers(LeapManager::getFingerTips(), LeapManager::getFingerRoots());
19671967 _myAvatar.getHand().setLeapHands(LeapManager::getHandPositions(), LeapManager::getHandNormals());

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