Skip to content

Commit 98f19c2

Browse files
committed
class_db.h has been removed from a lot of Godot headers
1 parent 0bb7a6a commit 98f19c2

File tree

52 files changed

+202
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+202
-1
lines changed

edition/floating_chunks.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
#include "../util/profiling.h"
1515
#include "voxel_tool.h"
1616

17+
#ifdef ZN_GODOT
18+
#include <core/object/callable_method_pointer.h>
19+
#endif
20+
1721
namespace zylann::voxel {
1822

1923
void box_propagate_ccl(Span<uint8_t> cells, const Vector3i size) {

edition/voxel_raycast_result.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#include "voxel_raycast_result.h"
22

3+
#ifdef ZN_GODOT
4+
#include "../util/godot/core/class_db.h"
5+
#endif
6+
37
namespace zylann::voxel {
48

59
Vector3i VoxelRaycastResult::_b_get_position() const {

edition/voxel_tool.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
#include "../util/profiling.h"
99
#include "funcs.h"
1010

11+
#ifdef ZN_GODOT
12+
#include "../util/godot/core/class_db.h"
13+
#endif
14+
1115
#ifdef VOXEL_ENABLE_MESH_SDF
1216
#include "voxel_mesh_sdf_gd.h"
1317
#endif

editor/blocky_library/types/voxel_blocky_type_library_editor_inspector_plugin.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
#include "../../../util/godot/core/string.h"
44
#include "voxel_blocky_type_library_ids_dialog.h"
55

6+
#ifdef ZN_GODOT
7+
#include "../../../util/godot/core/class_db.h"
8+
#endif
9+
610
namespace zylann::voxel {
711

812
bool VoxelBlockyTypeLibraryEditorInspectorPlugin::_zn_can_handle(const Object *p_object) const {

editor/fast_noise_lite/fast_noise_lite_viewer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
#include "../../util/godot/classes/texture_rect.h"
66
#include "../../util/godot/editor_scale.h"
77

8+
#ifdef ZN_GODOT
9+
#include "../../util/godot/core/class_db.h"
10+
#endif
11+
812
namespace zylann {
913

1014
ZN_FastNoiseLiteViewer::ZN_FastNoiseLiteViewer() {

editor/instance_library/voxel_instance_library_multimesh_item_inspector_plugin.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
#include "voxel_instance_library_editor_plugin.h"
88
#include "voxel_instance_library_multimesh_item_editor_plugin.h"
99

10+
#ifdef ZN_GODOT
11+
#include "../../util/godot/core/class_db.h"
12+
#endif
13+
1014
namespace zylann::voxel {
1115

1216
bool VoxelInstanceLibraryMultiMeshItemInspectorPlugin::_zn_can_handle(const Object *p_object) const {

editor/spot_noise/spot_noise_viewer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
#include "../../util/godot/classes/texture_rect.h"
77
#include "../../util/godot/editor_scale.h"
88

9+
#ifdef ZN_GODOT
10+
#include "../../util/godot/core/class_db.h"
11+
#endif
12+
913
namespace zylann {
1014

1115
ZN_SpotNoiseViewer::ZN_SpotNoiseViewer() {

generators/multipass/voxel_tool_multipass_generator.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
#include "../../util/math/vector3.h"
77
#include "../../util/string/format.h"
88

9+
#ifdef ZN_GODOT
10+
#include "../util/godot/core/class_db.h"
11+
#endif
12+
913
namespace zylann::voxel {
1014

1115
using namespace VoxelGeneratorMultipassCBStructs;

generators/simple/voxel_generator_flat.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#include "voxel_generator_flat.h"
22

3+
#ifdef ZN_GODOT
4+
#include "../../util/godot/core/class_db.h"
5+
#endif
6+
37
namespace zylann::voxel {
48

59
VoxelGeneratorFlat::VoxelGeneratorFlat() {}

generators/simple/voxel_generator_heightmap.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
#include "../../util/containers/fixed_array.h"
33
#include "../../util/containers/span.h"
44

5+
#ifdef ZN_GODOT
6+
#include "../../util/godot/core/class_db.h"
7+
#endif
8+
59
namespace zylann::voxel {
610

711
VoxelGeneratorHeightmap::VoxelGeneratorHeightmap() {}

0 commit comments

Comments
 (0)