Skip to content

Commit

Permalink
prevent ambiguity of 'abs(synfig::Real&)' on Plant (#2617)
Browse files Browse the repository at this point in the history
fix #2612
  • Loading branch information
rodolforg committed Apr 25, 2022
1 parent 71775e6 commit 6732c6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synfig-core/src/modules/mod_particle/plant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ Plant::sync()const

etl::hermite<Vector> curve;

Real step(abs(step_));
Real step(std::fabs(step_));

int seg(0);

Expand Down Expand Up @@ -582,7 +582,7 @@ Plant::draw_particles(Surface *dest_surface, const RendDesc &renddesc)const
std::vector<Particle>::iterator iter;
Particle *particle;

float radius(size*sqrt(1.0f/(abs(pw)*abs(ph))));
float radius(size*sqrt(1.0f/(std::fabs(pw)*std::fabs(ph))));

int x1,y1,x2,y2;

Expand Down

0 comments on commit 6732c6c

Please sign in to comment.