mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 11:28:03 +02:00
don't accept voxel packet if rendering is turned off, correct boolean for kill
This commit is contained in:
parent
38d8041bfb
commit
9f9d8e59bd
1 changed files with 14 additions and 12 deletions
|
@ -1245,7 +1245,7 @@ void Application::setRenderWarnings(bool renderWarnings) {
|
|||
}
|
||||
|
||||
void Application::setRenderVoxels(bool voxelRender) {
|
||||
if (voxelRender) {
|
||||
if (!voxelRender) {
|
||||
doKillLocalVoxels();
|
||||
}
|
||||
}
|
||||
|
@ -3246,6 +3246,7 @@ void* Application::networkReceive(void* args) {
|
|||
case PACKET_TYPE_Z_COMMAND:
|
||||
case PACKET_TYPE_ERASE_VOXEL:
|
||||
case PACKET_TYPE_ENVIRONMENT_DATA: {
|
||||
if (app->_renderVoxels->isChecked()) {
|
||||
Node* voxelServer = NodeList::getInstance()->soloNodeOfType(NODE_TYPE_VOXEL_SERVER);
|
||||
if (voxelServer) {
|
||||
voxelServer->lock();
|
||||
|
@ -3258,6 +3259,7 @@ void* Application::networkReceive(void* args) {
|
|||
|
||||
voxelServer->unlock();
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case PACKET_TYPE_BULK_AVATAR_DATA:
|
||||
|
|
Loading…
Reference in a new issue