Error check GLTFDocumentExtensionConvertImporterMesh::import_post.
This commit is contained in:
parent
d742dcd3ce
commit
b7ceec9d7b
@ -29,6 +29,7 @@
|
|||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "gltf_document_extension_convert_importer_mesh.h"
|
#include "gltf_document_extension_convert_importer_mesh.h"
|
||||||
|
#include "core/error/error_macros.h"
|
||||||
#include "scene/3d/mesh_instance_3d.h"
|
#include "scene/3d/mesh_instance_3d.h"
|
||||||
#include "scene/resources/importer_mesh.h"
|
#include "scene/resources/importer_mesh.h"
|
||||||
|
|
||||||
@ -38,6 +39,8 @@ void GLTFDocumentExtensionConvertImporterMesh::_bind_methods() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Error GLTFDocumentExtensionConvertImporterMesh::import_post(Ref<GLTFDocument> p_document, Node *p_node) {
|
Error GLTFDocumentExtensionConvertImporterMesh::import_post(Ref<GLTFDocument> p_document, Node *p_node) {
|
||||||
|
ERR_FAIL_NULL_V(p_document, ERR_INVALID_PARAMETER);
|
||||||
|
ERR_FAIL_NULL_V(p_node, ERR_INVALID_PARAMETER);
|
||||||
List<Node *> queue;
|
List<Node *> queue;
|
||||||
queue.push_back(p_node);
|
queue.push_back(p_node);
|
||||||
List<Node *> delete_queue;
|
List<Node *> delete_queue;
|
||||||
|
Loading…
Reference in New Issue
Block a user