mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
delete voxels locally on edit to match add behavior
This commit is contained in:
parent
90c64ab25c
commit
aac6d409d2
1 changed files with 4 additions and 0 deletions
|
@ -3338,6 +3338,10 @@ void Application::deleteVoxelUnderCursor() {
|
|||
if (_mouseVoxel.s != 0) {
|
||||
// sending delete to the server is sufficient, server will send new version so we see updates soon enough
|
||||
_voxelEditSender.sendVoxelEditMessage(PACKET_TYPE_ERASE_VOXEL, _mouseVoxel);
|
||||
|
||||
// delete it locally to see the effect immediately (and in case no voxel server is present)
|
||||
_voxels.deleteVoxelAt(_mouseVoxel.x, _mouseVoxel.y, _mouseVoxel.z, _mouseVoxel.s);
|
||||
|
||||
AudioInjector* voxelInjector = AudioInjectionManager::injectorWithCapacity(5000);
|
||||
|
||||
if (voxelInjector) {
|
||||
|
|
Loading…
Reference in a new issue