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:
parent
e64b82ebfc
commit
2e73be99d8
64 changed files with 3834 additions and 2497 deletions
|
|
@ -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(); }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue