You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Merge pull request #7528 from tagcup/real_t_float_fixes
Use real_t rather than float or double in generic functions (core/mat…
This commit is contained in:
@@ -1503,12 +1503,12 @@ void CustomPropertyEditor::_drag_easing(const InputEvent& p_ev) {
|
||||
bool sg = val < 0;
|
||||
val = Math::absf(val);
|
||||
|
||||
val = Math::log(val)/Math::log(2);
|
||||
val = Math::log(val)/Math::log((float)2.0);
|
||||
//logspace
|
||||
val+=rel*0.05;
|
||||
//
|
||||
|
||||
val = Math::pow(2,val);
|
||||
val = Math::pow(2.0f,val);
|
||||
if (sg)
|
||||
val=-val;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user