Use const ref parameters in the GLTF module
This commit is contained in:
@@ -99,7 +99,7 @@ Camera3D *GLTFCamera::to_node() const {
|
||||
return camera;
|
||||
}
|
||||
|
||||
Ref<GLTFCamera> GLTFCamera::from_dictionary(const Dictionary p_dictionary) {
|
||||
Ref<GLTFCamera> GLTFCamera::from_dictionary(const Dictionary &p_dictionary) {
|
||||
ERR_FAIL_COND_V_MSG(!p_dictionary.has("type"), Ref<GLTFCamera>(), "Failed to parse glTF camera, missing required field 'type'.");
|
||||
Ref<GLTFCamera> camera;
|
||||
camera.instantiate();
|
||||
|
||||
Reference in New Issue
Block a user