Skip to content

Commit ec74e14

Browse files
committed
Merge pull request #95603 from tetrapod00/gltf-capitalization-errors
Fix glTF capitalization in error messages
2 parents 4d3157c + 3b1345c commit ec74e14

7 files changed

+44
-44
lines changed

modules/gltf/extensions/gltf_light.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Light3D *GLTFLight::to_node() const {
170170
}
171171

172172
Ref<GLTFLight> GLTFLight::from_dictionary(const Dictionary p_dictionary) {
173-
ERR_FAIL_COND_V_MSG(!p_dictionary.has("type"), Ref<GLTFLight>(), "Failed to parse GLTF light, missing required field 'type'.");
173+
ERR_FAIL_COND_V_MSG(!p_dictionary.has("type"), Ref<GLTFLight>(), "Failed to parse glTF light, missing required field 'type'.");
174174
Ref<GLTFLight> light;
175175
light.instantiate();
176176
const String &type = p_dictionary["type"];
@@ -181,7 +181,7 @@ Ref<GLTFLight> GLTFLight::from_dictionary(const Dictionary p_dictionary) {
181181
if (arr.size() == 3) {
182182
light->color = Color(arr[0], arr[1], arr[2]).linear_to_srgb();
183183
} else {
184-
ERR_PRINT("Error parsing GLTF light: The color must have exactly 3 numbers.");
184+
ERR_PRINT("Error parsing glTF light: The color must have exactly 3 numbers.");
185185
}
186186
}
187187
if (p_dictionary.has("intensity")) {
@@ -195,10 +195,10 @@ Ref<GLTFLight> GLTFLight::from_dictionary(const Dictionary p_dictionary) {
195195
light->inner_cone_angle = spot["innerConeAngle"];
196196
light->outer_cone_angle = spot["outerConeAngle"];
197197
if (light->inner_cone_angle >= light->outer_cone_angle) {
198-
ERR_PRINT("Error parsing GLTF light: The inner angle must be smaller than the outer angle.");
198+
ERR_PRINT("Error parsing glTF light: The inner angle must be smaller than the outer angle.");
199199
}
200200
} else if (type != "point" && type != "directional") {
201-
ERR_PRINT("Error parsing GLTF light: Light type '" + type + "' is unknown.");
201+
ERR_PRINT("Error parsing glTF light: Light type '" + type + "' is unknown.");
202202
}
203203
return light;
204204
}

modules/gltf/extensions/physics/gltf_document_extension_physics.cpp

+10-10
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Error GLTFDocumentExtensionPhysics::parse_node_extensions(Ref<GLTFState> p_state
8888
// "collider" is the index of the collider in the state colliders array.
8989
int node_collider_index = node_collider_ext["collider"];
9090
Array state_colliders = p_state->get_additional_data(StringName("GLTFPhysicsShapes"));
91-
ERR_FAIL_INDEX_V_MSG(node_collider_index, state_colliders.size(), Error::ERR_FILE_CORRUPT, "GLTF Physics: On node " + p_gltf_node->get_name() + ", the collider index " + itos(node_collider_index) + " is not in the state colliders (size: " + itos(state_colliders.size()) + ").");
91+
ERR_FAIL_INDEX_V_MSG(node_collider_index, state_colliders.size(), Error::ERR_FILE_CORRUPT, "glTF Physics: On node " + p_gltf_node->get_name() + ", the collider index " + itos(node_collider_index) + " is not in the state colliders (size: " + itos(state_colliders.size()) + ").");
9292
p_gltf_node->set_additional_data(StringName("GLTFPhysicsShape"), state_colliders[node_collider_index]);
9393
} else {
9494
p_gltf_node->set_additional_data(StringName("GLTFPhysicsShape"), GLTFPhysicsShape::from_dictionary(node_collider_ext));
@@ -103,7 +103,7 @@ Error GLTFDocumentExtensionPhysics::parse_node_extensions(Ref<GLTFState> p_state
103103
int node_shape_index = node_collider.get("shape", -1);
104104
if (node_shape_index != -1) {
105105
Array state_shapes = p_state->get_additional_data(StringName("GLTFPhysicsShapes"));
106-
ERR_FAIL_INDEX_V_MSG(node_shape_index, state_shapes.size(), Error::ERR_FILE_CORRUPT, "GLTF Physics: On node " + p_gltf_node->get_name() + ", the shape index " + itos(node_shape_index) + " is not in the state shapes (size: " + itos(state_shapes.size()) + ").");
106+
ERR_FAIL_INDEX_V_MSG(node_shape_index, state_shapes.size(), Error::ERR_FILE_CORRUPT, "glTF Physics: On node " + p_gltf_node->get_name() + ", the shape index " + itos(node_shape_index) + " is not in the state shapes (size: " + itos(state_shapes.size()) + ").");
107107
p_gltf_node->set_additional_data(StringName("GLTFPhysicsColliderShape"), state_shapes[node_shape_index]);
108108
} else {
109109
// If this node is a collider but does not have a collider
@@ -117,7 +117,7 @@ Error GLTFDocumentExtensionPhysics::parse_node_extensions(Ref<GLTFState> p_state
117117
int node_shape_index = node_trigger.get("shape", -1);
118118
if (node_shape_index != -1) {
119119
Array state_shapes = p_state->get_additional_data(StringName("GLTFPhysicsShapes"));
120-
ERR_FAIL_INDEX_V_MSG(node_shape_index, state_shapes.size(), Error::ERR_FILE_CORRUPT, "GLTF Physics: On node " + p_gltf_node->get_name() + ", the shape index " + itos(node_shape_index) + " is not in the state shapes (size: " + itos(state_shapes.size()) + ").");
120+
ERR_FAIL_INDEX_V_MSG(node_shape_index, state_shapes.size(), Error::ERR_FILE_CORRUPT, "glTF Physics: On node " + p_gltf_node->get_name() + ", the shape index " + itos(node_shape_index) + " is not in the state shapes (size: " + itos(state_shapes.size()) + ").");
121121
p_gltf_node->set_additional_data(StringName("GLTFPhysicsTriggerShape"), state_shapes[node_shape_index]);
122122
} else {
123123
// If this node is a trigger but does not have a trigger shape,
@@ -150,7 +150,7 @@ void _setup_shape_mesh_resource_from_index_if_needed(Ref<GLTFState> p_state, Ref
150150
return; // The mesh resource is already set up.
151151
}
152152
TypedArray<GLTFMesh> state_meshes = p_state->get_meshes();
153-
ERR_FAIL_INDEX_MSG(shape_mesh_index, state_meshes.size(), "GLTF Physics: When importing '" + p_state->get_scene_name() + "', the shape mesh index " + itos(shape_mesh_index) + " is not in the state meshes (size: " + itos(state_meshes.size()) + ").");
153+
ERR_FAIL_INDEX_MSG(shape_mesh_index, state_meshes.size(), "glTF Physics: When importing '" + p_state->get_scene_name() + "', the shape mesh index " + itos(shape_mesh_index) + " is not in the state meshes (size: " + itos(state_meshes.size()) + ").");
154154
Ref<GLTFMesh> gltf_mesh = state_meshes[shape_mesh_index];
155155
ERR_FAIL_COND(gltf_mesh.is_null());
156156
importer_mesh = gltf_mesh->get_mesh();
@@ -164,12 +164,12 @@ CollisionObject3D *_generate_shape_with_body(Ref<GLTFState> p_state, Ref<GLTFNod
164164
bool is_trigger = p_physics_shape->get_is_trigger();
165165
// This method is used for the case where we must generate a parent body.
166166
// This is can happen for multiple reasons. One possibility is that this
167-
// GLTF file is using OMI_collider but not OMI_physics_body, or at least
167+
// glTF file is using OMI_collider but not OMI_physics_body, or at least
168168
// this particular node is not using it. Another possibility is that the
169-
// physics body information is set up on the same GLTF node, not a parent.
169+
// physics body information is set up on the same glTF node, not a parent.
170170
CollisionObject3D *body;
171171
if (p_physics_body.is_valid()) {
172-
// This code is run when the physics body is on the same GLTF node.
172+
// This code is run when the physics body is on the same glTF node.
173173
body = p_physics_body->to_node();
174174
if (is_trigger && (p_physics_body->get_body_type() != "trigger")) {
175175
// Edge case: If the body's trigger and the collider's trigger
@@ -266,7 +266,7 @@ Node3D *GLTFDocumentExtensionPhysics::generate_scene_node(Ref<GLTFState> p_state
266266
Ref<GLTFPhysicsShape> gltf_physics_shape = p_gltf_node->get_additional_data(StringName("GLTFPhysicsShape"));
267267
if (gltf_physics_shape.is_valid()) {
268268
_setup_shape_mesh_resource_from_index_if_needed(p_state, gltf_physics_shape);
269-
// If this GLTF node specifies both a shape and a body, generate both.
269+
// If this glTF node specifies both a shape and a body, generate both.
270270
if (gltf_physics_body.is_valid()) {
271271
return _generate_shape_with_body(p_state, p_gltf_node, gltf_physics_shape, gltf_physics_body);
272272
}
@@ -309,7 +309,7 @@ Node3D *GLTFDocumentExtensionPhysics::generate_scene_node(Ref<GLTFState> p_state
309309
}
310310
} else if (!Object::cast_to<PhysicsBody3D>(ancestor_col_obj)) {
311311
if (p_gltf_node->get_additional_data(StringName("GLTFPhysicsCompoundCollider"))) {
312-
// If the GLTF file wants this node to group solid shapes together,
312+
// If the glTF file wants this node to group solid shapes together,
313313
// and there is no parent body, we need to create a static body.
314314
ancestor_col_obj = memnew(StaticBody3D);
315315
ret = ancestor_col_obj;
@@ -386,7 +386,7 @@ void GLTFDocumentExtensionPhysics::convert_scene_node(Ref<GLTFState> p_state, Re
386386
if (cast_to<CollisionShape3D>(p_scene_node)) {
387387
CollisionShape3D *godot_shape = Object::cast_to<CollisionShape3D>(p_scene_node);
388388
Ref<GLTFPhysicsShape> gltf_shape = GLTFPhysicsShape::from_node(godot_shape);
389-
ERR_FAIL_COND_MSG(gltf_shape.is_null(), "GLTF Physics: Could not convert CollisionShape3D to GLTFPhysicsShape. Does it have a valid Shape3D?");
389+
ERR_FAIL_COND_MSG(gltf_shape.is_null(), "glTF Physics: Could not convert CollisionShape3D to GLTFPhysicsShape. Does it have a valid Shape3D?");
390390
{
391391
Ref<ImporterMesh> importer_mesh = gltf_shape->get_importer_mesh();
392392
if (importer_mesh.is_valid()) {

modules/gltf/extensions/physics/gltf_physics_body.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void GLTFPhysicsBody::set_body_type(String p_body_type) {
108108
} else if (p_body_type == "trigger") {
109109
body_type = PhysicsBodyType::TRIGGER;
110110
} else {
111-
ERR_PRINT("Error setting GLTF physics body type: The body type must be one of \"static\", \"animatable\", \"character\", \"rigid\", \"vehicle\", or \"trigger\".");
111+
ERR_PRINT("Error setting glTF physics body type: The body type must be one of \"static\", \"animatable\", \"character\", \"rigid\", \"vehicle\", or \"trigger\".");
112112
}
113113
}
114114

@@ -194,7 +194,7 @@ Ref<GLTFPhysicsBody> GLTFPhysicsBody::from_node(const CollisionObject3D *p_body_
194194
physics_body->center_of_mass = body->get_center_of_mass();
195195
physics_body->inertia_diagonal = body->get_inertia();
196196
if (body->get_center_of_mass() != Vector3()) {
197-
WARN_PRINT("GLTFPhysicsBody: This rigid body has a center of mass offset from the origin, which will be ignored when exporting to GLTF.");
197+
WARN_PRINT("GLTFPhysicsBody: This rigid body has a center of mass offset from the origin, which will be ignored when exporting to glTF.");
198198
}
199199
if (cast_to<VehicleBody3D>(p_body_node)) {
200200
physics_body->body_type = PhysicsBodyType::VEHICLE;
@@ -289,7 +289,7 @@ Ref<GLTFPhysicsBody> GLTFPhysicsBody::from_dictionary(const Dictionary p_diction
289289
physics_body->body_type = PhysicsBodyType::TRIGGER;
290290
#endif // DISABLE_DEPRECATED
291291
} else {
292-
ERR_PRINT("Error parsing GLTF physics body: The body type in the GLTF file \"" + body_type_string + "\" was not recognized.");
292+
ERR_PRINT("Error parsing glTF physics body: The body type in the glTF file \"" + body_type_string + "\" was not recognized.");
293293
}
294294
}
295295
if (motion.has("mass")) {
@@ -300,39 +300,39 @@ Ref<GLTFPhysicsBody> GLTFPhysicsBody::from_dictionary(const Dictionary p_diction
300300
if (arr.size() == 3) {
301301
physics_body->set_linear_velocity(Vector3(arr[0], arr[1], arr[2]));
302302
} else {
303-
ERR_PRINT("Error parsing GLTF physics body: The linear velocity vector must have exactly 3 numbers.");
303+
ERR_PRINT("Error parsing glTF physics body: The linear velocity vector must have exactly 3 numbers.");
304304
}
305305
}
306306
if (motion.has("angularVelocity")) {
307307
const Array &arr = motion["angularVelocity"];
308308
if (arr.size() == 3) {
309309
physics_body->set_angular_velocity(Vector3(arr[0], arr[1], arr[2]));
310310
} else {
311-
ERR_PRINT("Error parsing GLTF physics body: The angular velocity vector must have exactly 3 numbers.");
311+
ERR_PRINT("Error parsing glTF physics body: The angular velocity vector must have exactly 3 numbers.");
312312
}
313313
}
314314
if (motion.has("centerOfMass")) {
315315
const Array &arr = motion["centerOfMass"];
316316
if (arr.size() == 3) {
317317
physics_body->set_center_of_mass(Vector3(arr[0], arr[1], arr[2]));
318318
} else {
319-
ERR_PRINT("Error parsing GLTF physics body: The center of mass vector must have exactly 3 numbers.");
319+
ERR_PRINT("Error parsing glTF physics body: The center of mass vector must have exactly 3 numbers.");
320320
}
321321
}
322322
if (motion.has("inertiaDiagonal")) {
323323
const Array &arr = motion["inertiaDiagonal"];
324324
if (arr.size() == 3) {
325325
physics_body->set_inertia_diagonal(Vector3(arr[0], arr[1], arr[2]));
326326
} else {
327-
ERR_PRINT("Error parsing GLTF physics body: The inertia diagonal vector must have exactly 3 numbers.");
327+
ERR_PRINT("Error parsing glTF physics body: The inertia diagonal vector must have exactly 3 numbers.");
328328
}
329329
}
330330
if (motion.has("inertiaOrientation")) {
331331
const Array &arr = motion["inertiaOrientation"];
332332
if (arr.size() == 4) {
333333
physics_body->set_inertia_orientation(Quaternion(arr[0], arr[1], arr[2], arr[3]));
334334
} else {
335-
ERR_PRINT("Error parsing GLTF physics body: The inertia orientation quaternion must have exactly 4 numbers.");
335+
ERR_PRINT("Error parsing glTF physics body: The inertia orientation quaternion must have exactly 4 numbers.");
336336
}
337337
}
338338
return physics_body;

modules/gltf/extensions/physics/gltf_physics_shape.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ void GLTFPhysicsShape::set_importer_mesh(Ref<ImporterMesh> p_importer_mesh) {
134134

135135
Ref<ImporterMesh> _convert_hull_points_to_mesh(const Vector<Vector3> &p_hull_points) {
136136
Ref<ImporterMesh> importer_mesh;
137-
ERR_FAIL_COND_V_MSG(p_hull_points.size() < 3, importer_mesh, "GLTFPhysicsShape: Convex hull has fewer points (" + itos(p_hull_points.size()) + ") than the minimum of 3. At least 3 points are required in order to save to GLTF, since it uses a mesh to represent convex hulls.");
137+
ERR_FAIL_COND_V_MSG(p_hull_points.size() < 3, importer_mesh, "GLTFPhysicsShape: Convex hull has fewer points (" + itos(p_hull_points.size()) + ") than the minimum of 3. At least 3 points are required in order to save to glTF, since it uses a mesh to represent convex hulls.");
138138
if (p_hull_points.size() > 255) {
139139
WARN_PRINT("GLTFPhysicsShape: Convex hull has more points (" + itos(p_hull_points.size()) + ") than the recommended maximum of 255. This may not load correctly in other engines.");
140140
}

modules/gltf/gltf_document.cpp

+13-13
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ Error GLTFDocument::_parse_nodes(Ref<GLTFState> p_state) {
620620
for (Ref<GLTFDocumentExtension> ext : document_extensions) {
621621
ERR_CONTINUE(ext.is_null());
622622
Error err = ext->parse_node_extensions(p_state, node, extensions);
623-
ERR_CONTINUE_MSG(err != OK, "GLTF: Encountered error " + itos(err) + " when parsing node extensions for node " + node->get_name() + " in file " + p_state->filename + ". Continuing.");
623+
ERR_CONTINUE_MSG(err != OK, "glTF: Encountered error " + itos(err) + " when parsing node extensions for node " + node->get_name() + " in file " + p_state->filename + ". Continuing.");
624624
}
625625
}
626626

@@ -3353,7 +3353,7 @@ Error GLTFDocument::_serialize_images(Ref<GLTFState> p_state) {
33533353
ERR_CONTINUE(image.is_null());
33543354
if (image->is_compressed()) {
33553355
image->decompress();
3356-
ERR_FAIL_COND_V_MSG(image->is_compressed(), ERR_INVALID_DATA, "GLTF: Image was compressed, but could not be decompressed.");
3356+
ERR_FAIL_COND_V_MSG(image->is_compressed(), ERR_INVALID_DATA, "glTF: Image was compressed, but could not be decompressed.");
33573357
}
33583358

33593359
if (p_state->filename.to_lower().ends_with("gltf")) {
@@ -3374,15 +3374,15 @@ Error GLTFDocument::_serialize_images(Ref<GLTFState> p_state) {
33743374
if (_image_save_extension.is_valid()) {
33753375
img_name = img_name + _image_save_extension->get_image_file_extension();
33763376
Error err = _image_save_extension->save_image_at_path(p_state, image, full_texture_dir.path_join(img_name), _image_format, _lossy_quality);
3377-
ERR_FAIL_COND_V_MSG(err != OK, err, "GLTF: Failed to save image in '" + _image_format + "' format as a separate file.");
3377+
ERR_FAIL_COND_V_MSG(err != OK, err, "glTF: Failed to save image in '" + _image_format + "' format as a separate file.");
33783378
} else if (_image_format == "PNG") {
33793379
img_name = img_name + ".png";
33803380
image->save_png(full_texture_dir.path_join(img_name));
33813381
} else if (_image_format == "JPEG") {
33823382
img_name = img_name + ".jpg";
33833383
image->save_jpg(full_texture_dir.path_join(img_name), _lossy_quality);
33843384
} else {
3385-
ERR_FAIL_V_MSG(ERR_UNAVAILABLE, "GLTF: Unknown image format '" + _image_format + "'.");
3385+
ERR_FAIL_V_MSG(ERR_UNAVAILABLE, "glTF: Unknown image format '" + _image_format + "'.");
33863386
}
33873387
image_dict["uri"] = relative_texture_dir.path_join(img_name).uri_encode();
33883388
} else {
@@ -3412,9 +3412,9 @@ Error GLTFDocument::_serialize_images(Ref<GLTFState> p_state) {
34123412
buffer = image->save_jpg_to_buffer(_lossy_quality);
34133413
image_dict["mimeType"] = "image/jpeg";
34143414
} else {
3415-
ERR_FAIL_V_MSG(ERR_UNAVAILABLE, "GLTF: Unknown image format '" + _image_format + "'.");
3415+
ERR_FAIL_V_MSG(ERR_UNAVAILABLE, "glTF: Unknown image format '" + _image_format + "'.");
34163416
}
3417-
ERR_FAIL_COND_V_MSG(buffer.is_empty(), ERR_INVALID_DATA, "GLTF: Failed to save image in '" + _image_format + "' format.");
3417+
ERR_FAIL_COND_V_MSG(buffer.is_empty(), ERR_INVALID_DATA, "glTF: Failed to save image in '" + _image_format + "' format.");
34183418

34193419
bv->byte_length = buffer.size();
34203420
p_state->buffers.write[bi].resize(p_state->buffers[bi].size() + bv->byte_length);
@@ -3445,7 +3445,7 @@ Ref<Image> GLTFDocument::_parse_image_bytes_into_image(Ref<GLTFState> p_state, c
34453445
for (Ref<GLTFDocumentExtension> ext : document_extensions) {
34463446
ERR_CONTINUE(ext.is_null());
34473447
Error err = ext->parse_image_data(p_state, p_bytes, p_mime_type, r_image);
3448-
ERR_CONTINUE_MSG(err != OK, "GLTF: Encountered error " + itos(err) + " when parsing image " + itos(p_index) + " in file " + p_state->filename + ". Continuing.");
3448+
ERR_CONTINUE_MSG(err != OK, "glTF: Encountered error " + itos(err) + " when parsing image " + itos(p_index) + " in file " + p_state->filename + ". Continuing.");
34493449
if (!r_image->is_empty()) {
34503450
r_file_extension = ext->get_image_file_extension();
34513451
return r_image;
@@ -3736,13 +3736,13 @@ Error GLTFDocument::_parse_textures(Ref<GLTFState> p_state) {
37363736
for (Ref<GLTFDocumentExtension> ext : document_extensions) {
37373737
ERR_CONTINUE(ext.is_null());
37383738
Error err = ext->parse_texture_json(p_state, texture_dict, gltf_texture);
3739-
ERR_CONTINUE_MSG(err != OK, "GLTF: Encountered error " + itos(err) + " when parsing texture JSON " + String(Variant(texture_dict)) + " in file " + p_state->filename + ". Continuing.");
3739+
ERR_CONTINUE_MSG(err != OK, "glTF: Encountered error " + itos(err) + " when parsing texture JSON " + String(Variant(texture_dict)) + " in file " + p_state->filename + ". Continuing.");
37403740
if (gltf_texture->get_src_image() != -1) {
37413741
break;
37423742
}
37433743
}
37443744
if (gltf_texture->get_src_image() == -1) {
3745-
// No extensions handled it, so use the base GLTF source.
3745+
// No extensions handled it, so use the base glTF source.
37463746
// This may be the fallback, or the only option anyway.
37473747
ERR_FAIL_COND_V(!texture_dict.has("source"), ERR_PARSE_ERROR);
37483748
gltf_texture->set_src_image(texture_dict["source"]);
@@ -5631,7 +5631,7 @@ void GLTFDocument::_generate_scene_node(Ref<GLTFState> p_state, const GLTFNodeIn
56315631
// If none of our GLTFDocumentExtension classes generated us a node, we generate one.
56325632
if (!current_node) {
56335633
if (gltf_node->skin >= 0 && gltf_node->mesh >= 0 && !gltf_node->children.is_empty()) {
5634-
// GLTF specifies that skinned meshes should ignore their node transforms,
5634+
// glTF specifies that skinned meshes should ignore their node transforms,
56355635
// only being controlled by the skeleton, so Godot will reparent a skinned
56365636
// mesh to its skeleton. However, we still need to ensure any child nodes
56375637
// keep their place in the tree, so if there are any child nodes, the skinned
@@ -7138,9 +7138,9 @@ Node *GLTFDocument::_generate_scene_node_tree(Ref<GLTFState> p_state) {
71387138
HashMap<ObjectID, SkinSkeletonIndex> skeleton_map;
71397139
Error err = SkinTool::_create_skeletons(p_state->unique_names, p_state->skins, p_state->nodes,
71407140
skeleton_map, p_state->skeletons, p_state->scene_nodes);
7141-
ERR_FAIL_COND_V_MSG(err != OK, nullptr, "GLTF: Failed to create skeletons.");
7141+
ERR_FAIL_COND_V_MSG(err != OK, nullptr, "glTF: Failed to create skeletons.");
71427142
err = _create_skins(p_state);
7143-
ERR_FAIL_COND_V_MSG(err != OK, nullptr, "GLTF: Failed to create skins.");
7143+
ERR_FAIL_COND_V_MSG(err != OK, nullptr, "glTF: Failed to create skins.");
71447144
// Generate the node tree.
71457145
Node *single_root;
71467146
if (p_state->extensions_used.has("GODOT_single_root")) {
@@ -7459,7 +7459,7 @@ Error GLTFDocument::_parse_gltf_extensions(Ref<GLTFState> p_state) {
74597459
Error ret = OK;
74607460
for (int i = 0; i < p_state->extensions_required.size(); i++) {
74617461
if (!supported_extensions.has(p_state->extensions_required[i])) {
7462-
ERR_PRINT("GLTF: Can't import file '" + p_state->filename + "', required extension '" + String(p_state->extensions_required[i]) + "' is not supported. Are you missing a GLTFDocumentExtension plugin?");
7462+
ERR_PRINT("glTF: Can't import file '" + p_state->filename + "', required extension '" + String(p_state->extensions_required[i]) + "' is not supported. Are you missing a GLTFDocumentExtension plugin?");
74637463
ret = ERR_UNAVAILABLE;
74647464
}
74657465
}

0 commit comments

Comments
 (0)