mirror of
https://github.com/Relintai/voxelman.git
synced 2025-01-25 15:09:18 +01:00
Also add the reset code to VoxelPropJob.
This commit is contained in:
parent
8ff53e4299
commit
643f76f7e8
@ -43,6 +43,13 @@ void VoxelPropJob::set_prop_mesher(const Ref<VoxelMesher> &mesher) {
|
|||||||
_prop_mesher = mesher;
|
_prop_mesher = mesher;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void VoxelPropJob::phase_reset() {
|
||||||
|
if (get_prop_mesher().is_valid()) {
|
||||||
|
get_prop_mesher()->reset();
|
||||||
|
get_prop_mesher()->set_library(_chunk->get_library());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void VoxelPropJob::phase_prop() {
|
void VoxelPropJob::phase_prop() {
|
||||||
#ifdef MESH_DATA_RESOURCE_PRESENT
|
#ifdef MESH_DATA_RESOURCE_PRESENT
|
||||||
Ref<VoxelChunkDefault> chunk = _chunk;
|
Ref<VoxelChunkDefault> chunk = _chunk;
|
||||||
|
@ -34,6 +34,7 @@ public:
|
|||||||
Ref<VoxelMesher> get_prop_mesher() const;
|
Ref<VoxelMesher> get_prop_mesher() const;
|
||||||
void set_prop_mesher(const Ref<VoxelMesher> &mesher);
|
void set_prop_mesher(const Ref<VoxelMesher> &mesher);
|
||||||
|
|
||||||
|
void phase_reset();
|
||||||
void phase_prop();
|
void phase_prop();
|
||||||
|
|
||||||
void _execute();
|
void _execute();
|
||||||
|
Loading…
Reference in New Issue
Block a user