Remove unused member variable in EditorInspectorSection

This commit is contained in:
Haoyu Qiu 2024-05-27 08:07:41 +08:00
parent be56cab58c
commit d35053056e
2 changed files with 2 additions and 9 deletions

View file

@ -1466,12 +1466,6 @@ void EditorInspectorSection::_notification(int p_what) {
draw_string(font, text_offset, label, text_align, available, font_size, font_color, TextServer::JUSTIFICATION_KASHIDA | TextServer::JUSTIFICATION_CONSTRAIN_ELLIPSIS); draw_string(font, text_offset, label, text_align, available, font_size, font_color, TextServer::JUSTIFICATION_KASHIDA | TextServer::JUSTIFICATION_CONSTRAIN_ELLIPSIS);
} }
// Draw dropping highlight.
if (dropping && !vbox->is_visible_in_tree()) {
Color accent_color = get_theme_color(SNAME("accent_color"), EditorStringName(Editor));
draw_rect(Rect2(Point2(), get_size()), accent_color, false);
}
// Draw section indentation. // Draw section indentation.
if (section_indent_style.is_valid() && section_indent > 0) { if (section_indent_style.is_valid() && section_indent > 0) {
Rect2 indent_rect = Rect2(Vector2(), Vector2(indent_depth * section_indent_size, get_size().height)); Rect2 indent_rect = Rect2(Vector2(), Vector2(indent_depth * section_indent_size, get_size().height));
@ -1493,14 +1487,14 @@ void EditorInspectorSection::_notification(int p_what) {
} break; } break;
case NOTIFICATION_MOUSE_ENTER: { case NOTIFICATION_MOUSE_ENTER: {
if (dropping || dropping_for_unfold) { if (dropping_for_unfold) {
dropping_unfold_timer->start(); dropping_unfold_timer->start();
} }
queue_redraw(); queue_redraw();
} break; } break;
case NOTIFICATION_MOUSE_EXIT: { case NOTIFICATION_MOUSE_EXIT: {
if (dropping || dropping_for_unfold) { if (dropping_for_unfold) {
dropping_unfold_timer->stop(); dropping_unfold_timer->stop();
} }
queue_redraw(); queue_redraw();

View file

@ -304,7 +304,6 @@ class EditorInspectorSection : public Container {
int indent_depth = 0; int indent_depth = 0;
Timer *dropping_unfold_timer = nullptr; Timer *dropping_unfold_timer = nullptr;
bool dropping = false;
bool dropping_for_unfold = false; bool dropping_for_unfold = false;
HashSet<StringName> revertable_properties; HashSet<StringName> revertable_properties;