feat: updated engine

This commit is contained in:
Sara Gerretsen 2026-07-10 17:04:34 +02:00
parent cbe99774ff
commit f4cf6b3999
6607 changed files with 910135 additions and 430025 deletions

View file

@ -32,6 +32,8 @@
#include "../gltf_state.h"
#include "core/object/class_db.h"
void GLTFNode::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_original_name"), &GLTFNode::get_original_name);
ClassDB::bind_method(D_METHOD("set_original_name", "original_name"), &GLTFNode::set_original_name);
@ -198,7 +200,7 @@ void GLTFNode::set_visible(bool p_visible) {
}
Variant GLTFNode::get_additional_data(const StringName &p_extension_name) {
return additional_data[p_extension_name];
return additional_data.get(p_extension_name, Variant());
}
bool GLTFNode::has_additional_data(const StringName &p_extension_name) {