File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -545,6 +545,12 @@ void SpinBox::_set_step_no_signal(double p_step) {
545545 set_block_signals (false );
546546}
547547
548+ void SpinBox::_validate_property (PropertyInfo &p_property) const {
549+ if (p_property.name == " exp_edit" ) {
550+ p_property.usage = PROPERTY_USAGE_NONE;
551+ }
552+ }
553+
548554void SpinBox::_bind_methods () {
549555 ClassDB::bind_method (D_METHOD (" set_horizontal_alignment" , " alignment" ), &SpinBox::set_horizontal_alignment);
550556 ClassDB::bind_method (D_METHOD (" get_horizontal_alignment" ), &SpinBox::get_horizontal_alignment);
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ class SpinBox : public Range {
139139protected:
140140 virtual void gui_input (const Ref<InputEvent> &p_event) override ;
141141 void _value_changed (double p_value) override ;
142+ void _validate_property (PropertyInfo &p_property) const ;
142143
143144 void _notification (int p_what);
144145 static void _bind_methods ();
You can’t perform that action at this time.
0 commit comments