diff options
author | Ruslan Mustakov <r.mustakov@gmail.com> | 2018-01-12 22:37:00 +0700 |
---|---|---|
committer | Ruslan Mustakov <r.mustakov@gmail.com> | 2018-01-12 22:37:00 +0700 |
commit | b517fc11af4142d69e475de19bcd31b25f904713 (patch) | |
tree | 8d71075f7e41a8835dddd64865c4d6fd4cedb3f8 | |
parent | 3a05d974e0fb925869fe0fdfdbde9da8ee6a2757 (diff) |
Fix Material's shader property binding
ShaderGraph doesn't exist in 3.0.
-rw-r--r-- | scene/resources/material.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp index d9ae912208..91ba9e4768 100644 --- a/scene/resources/material.cpp +++ b/scene/resources/material.cpp @@ -178,7 +178,7 @@ void ShaderMaterial::_bind_methods() { ClassDB::bind_method(D_METHOD("set_shader_param", "param", "value"), &ShaderMaterial::set_shader_param); ClassDB::bind_method(D_METHOD("get_shader_param", "param"), &ShaderMaterial::get_shader_param); - ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "shader", PROPERTY_HINT_RESOURCE_TYPE, "Shader,ShaderGraph"), "set_shader", "get_shader"); + ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "shader", PROPERTY_HINT_RESOURCE_TYPE, "Shader"), "set_shader", "get_shader"); } void ShaderMaterial::get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const { |