mirror of
https://github.com/Relintai/voxelman.git
synced 2024-11-20 10:47:19 +01:00
VoxelJob should be a inherited from Reference if ThreadPool is not available.
This commit is contained in:
parent
b069d38265
commit
4ecc424b84
@ -28,7 +28,7 @@ SOFTWARE.
|
||||
#if THREAD_POOL_PRESENT
|
||||
#include "../../../thread_pool/thread_pool_job.h"
|
||||
#else
|
||||
#include "core/resource.h"
|
||||
#include "core/reference.h"
|
||||
#endif
|
||||
|
||||
#include "../../defines.h"
|
||||
@ -43,8 +43,8 @@ class VoxelChunk;
|
||||
class VoxelJob : public ThreadPoolJob {
|
||||
GDCLASS(VoxelJob, ThreadPoolJob);
|
||||
#else
|
||||
class VoxelJob : public Resource {
|
||||
GDCLASS(VoxelJob, Resource);
|
||||
class VoxelJob : public Reference {
|
||||
GDCLASS(VoxelJob, Reference);
|
||||
#endif
|
||||
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user