You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add warnings for unsupported features in mobile and gl_compatibility backends
This commit is contained in:
@@ -1108,13 +1108,6 @@ void Environment::_validate_property(PropertyInfo &p_property) const {
|
||||
|
||||
};
|
||||
|
||||
static const char *high_end_prefixes[] = {
|
||||
"ssr_",
|
||||
"ssao_",
|
||||
nullptr
|
||||
|
||||
};
|
||||
|
||||
const char **prefixes = hide_prefixes;
|
||||
while (*prefixes) {
|
||||
String prefix = String(*prefixes);
|
||||
@@ -1127,20 +1120,6 @@ void Environment::_validate_property(PropertyInfo &p_property) const {
|
||||
|
||||
prefixes++;
|
||||
}
|
||||
|
||||
if (RenderingServer::get_singleton()->is_low_end()) {
|
||||
prefixes = high_end_prefixes;
|
||||
while (*prefixes) {
|
||||
String prefix = String(*prefixes);
|
||||
|
||||
if (p_property.name.begins_with(prefix)) {
|
||||
p_property.usage = PROPERTY_USAGE_NO_EDITOR;
|
||||
return;
|
||||
}
|
||||
|
||||
prefixes++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
|
||||
Reference in New Issue
Block a user