Skip to content

Commit

Permalink
Merge pull request #81264 from aaronfranke/gltf-node-name-camera
Browse files Browse the repository at this point in the history
GLTF: Change "Camera3D" generated node name to "Camera"
  • Loading branch information
akien-mga committed Sep 16, 2023
2 parents 33b95f0 + c1bc4fb commit 51f67ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gltf/gltf_document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5337,7 +5337,7 @@ void GLTFDocument::_assign_node_names(Ref<GLTFState> p_state) {
if (gltf_node->mesh >= 0) {
gltf_node_name = "Mesh";
} else if (gltf_node->camera >= 0) {
gltf_node_name = "Camera3D";
gltf_node_name = "Camera";
} else {
gltf_node_name = "Node";
}
Expand Down

0 comments on commit 51f67ea

Please sign in to comment.