Skip to content

Commit

Permalink
Fix template deduction (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Aug 25, 2024
1 parent 0b02717 commit fa92fc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions modifiers/voxel_modifier_sphere.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace zylann::voxel {

void VoxelModifierSphere::set_radius(real_t radius) {
void VoxelModifierSphere::set_radius(float radius) {
RWLockWrite wlock(_rwlock);
if (radius == _radius) {
return;
Expand All @@ -18,7 +18,7 @@ void VoxelModifierSphere::set_radius(real_t radius) {
update_aabb();
}

real_t VoxelModifierSphere::get_radius() const {
float VoxelModifierSphere::get_radius() const {
return _radius;
}

Expand Down
6 changes: 3 additions & 3 deletions modifiers/voxel_modifier_sphere.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ class VoxelModifierSphere : public VoxelModifierSdf {
Type get_type() const override {
return TYPE_SPHERE;
};
void set_radius(real_t radius);
real_t get_radius() const;
void set_radius(float radius);
float get_radius() const;
void apply(VoxelModifierContext ctx) const override;
void get_shader_data(ShaderData &out_shader_data) override;

protected:
void update_aabb() override;

private:
real_t _radius = 10.f;
float _radius = 10.f;
};

} // namespace zylann::voxel
Expand Down

0 comments on commit fa92fc3

Please sign in to comment.