diff --git a/SCsub b/SCsub index 05635be..dd4a8c7 100644 --- a/SCsub +++ b/SCsub @@ -16,5 +16,4 @@ env.add_source_files(env.modules_sources,"meshers/transvoxel_tables.cpp") env.add_source_files(env.modules_sources,"utility/marching_cubes_voxel_query.cpp") - - +env.add_source_files(env.modules_sources,"world/voxel_buffer.cpp") diff --git a/register_types.cpp b/register_types.cpp index 645fda2..73e9c45 100644 --- a/register_types.cpp +++ b/register_types.cpp @@ -10,6 +10,8 @@ #include "utility/marching_cubes_voxel_query.h" +#include "world/voxel_buffer.h" + void register_voxelman_types() { ClassDB::register_class(); ClassDB::register_class(); @@ -23,6 +25,8 @@ void register_voxelman_types() { ClassDB::register_class(); ClassDB::register_class(); + + ClassDB::register_class(); } void unregister_voxelman_types() { diff --git a/voxelman b/voxelman new file mode 120000 index 0000000..f4da684 --- /dev/null +++ b/voxelman @@ -0,0 +1 @@ +../../modules/voxelman \ No newline at end of file diff --git a/world/voxel_buffer.h b/world/voxel_buffer.h index f09352a..1c97287 100644 --- a/world/voxel_buffer.h +++ b/world/voxel_buffer.h @@ -20,9 +20,9 @@ #ifndef VOXEL_BUFFER_H #define VOXEL_BUFFER_H -#include "math/vector3i.h" -#include -#include +#include "../math/vector3i.h" +#include "core/reference.h" +#include "core/vector.h" // Dense voxels data storage. // Organized in 8-bit channels like images, all optional.