Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Rémi Verschelde <[email protected]>
  • Loading branch information
cixil and akien-mga authored Nov 17, 2024
1 parent 88e4490 commit 6540f16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scene/resources/packed_scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1056,13 +1056,13 @@ Error SceneState::_parse_connections(Node *p_owner, Node *p_node, HashMap<String
const Node::Connection &c = F;

// Don't save connections that are not persistent.
if (!bool(c.flags & CONNECT_PERSIST)) {
if (!(c.flags & CONNECT_PERSIST)) {
continue;
}

// Don't include signals that are from scene instances
// (they are already saved in the scenes themselves).
if (bool(c.flags & CONNECT_INHERITED)) {
if (c.flags & CONNECT_INHERITED) {
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/scene/test_packed_scene.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ TEST_CASE("[PackedScene] Pack Scene and Retrieve State") {
memdelete(scene);
}

TEST_CASE("[PackedScene] Test That Correct Signals are Preserved when Packing Scene") {
TEST_CASE("[PackedScene] Signals Preserved when Packing Scene") {
// Create main scene
// root
// `- sub_node (local)
Expand Down

0 comments on commit 6540f16

Please sign in to comment.