You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Lots of work on Audio & Physics engine:
-Added new 3D stream player node -Added ability for Area to capture sound from streams -Added small features in physics to be able to properly guess distance to areas for sound -Fixed 3D CollisionObject so shapes are added the same as in 2D, directly from children -Fixed KinematicBody API to make it the same as 2D.
This commit is contained in:
@@ -1953,6 +1953,14 @@ void Tree::text_editor_enter(String p_text) {
|
||||
c.val = evaluator->eval(p_text);
|
||||
else
|
||||
c.val = p_text.to_double();
|
||||
|
||||
if (c.step > 0)
|
||||
c.val = Math::stepify(c.val, c.step);
|
||||
if (c.val < c.min)
|
||||
c.val = c.min;
|
||||
else if (c.val > c.max)
|
||||
c.val = c.max;
|
||||
|
||||
} break;
|
||||
default: { ERR_FAIL(); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user