From 34ef7d96ea2949c92cf6998c86d32b3e9212b73d Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Thu, 20 Oct 2022 22:00:10 +0200 Subject: [PATCH] Fix bugs --- bt/bt_state.cpp | 2 +- register_types.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bt/bt_state.cpp b/bt/bt_state.cpp index a56af70..751c304 100644 --- a/bt/bt_state.cpp +++ b/bt/bt_state.cpp @@ -35,7 +35,7 @@ void BTState::_bind_methods() { // ClassDB::bind_method(D_METHOD("_set_blackboard_data", "p_data"), &BTState::_set_blackboard_data); ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "behavior_tree", PROPERTY_HINT_RESOURCE_TYPE, "BehaviorTree"), "set_behavior_tree", "get_behavior_tree"); - ADD_PROPERTY(PropertyInfo(Variant::DICTIONARY, "blackboard_data"), "_set_blackboard_data", "_get_blackboard_data"); + // ADD_PROPERTY(PropertyInfo(Variant::DICTIONARY, "blackboard_data"), "_set_blackboard_data", "_get_blackboard_data"); } BTState::BTState() { diff --git a/register_types.cpp b/register_types.cpp index dd15970..e3409de 100644 --- a/register_types.cpp +++ b/register_types.cpp @@ -15,6 +15,7 @@ #include "bb_param/bb_float.h" #include "bb_param/bb_int.h" #include "bb_param/bb_int_array.h" +#include "bb_param/bb_node.h" #include "bb_param/bb_param.h" #include "bb_param/bb_plane.h" #include "bb_param/bb_quat.h" @@ -121,7 +122,8 @@ void register_limboai_types() { ClassDB::register_class(); - ClassDB::register_class(); + // ClassDB::register_class(); + ClassDB::register_virtual_class(); ClassDB::register_class(); ClassDB::register_class(); ClassDB::register_class(); @@ -136,6 +138,7 @@ void register_limboai_types() { ClassDB::register_class(); ClassDB::register_class(); ClassDB::register_class(); + ClassDB::register_class(); ClassDB::register_class(); ClassDB::register_class(); ClassDB::register_class();