You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Core: Use Math namespace for constants
This commit is contained in:
@@ -62,7 +62,7 @@ void MaterialEditor::gui_input(const Ref<InputEvent> &p_event) {
|
||||
const real_t limit = Math::deg_to_rad(80.0);
|
||||
rot = rot.clampf(-limit, limit);
|
||||
} else {
|
||||
rot.x = CLAMP(rot.x, -Math_PI / 2, Math_PI / 2);
|
||||
rot.x = CLAMP(rot.x, -Math::PI / 2, Math::PI / 2);
|
||||
}
|
||||
_update_rotation();
|
||||
_store_rotation_metadata();
|
||||
|
||||
Reference in New Issue
Block a user