mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
hide hdr and shadow_contact in gles2
This commit is contained in:
parent
8d117b214f
commit
95837049e8
@ -210,6 +210,13 @@ bool Light::is_editor_only() const {
|
||||
return editor_only;
|
||||
}
|
||||
|
||||
void Light::_validate_property(PropertyInfo &property) const {
|
||||
|
||||
if (VisualServer::get_singleton()->is_low_end() && property.name == "shadow_contact") {
|
||||
property.usage = PROPERTY_USAGE_NOEDITOR | PROPERTY_USAGE_INTERNAL;
|
||||
}
|
||||
}
|
||||
|
||||
void Light::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_editor_only", "editor_only"), &Light::set_editor_only);
|
||||
|
@ -92,6 +92,7 @@ protected:
|
||||
|
||||
static void _bind_methods();
|
||||
void _notification(int p_what);
|
||||
virtual void _validate_property(PropertyInfo &property) const;
|
||||
|
||||
Light(VisualServer::LightType p_type);
|
||||
|
||||
|
@ -2923,6 +2923,13 @@ bool Viewport::is_handling_input_locally() const {
|
||||
return handle_input_locally;
|
||||
}
|
||||
|
||||
void Viewport::_validate_property(PropertyInfo &property) const {
|
||||
|
||||
if (VisualServer::get_singleton()->is_low_end() && property.name == "hdr") {
|
||||
property.usage = PROPERTY_USAGE_NOEDITOR | PROPERTY_USAGE_INTERNAL;
|
||||
}
|
||||
}
|
||||
|
||||
void Viewport::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_use_arvr", "use"), &Viewport::set_use_arvr);
|
||||
|
@ -390,6 +390,7 @@ private:
|
||||
protected:
|
||||
void _notification(int p_what);
|
||||
static void _bind_methods();
|
||||
virtual void _validate_property(PropertyInfo &property) const;
|
||||
|
||||
public:
|
||||
Listener *get_listener() const;
|
||||
|
Loading…
Reference in New Issue
Block a user