Skip to content

Commit

Permalink
Update NavigationRegion test rid function
Browse files Browse the repository at this point in the history
Updates NavigationRegion test rid function from deprecated get_region_rid() to use newer get_rid().
  • Loading branch information
smix8 committed Apr 16, 2024
1 parent 4728ff3 commit cbf8814
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/scene/test_navigation_region_2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace TestNavigationRegion2D {
TEST_SUITE("[Navigation]") {
TEST_CASE("[SceneTree][NavigationRegion2D] New region should have valid RID") {
NavigationRegion2D *region_node = memnew(NavigationRegion2D);
CHECK(region_node->get_region_rid().is_valid());
CHECK(region_node->get_rid().is_valid());
memdelete(region_node);
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/scene/test_navigation_region_3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace TestNavigationRegion3D {
TEST_SUITE("[Navigation]") {
TEST_CASE("[SceneTree][NavigationRegion3D] New region should have valid RID") {
NavigationRegion3D *region_node = memnew(NavigationRegion3D);
CHECK(region_node->get_region_rid().is_valid());
CHECK(region_node->get_rid().is_valid());
memdelete(region_node);
}

Expand Down

0 comments on commit cbf8814

Please sign in to comment.