Skip to content

Commit

Permalink
Remove signal connections
Browse files Browse the repository at this point in the history
  • Loading branch information
aXu-AP committed Nov 20, 2024
1 parent 696d8a2 commit 14b2ab1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions editor/plugins/polygon_2d_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ Node2D *Polygon2DEditor::_get_node() const {
void Polygon2DEditor::_set_node(Node *p_polygon) {
CanvasItem *draw = Object::cast_to<CanvasItem>(uv_edit_draw);

Check failure on line 61 in editor/plugins/polygon_2d_editor_plugin.cpp

View workflow job for this annotation

GitHub Actions / 🐧 Linux / Editor w/ Mono (target=editor)

unused variable 'draw' [-Werror=unused-variable]

Check failure on line 61 in editor/plugins/polygon_2d_editor_plugin.cpp

View workflow job for this annotation

GitHub Actions / 🐧 Linux / Editor with doubles and GCC sanitizers (target=editor, tests=yes, dev_build=yes, scu_build=yes, precision=double, use_asan=yes, use_ubsan=yes, linker=gold)

unused variable 'draw' [-Werror=unused-variable]

Check failure on line 61 in editor/plugins/polygon_2d_editor_plugin.cpp

View workflow job for this annotation

GitHub Actions / 🐧 Linux / Editor with clang sanitizers (target=editor, tests=yes, dev_build=yes, use_asan=yes, use_ubsan=yes, use_llvm=yes, linker=lld)

unused variable 'draw' [-Werror,-Wunused-variable]

Check failure on line 61 in editor/plugins/polygon_2d_editor_plugin.cpp

View workflow job for this annotation

GitHub Actions / 🐧 Linux / Editor with ThreadSanitizer (target=editor, tests=yes, dev_build=yes, use_tsan=yes, use_llvm=yes, linker=lld)

unused variable 'draw' [-Werror,-Wunused-variable]
if (node) {
node->disconnect("draw", callable_mp(draw, &CanvasItem::queue_redraw));
node->disconnect("draw", callable_mp(this, &Polygon2DEditor::_update_available_modes));
//node->disconnect("draw", callable_mp(draw, &CanvasItem::queue_redraw));
//node->disconnect("draw", callable_mp(this, &Polygon2DEditor::_update_available_modes));
}

node = Object::cast_to<Polygon2D>(p_polygon);
Expand All @@ -70,8 +70,8 @@ void Polygon2DEditor::_set_node(Node *p_polygon) {
if (node) {
_menu_option(MODE_EDIT_UV);
// Whenever polygon gets redrawn, there's possible changes for the editor as well.
node->connect("draw", callable_mp(draw, &CanvasItem::queue_redraw));
node->connect("draw", callable_mp(this, &Polygon2DEditor::_update_available_modes));
//node->connect("draw", callable_mp(draw, &CanvasItem::queue_redraw));
//node->connect("draw", callable_mp(this, &Polygon2DEditor::_update_available_modes));
}
}

Expand Down

0 comments on commit 14b2ab1

Please sign in to comment.