diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-02-11 06:51:20 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-02-11 06:51:20 -0300 |
commit | 1d54c2dd1c94cd8b44fc9cd5a67deba88dbabdda (patch) | |
tree | 4f5645c5c8933a8fa60fce41e98c9943828c4763 /scene/resources/material.cpp | |
parent | d22b256f0841a0ff97f45c5a11aeccd7658b79fa (diff) | |
download | redot-engine-1d54c2dd1c94cd8b44fc9cd5a67deba88dbabdda.tar.gz |
added missing set_shader_param functions
also added code completion hint for shader params
Diffstat (limited to 'scene/resources/material.cpp')
-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 08c752cff9..633dd72ce3 100644 --- a/scene/resources/material.cpp +++ b/scene/resources/material.cpp @@ -582,7 +582,7 @@ void ShaderMaterial::get_argument_options(const StringName& p_function,int p_idx List<PropertyInfo> pl; shader->get_param_list(&pl); for (List<PropertyInfo>::Element *E=pl.front();E;E=E->next()) { - r_options->push_back("\""+E->get().name.replace("shader_param/","")+"\""); + r_options->push_back("\""+E->get().name.replace_first("shader_param/","")+"\""); } } } |