diff --git a/src/editor/graph/actions/default_action_registrar.cpp b/src/editor/graph/actions/default_action_registrar.cpp index cf063f9d..5f106446 100644 --- a/src/editor/graph/actions/default_action_registrar.cpp +++ b/src/editor/graph/actions/default_action_registrar.cpp @@ -776,7 +776,7 @@ void OrchestratorDefaultGraphActionRegistrar::register_actions(const Orchestrato _register_signals(class_name, global_class.get_signal_list()); } } - else if (script.is_valid() && !script->get_class().match(OScript::get_class_static())) + else if (script.is_valid()) { const String script_class_name = p_context.filter->get_target_class(); _register_methods(script_class_name, script->get_script_method_list()); diff --git a/src/script/script.cpp b/src/script/script.cpp index fa4b6597..a7c405bb 100644 --- a/src/script/script.cpp +++ b/src/script/script.cpp @@ -241,7 +241,12 @@ TypedArray OScript::_get_script_method_list() const TypedArray OScript::_get_script_property_list() const { - return {}; + TypedArray results; + for (const KeyValue>& E : _variables) + if (E.value->is_exported()) + results.push_back(DictionaryUtils::from_property(E.value->get_info())); + + return results; } bool OScript::_is_tool() const