You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
CollisionPolygon (3D)
Workaround for round() on PC.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user