1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

added missing set_shader_param functions

also added code completion hint for shader params
This commit is contained in:
Juan Linietsky
2015-02-11 06:51:20 -03:00
parent d22b256f08
commit 1d54c2dd1c
3 changed files with 25 additions and 2 deletions

View File

@@ -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/","")+"\"");
}
}
}