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
No known key found for this signature in database
GPG key ID: C360860E645EFFC0
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)) {