feat: removed practically unneeded properties

This commit is contained in:
Sara Gerretsen 2026-02-26 20:24:25 +01:00
parent 2efd3d2ddf
commit 65bf506f0b
3 changed files with 43 additions and 106 deletions

View file

@ -12,9 +12,6 @@ class TerrainModifier : public Marker3D {
GDCLASS(TerrainModifier, Marker3D);
static void _bind_methods();
public:
GDENUM(BlendMode, Add, Subtract, Override);
protected:
void _notification(int what);
float blend(float under, float over);
@ -25,7 +22,6 @@ public:
private:
float blend_distance{ 10.0 };
BlendMode blend_mode{ Add };
Vector3 thread_safe_global_position{};
Terrain *terrain{ nullptr };
Rect2 bounds{ { -INFINITY, -INFINITY }, { INFINITY, INFINITY } };
@ -37,13 +33,9 @@ public:
Vector3 get_thread_safe_global_position() const;
void set_blend_distance(float value);
float get_blend_distance() const;
void set_blend_mode(BlendMode mode);
BlendMode get_blend_mode() const;
GET_SET_FNS(Terrain *, terrain);
};
MAKE_TYPE_INFO(TerrainModifier::BlendMode, Variant::INT);
struct SharedMutex {
void lock_shared();
void unlock_shared();
@ -72,11 +64,8 @@ public:
private:
SharedMutex lock{};
Ref<Curve> distance_weight_curve{};
Ref<Curve> distance_height_curve{};
public:
void set_distance_weight_curve(Ref<Curve> curve);
Ref<Curve> get_distance_weight_curve() const;
void set_distance_height_curve(Ref<Curve> curve);
Ref<Curve> get_distance_height_curve() const;
};