godot_voxel/storage/voxel_data_block.cpp
2022-06-04 02:44:00 +01:00

17 lines
367 B
C++

#include "voxel_data_block.h"
#include "../util/log.h"
#include "../util/string_funcs.h"
namespace zylann::voxel {
void VoxelDataBlock::set_modified(bool modified) {
#ifdef TOOLS_ENABLED
if (_modified == false && modified) {
ZN_PRINT_VERBOSE(format("Marking block {} as modified", size_t(this)));
}
#endif
_modified = modified;
}
} // namespace zylann::voxel