summaryrefslogtreecommitdiff
path: root/core/os
diff options
context:
space:
mode:
authormatthew1006 <matthew1006@hotmail.co.uk>2018-07-18 09:22:59 +0100
committermatthew1006 <matthew1006@hotmail.co.uk>2018-07-18 09:22:59 +0100
commit25e64ffa20a15abe6c435ae8abf517be209fea53 (patch)
tree52d8d0c7c7366a2869487aa16eabd1943df019d9 /core/os
parent5b7ebf4d04129d55cfaf346b0ce2de1fe8601579 (diff)
Fixed OS.has_feature not using custom feature tags.
Diffstat (limited to 'core/os')
-rw-r--r--core/os/os.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/os/os.cpp b/core/os/os.cpp
index 5eed10e30c..d0a7bc6fbe 100644
--- a/core/os/os.cpp
+++ b/core/os/os.cpp
@@ -614,6 +614,9 @@ bool OS::has_feature(const String &p_feature) {
if (_check_internal_feature_support(p_feature))
return true;
+ if (ProjectSettings::get_singleton()->has_custom_feature(p_feature))
+ return true;
+
return false;
}