mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
Merge branch 'master' of https://github.com/worklist/hifi into add_fs_data_in_head_data
This commit is contained in:
commit
74e929100a
3 changed files with 10 additions and 8 deletions
|
@ -59,6 +59,7 @@ void childClient() {
|
|||
if (usecTimestampNow() - usecTimestamp(&lastRequest) >= ASSIGNMENT_REQUEST_INTERVAL_USECS) {
|
||||
gettimeofday(&lastRequest, NULL);
|
||||
// if we're here we have no assignment, so send a request
|
||||
qDebug() << "Sending an assignment request -" << requestAssignment << "\n";
|
||||
nodeList->sendAssignment(requestAssignment);
|
||||
}
|
||||
|
||||
|
|
|
@ -393,7 +393,7 @@ void NodeList::sendAssignment(Assignment& assignment) {
|
|||
? (sockaddr*) &GLOBAL_ASSIGNMENT_SOCKET
|
||||
: _assignmentServerSocket;
|
||||
|
||||
_nodeSocket.send((sockaddr*) assignmentServerSocket, assignmentPacket, numHeaderBytes + numAssignmentBytes);
|
||||
_nodeSocket.send(assignmentServerSocket, assignmentPacket, numHeaderBytes + numAssignmentBytes);
|
||||
}
|
||||
|
||||
Node* NodeList::addOrUpdateNode(sockaddr* publicSocket, sockaddr* localSocket, char nodeType, uint16_t nodeId) {
|
||||
|
|
|
@ -1772,6 +1772,14 @@ void VoxelTree::copySubTreeIntoNewTree(VoxelNode* startNode, VoxelTree* destinat
|
|||
ReadBitstreamToTreeParams args(WANT_COLOR, NO_EXISTS_BITS);
|
||||
destinationTree->readBitstreamToTree(&outputBuffer[0], bytesWritten, args);
|
||||
}
|
||||
|
||||
VoxelNode* destinationStartNode;
|
||||
if (rebaseToRoot) {
|
||||
destinationStartNode = destinationTree->rootNode;
|
||||
} else {
|
||||
destinationStartNode = nodeForOctalCode(destinationTree->rootNode, startNode->getOctalCode(), NULL);
|
||||
}
|
||||
destinationStartNode->setColor(startNode->getColor());
|
||||
}
|
||||
|
||||
void VoxelTree::copyFromTreeIntoSubTree(VoxelTree* sourceTree, VoxelNode* destinationNode) {
|
||||
|
@ -2041,13 +2049,6 @@ void VoxelTree::nudgeSubTree(VoxelNode* nodeToNudge, const glm::vec3& nudgeAmoun
|
|||
return;
|
||||
}
|
||||
|
||||
// get octal code of this node
|
||||
unsigned char* octalCode = nodeToNudge->getOctalCode();
|
||||
|
||||
// get voxel position/size
|
||||
VoxelPositionSize ancestorDetails;
|
||||
voxelDetailsForCode(octalCode, ancestorDetails);
|
||||
|
||||
NodeChunkArgs args;
|
||||
args.thisVoxelTree = this;
|
||||
args.nudgeVec = nudgeAmount;
|
||||
|
|
Loading…
Reference in a new issue