1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Add PluginScript support for global class naming/icon path

This commit is contained in:
Emmanuel Leblond
2020-12-07 15:08:59 +01:00
parent 3c9c2cbb23
commit c4c18a2c58
5 changed files with 42 additions and 0 deletions

View File

@@ -302,6 +302,7 @@ Error PluginScript::reload(bool p_keep_state) {
_data = manifest.data;
_name = *(StringName *)&manifest.name;
_tool = manifest.is_tool;
_icon_path = *(String *)&manifest.icon_path;
Dictionary *members = (Dictionary *)&manifest.member_lines;
for (const Variant *key = members->next(); key != nullptr; key = members->next(key)) {