mirror of
https://github.com/godotengine/godot-visual-script.git
synced 2026-01-04 18:10:07 +03:00
Removed faulty function update after get_property_list.
The function tried to rearrange properties but that lead to problems with duplication or deleted properties. Implemented the logic that that function did inside the get_property_list both for tool scripts and non-tool scripts.
This commit is contained in:
@@ -1206,6 +1206,10 @@ bool VisualScriptInstance::get(const StringName &p_name, Variant &r_ret) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void VisualScriptInstance::get_property_list(List<PropertyInfo> *p_properties) const {
|
void VisualScriptInstance::get_property_list(List<PropertyInfo> *p_properties) const {
|
||||||
|
#ifdef TOOLS_ENABLED
|
||||||
|
p_properties->push_back(script->get_class_category());
|
||||||
|
#endif // TOOLS_ENABLED
|
||||||
|
|
||||||
for (const KeyValue<StringName, VisualScript::Variable> &E : script->variables) {
|
for (const KeyValue<StringName, VisualScript::Variable> &E : script->variables) {
|
||||||
if (!E.value._export) {
|
if (!E.value._export) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user