diff --git a/README.md b/README.md index e0d3368..b0d057b 100644 --- a/README.md +++ b/README.md @@ -251,6 +251,10 @@ License class. ### Changelog +#### 1.7.5 + +- Fix license file existing check + #### 1.7.4 - Fix show engine component diff --git a/addons/licenses/component.gd b/addons/licenses/component.gd index c522931..8471d37 100644 --- a/addons/licenses/component.gd +++ b/addons/licenses/component.gd @@ -120,7 +120,7 @@ func get_warnings() -> PackedStringArray: var license: License = self.licenses[idx] if license.name == "": res.append("license [" + str(idx) + "] name is empty") - if license.file != "" && FileAccess.file_exists(license.file): + if license.file != "" && !FileAccess.file_exists(license.file): res.append("license [" + str(idx) + "] file '" + license.file + "' does not exst") if self.copyright.is_empty(): res.append("no copyright") diff --git a/addons/licenses/plugin.cfg b/addons/licenses/plugin.cfg index 638a757..45996e3 100644 --- a/addons/licenses/plugin.cfg +++ b/addons/licenses/plugin.cfg @@ -3,7 +3,7 @@ name="License Manager" description="Manage license and copyright for third party graphics, software or libraries." author="Iceflower S" -version="1.7.4" +version="1.7.5" script="plugin.gd" license="MIT" repository="https://github.com/kenyoni-software/godot-addons"