Fix some additional errors with 3D disabled
* Disabled 2D navigation tests as they do not work * Disabled tests for primitive meshes * Unbound some `Mesh` methods that rely on 3D resources * Unexposed `World3D` as it depends on physics (and isn't useful) * Unexposed some `Viewport` vrs related properties that had unexposed methods
This commit is contained in:
@ -420,12 +420,15 @@ TEST_CASE("[Image] Convert image") {
|
||||
|
||||
Ref<Image> image = memnew(Image(4, 4, false, Image::FORMAT_RGBA8));
|
||||
PackedByteArray image_data = image->get_data();
|
||||
ERR_PRINT_OFF;
|
||||
image->convert((Image::Format)-1);
|
||||
ERR_PRINT_ON;
|
||||
CHECK_MESSAGE(image->get_data() == image_data, "Image conversion to invalid type (-1) should not alter image.");
|
||||
|
||||
Ref<Image> image2 = memnew(Image(4, 4, false, Image::FORMAT_RGBA8));
|
||||
image_data = image2->get_data();
|
||||
ERR_PRINT_OFF;
|
||||
image2->convert((Image::Format)(Image::FORMAT_MAX + 1));
|
||||
ERR_PRINT_ON;
|
||||
CHECK_MESSAGE(image2->get_data() == image_data, "Image conversion to invalid type (Image::FORMAT_MAX + 1) should not alter image.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user