Skip to content

Commit f4cedd1

Browse files
committed
Don't register PolyMesh4D when compiling
1 parent 2a11632 commit f4cedd1

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

addons/4d/SConstruct

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ env.Append(
1717
"../../model/g4mf/structures",
1818
"../../model/g4mf/structures/physics",
1919
"../../model/mesh",
20-
"../../model/mesh/poly",
2120
"../../model/mesh/tetra",
2221
"../../model/mesh/wire",
2322
"../../model/off",
@@ -44,7 +43,6 @@ sources = (
4443
+ Glob("../../model/g4mf/structures/*.cpp")
4544
+ Glob("../../model/g4mf/structures/physics/*.cpp")
4645
+ Glob("../../model/mesh/*.cpp")
47-
+ Glob("../../model/mesh/poly/*.cpp")
4846
+ Glob("../../model/mesh/tetra/*.cpp")
4947
+ Glob("../../model/mesh/wire/*.cpp")
5048
+ Glob("../../model/off/*.cpp")

register_types.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,13 @@
2929
// Virtual classes.
3030
#include "model/mesh/material_4d.h"
3131
#include "model/mesh/mesh_4d.h"
32-
#include "model/mesh/poly/poly_mesh_4d.h"
3332
#include "model/mesh/tetra/tetra_mesh_4d.h"
3433
#include "model/mesh/wire/wire_mesh_4d.h"
3534
#include "physics/shapes/shape_4d.h"
3635

3736
// Model.
3837
#include "model/g4mf/g4mf_document_4d.h"
3938
#include "model/mesh/mesh_instance_4d.h"
40-
#include "model/mesh/poly/array_poly_mesh_4d.h"
41-
#include "model/mesh/poly/box_poly_mesh_4d.h"
42-
#include "model/mesh/poly/orthoplex_poly_mesh_4d.h"
4339
#include "model/mesh/tetra/array_tetra_mesh_4d.h"
4440
#include "model/mesh/tetra/box_tetra_mesh_4d.h"
4541
#include "model/mesh/tetra/orthoplex_tetra_mesh_4d.h"
@@ -160,7 +156,6 @@ void initialize_4d_module(ModuleInitializationLevel p_level) {
160156
GDREGISTER_VIRTUAL_CLASS(PhysicsBody4D);
161157
GDREGISTER_VIRTUAL_CLASS(Shape4D);
162158
GDREGISTER_VIRTUAL_CLASS(TetraMesh4D);
163-
GDREGISTER_VIRTUAL_CLASS(PolyMesh4D);
164159
GDREGISTER_VIRTUAL_CLASS(WireMesh4D);
165160
#if GODOT_VERSION_MAJOR > 4 || (GODOT_VERSION_MAJOR == 4 && GODOT_VERSION_MINOR > 3)
166161
// In Godot 4.4+, preload the cross-section shaders. In Godot 4.3, lazy-load them when needed.
@@ -170,15 +165,12 @@ void initialize_4d_module(ModuleInitializationLevel p_level) {
170165
TetraMesh4D::init_fallback_material();
171166
WireMesh4D::init_fallback_material();
172167
// Mesh.
173-
GDREGISTER_CLASS(ArrayPolyMesh4D);
174168
GDREGISTER_CLASS(ArrayTetraMesh4D);
175169
GDREGISTER_CLASS(ArrayWireMesh4D);
176-
GDREGISTER_CLASS(BoxPolyMesh4D);
177170
GDREGISTER_CLASS(BoxTetraMesh4D);
178171
GDREGISTER_CLASS(BoxWireMesh4D);
179172
GDREGISTER_CLASS(MeshInstance4D);
180173
GDREGISTER_CLASS(OFFDocument4D);
181-
GDREGISTER_CLASS(OrthoplexPolyMesh4D);
182174
GDREGISTER_CLASS(OrthoplexTetraMesh4D);
183175
GDREGISTER_CLASS(OrthoplexWireMesh4D);
184176
GDREGISTER_CLASS(WireMeshBuilder4D);

render/cross_section/cross_section_rendering_engine_4d.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include "cross_section_rendering_engine_4d.h"
22

33
#include "../../model/mesh/mesh_instance_4d.h"
4-
#include "../../model/mesh/poly/poly_material_4d.h"
54
#include "../../nodes/camera_4d.h"
65

76
#if GDEXTENSION
@@ -47,13 +46,6 @@ void CrossSectionRenderingEngine4D::render_frame() {
4746
material_4d = mesh_4d->get_fallback_material();
4847
}
4948
if (material_4d.is_valid()) {
50-
Ref<PolyMaterial4D> poly_material_4d = material_4d;
51-
if (poly_material_4d.is_valid()) {
52-
Ref<TetraMesh4D> poly_mesh_4d_or_poly_derived_tetra_mesh_4d = mesh_4d;
53-
if (poly_mesh_4d_or_poly_derived_tetra_mesh_4d.is_valid()) {
54-
poly_material_4d->populate_albedo_color_array_for_poly_mesh(poly_mesh_4d_or_poly_derived_tetra_mesh_4d);
55-
}
56-
}
5749
Ref<Material> override_material_3d = material_4d->get_cross_section_material();
5850
ERR_CONTINUE(!override_material_3d.is_valid());
5951
RenderingServer::get_singleton()->instance_set_surface_override_material(instance_3d, 0, override_material_3d->get_rid());

0 commit comments

Comments
 (0)