|
@@ -164,6 +164,7 @@ public:
|
|
t->creation_func = &creator<T>;
|
|
t->creation_func = &creator<T>;
|
|
t->exposed = true;
|
|
t->exposed = true;
|
|
t->class_ptr = T::get_class_ptr_static();
|
|
t->class_ptr = T::get_class_ptr_static();
|
|
|
|
+ t->api = current_api;
|
|
T::register_custom_data_to_otdb();
|
|
T::register_custom_data_to_otdb();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -175,6 +176,7 @@ public:
|
|
ERR_FAIL_COND(!t);
|
|
ERR_FAIL_COND(!t);
|
|
t->exposed = true;
|
|
t->exposed = true;
|
|
t->class_ptr = T::get_class_ptr_static();
|
|
t->class_ptr = T::get_class_ptr_static();
|
|
|
|
+ t->api = current_api;
|
|
//nothing
|
|
//nothing
|
|
}
|
|
}
|
|
|
|
|
|
@@ -195,6 +197,7 @@ public:
|
|
t->creation_func = &_create_ptr_func<T>;
|
|
t->creation_func = &_create_ptr_func<T>;
|
|
t->exposed = true;
|
|
t->exposed = true;
|
|
t->class_ptr = T::get_class_ptr_static();
|
|
t->class_ptr = T::get_class_ptr_static();
|
|
|
|
+ t->api = current_api;
|
|
T::register_custom_data_to_otdb();
|
|
T::register_custom_data_to_otdb();
|
|
}
|
|
}
|
|
|
|
|