summaryrefslogtreecommitdiffstats
path: root/editor/editor_inspector.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-09-04 11:16:28 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-09-04 11:16:28 +0200
commit7f6e1693dd6c19c63e6ea7ca3356d5dcac58002d (patch)
treed206d4ab71d2609d393409ec0cb26ab99f962afa /editor/editor_inspector.cpp
parent8eff04192bce4b022b3cd6bc1db04e61150ecc47 (diff)
parentd35053056ef689d1c4311f90d79f144adb29c6a5 (diff)
downloadredot-engine-7f6e1693dd6c19c63e6ea7ca3356d5dcac58002d.tar.gz
Merge pull request #92407 from timothyqiu/section-dropping
Remove unused member variable in `EditorInspectorSection`
Diffstat (limited to 'editor/editor_inspector.cpp')
-rw-r--r--editor/editor_inspector.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
index 1e5acce032..a1cae374aa 100644
--- a/editor/editor_inspector.cpp
+++ b/editor/editor_inspector.cpp
@@ -1500,12 +1500,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 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.
if (section_indent_style.is_valid() && section_indent > 0) {
Rect2 indent_rect = Rect2(Vector2(), Vector2(indent_depth * section_indent_size, get_size().height));
@@ -1527,14 +1521,14 @@ void EditorInspectorSection::_notification(int p_what) {
} break;
case NOTIFICATION_MOUSE_ENTER: {
- if (dropping || dropping_for_unfold) {
+ if (dropping_for_unfold) {
dropping_unfold_timer->start();
}
queue_redraw();
} break;
case NOTIFICATION_MOUSE_EXIT: {
- if (dropping || dropping_for_unfold) {
+ if (dropping_for_unfold) {
dropping_unfold_timer->stop();
}
queue_redraw();