Skip to content

Commit 305befb

Browse files
committed
Fix hint.radians_as_degrees on Vector2 and Vector4 editor properties
1 parent 42c7f14 commit 305befb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

editor/editor_properties.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3830,7 +3830,7 @@ EditorProperty *EditorInspectorDefaultPlugin::get_editor_for_property(Object *p_
38303830
EditorPropertyVector2 *editor = memnew(EditorPropertyVector2(p_wide));
38313831

38323832
EditorPropertyRangeHint hint = _parse_range_hint(p_hint, p_hint_text, default_float_step);
3833-
editor->setup(hint.min, hint.max, hint.step, hint.hide_slider, p_hint == PROPERTY_HINT_LINK, hint.suffix);
3833+
editor->setup(hint.min, hint.max, hint.step, hint.hide_slider, p_hint == PROPERTY_HINT_LINK, hint.suffix, hint.radians_as_degrees);
38343834
return editor;
38353835

38363836
} break;
@@ -3871,7 +3871,7 @@ EditorProperty *EditorInspectorDefaultPlugin::get_editor_for_property(Object *p_
38713871
case Variant::VECTOR4: {
38723872
EditorPropertyVector4 *editor = memnew(EditorPropertyVector4);
38733873
EditorPropertyRangeHint hint = _parse_range_hint(p_hint, p_hint_text, default_float_step);
3874-
editor->setup(hint.min, hint.max, hint.step, hint.hide_slider, p_hint == PROPERTY_HINT_LINK, hint.suffix);
3874+
editor->setup(hint.min, hint.max, hint.step, hint.hide_slider, p_hint == PROPERTY_HINT_LINK, hint.suffix, hint.radians_as_degrees);
38753875
return editor;
38763876

38773877
} break;

0 commit comments

Comments
 (0)