diff --git a/blackboard/bb_param/bb_param.cpp b/blackboard/bb_param/bb_param.cpp index fbc4ad9..2d550c2 100644 --- a/blackboard/bb_param/bb_param.cpp +++ b/blackboard/bb_param/bb_param.cpp @@ -14,12 +14,6 @@ #include "../../util/limbo_utility.h" #ifdef LIMBOAI_MODULE -#include "core/core_bind.h" -#include "core/error/error_macros.h" -#include "core/object/class_db.h" -#include "core/object/object.h" -#include "core/variant/variant.h" -#include "core/variant/variant_utility.h" #endif // LIMBOAI_MODULE #ifdef LIMBOAI_GDEXTENSION diff --git a/blackboard/bb_param/bb_param.h b/blackboard/bb_param/bb_param.h index 5d5627b..7d75884 100644 --- a/blackboard/bb_param/bb_param.h +++ b/blackboard/bb_param/bb_param.h @@ -17,16 +17,10 @@ #ifdef LIMBOAI_MODULE #include "core/io/resource.h" -#include "core/object/object.h" -#include "core/typedefs.h" -#include "core/variant/variant.h" #endif // LIMBOAI_MODULE #ifdef LIMBOAI_GDEXTENSION -#include #include -#include -#include #endif // LIMBOAI_GDEXTENSION class BBParam : public Resource { @@ -50,14 +44,7 @@ private: protected: static void _bind_methods(); - _FORCE_INLINE_ void _assign_default_value() { -#ifdef LIMBOAI_MODULE - Callable::CallError err; - Variant::construct(get_type(), saved_value, nullptr, 0, err); -#elif LIMBOAI_GDEXTENSION - saved_value.clear(); -#endif - } + _FORCE_INLINE_ void _assign_default_value() { saved_value = VARIANT_DEFAULT(get_type()); } void _get_property_list(List *p_list) const;