Some code simplifications
1. `number_width` isn't used later 2. `return_type` is used only once 3. AudioServer::get_singleton()->get_channel_count() always returns a channel_count of 1 or larger 4. negative `aa->backward` conditional 5. `current_canvas` == `find_world_2d()->get_canvas()` 6. identical if `render_shadows`
This commit is contained in:
parent
3f02cf7ced
commit
826e54fa73
6 changed files with 9 additions and 18 deletions
|
|
@ -367,7 +367,6 @@ void EditorSpinSlider::_draw_spin_slider() {
|
|||
|
||||
if (!hide_slider) {
|
||||
if (get_step() == 1) {
|
||||
number_width -= updown->get_width();
|
||||
Ref<Texture2D> updown2 = get_theme_icon(is_read_only() ? SNAME("updown_disabled") : SNAME("updown"), SNAME("SpinBox"));
|
||||
int updown_vofs = (size.height - updown2->get_height()) / 2;
|
||||
if (rtl) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue