mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-26 21:57:16 +01:00
Ported: [3.x] GLTF: Fix wrong error macro used in a few spots - aaronfranke
ca898a7b77
This commit is contained in:
parent
5b2fc25338
commit
302f815321
@ -139,8 +139,8 @@ Error GLTFDocumentExtension::export_preflight(Ref<GLTFState> p_state, Node *p_ro
|
|||||||
}
|
}
|
||||||
|
|
||||||
void GLTFDocumentExtension::convert_scene_node(Ref<GLTFState> p_state, Ref<GLTFNode> p_gltf_node, Node *p_scene_node) {
|
void GLTFDocumentExtension::convert_scene_node(Ref<GLTFState> p_state, Ref<GLTFNode> p_gltf_node, Node *p_scene_node) {
|
||||||
ERR_FAIL_NULL(p_state.is_null());
|
ERR_FAIL_COND(p_state.is_null());
|
||||||
ERR_FAIL_NULL(p_gltf_node.is_null());
|
ERR_FAIL_COND(p_gltf_node.is_null());
|
||||||
ERR_FAIL_NULL(p_scene_node);
|
ERR_FAIL_NULL(p_scene_node);
|
||||||
ScriptInstance *si = get_script_instance();
|
ScriptInstance *si = get_script_instance();
|
||||||
if (!si) {
|
if (!si) {
|
||||||
@ -150,8 +150,8 @@ void GLTFDocumentExtension::convert_scene_node(Ref<GLTFState> p_state, Ref<GLTFN
|
|||||||
}
|
}
|
||||||
|
|
||||||
Error GLTFDocumentExtension::export_node(Ref<GLTFState> p_state, Ref<GLTFNode> p_gltf_node, Dictionary &r_dict, Node *p_node) {
|
Error GLTFDocumentExtension::export_node(Ref<GLTFState> p_state, Ref<GLTFNode> p_gltf_node, Dictionary &r_dict, Node *p_node) {
|
||||||
ERR_FAIL_NULL_V(p_state.is_null(), ERR_INVALID_PARAMETER);
|
ERR_FAIL_COND(p_state.is_null(), ERR_INVALID_PARAMETER);
|
||||||
ERR_FAIL_NULL_V(p_gltf_node.is_null(), ERR_INVALID_PARAMETER);
|
ERR_FAIL_COND(p_gltf_node.is_null(), ERR_INVALID_PARAMETER);
|
||||||
ERR_FAIL_NULL_V(p_node, ERR_INVALID_PARAMETER);
|
ERR_FAIL_NULL_V(p_node, ERR_INVALID_PARAMETER);
|
||||||
ScriptInstance *si = get_script_instance();
|
ScriptInstance *si = get_script_instance();
|
||||||
if (!si) {
|
if (!si) {
|
||||||
@ -162,7 +162,7 @@ Error GLTFDocumentExtension::export_node(Ref<GLTFState> p_state, Ref<GLTFNode> p
|
|||||||
}
|
}
|
||||||
|
|
||||||
Error GLTFDocumentExtension::export_post(Ref<GLTFState> p_state) {
|
Error GLTFDocumentExtension::export_post(Ref<GLTFState> p_state) {
|
||||||
ERR_FAIL_NULL_V(p_state.is_null(), ERR_INVALID_PARAMETER);
|
ERR_FAIL_COND_V(p_state.is_null(), ERR_INVALID_PARAMETER);
|
||||||
ScriptInstance *si = get_script_instance();
|
ScriptInstance *si = get_script_instance();
|
||||||
if (!si) {
|
if (!si) {
|
||||||
return Error::OK;
|
return Error::OK;
|
||||||
|
Loading…
Reference in New Issue
Block a user