mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
CollisionPolygon (3D)
Workaround for round() on PC.
This commit is contained in:
parent
642c63319e
commit
f00f4b9296
16 changed files with 1114 additions and 69 deletions
|
|
@ -690,10 +690,16 @@ void SpatialEditorViewport::_sinput(const InputEvent &p_event) {
|
|||
|
||||
case BUTTON_WHEEL_UP: {
|
||||
|
||||
|
||||
cursor.distance/=1.08;
|
||||
if (cursor.distance<0.001)
|
||||
cursor.distance=0.001;
|
||||
|
||||
} break;
|
||||
case BUTTON_WHEEL_DOWN: {
|
||||
|
||||
if (cursor.distance<0.001)
|
||||
cursor.distance=0.001;
|
||||
cursor.distance*=1.08;
|
||||
|
||||
} break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue