History

resolve conflicts on merge with upstream master

Stephen Birarda committed 12 years ago

Commit 599e3bb2 parents 4ea14a5 bd6418d44 files · +486 −892Browse files

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

Unified · Split

interface/src/VoxelSystem.cpp+6−6
@@ -1604,13 +1604,13 @@ void VoxelSystem::falseColorizeBySource() { · 1603 unmodified lines
16041604 };
16051605
16061606 // create a bunch of colors we'll use during colorization
1607− NodeList* nodeList = NodeList::getInstance();
1608− for (NodeList::iterator node = nodeList->begin(); node != nodeList->end(); node++) {
1607+
1608+ foreach (const SharedNodePointer& node, NodeList::getInstance()->getNodeHash()) {
16091609 if (node->getType() == NODE_TYPE_VOXEL_SERVER) {
16101610 uint16_t nodeID = VoxelTreeElement::getSourceNodeUUIDKey(node->getUUID());
16111611 int groupColor = voxelServerCount % NUMBER_OF_COLOR_GROUPS;
16121612 args.colors[nodeID] = groupColors[groupColor];
1613−
1613+
16141614 if (groupColors[groupColor].red > 0) {
16151615 groupColors[groupColor].red = ((groupColors[groupColor].red - MIN_COLOR)/2) + MIN_COLOR;
16161616 }
@@ -1620,7 +1620,7 @@ void VoxelSystem::falseColorizeBySource() { · 3 unmodified lines
16201620 if (groupColors[groupColor].blue > 0) {
16211621 groupColors[groupColor].blue = ((groupColors[groupColor].blue - MIN_COLOR)/2) + MIN_COLOR;
16221622 }
1623−
1623+
16241624 voxelServerCount++;
16251625 }
16261626 }
@@ -2683,7 +2683,7 @@ void VoxelSystem::falseColorizeOccludedV2() { · 1056 unmodified lines
26832683 setupNewVoxelsForDrawing();
26842684 }
26852685
2686−void VoxelSystem::nodeAdded(Node* node) {
2686+void VoxelSystem::nodeAdded(SharedNodePointer node) {
26872687 if (node->getType() == NODE_TYPE_VOXEL_SERVER) {
26882688 qDebug("VoxelSystem... voxel server %s added...", node->getUUID().toString().toLocal8Bit().constData());
26892689 _voxelServerCount++;
@@ -2704,7 +2704,7 @@ bool VoxelSystem::killSourceVoxelsOperation(OctreeElement* element, void* extraD · 14 unmodified lines
27042704 return true;
27052705 }
27062706
2707−void VoxelSystem::nodeKilled(Node* node) {
2707+void VoxelSystem::nodeKilled(SharedNodePointer node) {
27082708 if (node->getType() == NODE_TYPE_VOXEL_SERVER) {
27092709 _voxelServerCount--;
27102710 QUuid nodeUUID = node->getUUID();