You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Overloaded basic math funcs (double and float variants). Use real_t rather than float or double in generic functions (core/math) whenever possible.
Also inlined some more math functions.
This commit is contained in:
@@ -216,7 +216,7 @@ void MultiMeshEditor::_populate() {
|
||||
|
||||
for(int i=0;i<instance_count;i++) {
|
||||
|
||||
float areapos = Math::random(0,area_accum);
|
||||
float areapos = Math::random(0.0f,area_accum);
|
||||
|
||||
Map<float,int>::Element *E = triangle_area_map.find_closest(areapos);
|
||||
ERR_FAIL_COND(!E)
|
||||
|
||||
Reference in New Issue
Block a user