Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Set SpinBox's internal node's use_parent_material to true

Ratamacue91129d7c727f12f7
diff --git a/scene/gui/spin_box.cpp b/scene/gui/spin_box.cpp
index 3bc9f3461b4..fcd839091f0 100644
--- a/scene/gui/spin_box.cpp
+++ b/scene/gui/spin_box.cpp
@@ -735,6 +735,7 @@ void SpinBox::_bind_methods() {
SpinBox::SpinBox() {
line_edit = memnew(SpinBoxLineEdit);
line_edit->set_emoji_menu_enabled(false);
+ line_edit->set_use_parent_material(true);
add_child(line_edit, false, INTERNAL_MODE_FRONT);
line_edit->set_theme_type_variation("SpinBoxInnerLineEdit");