mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Update NavigationRegion test rid function
Updates NavigationRegion test rid function from deprecated get_region_rid() to use newer get_rid().
This commit is contained in:
parent
4728ff30c0
commit
cbf881432c
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user