Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/commandbuffer.cc')
-rw-r--r--src/core/commandbuffer.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/commandbuffer.cc b/src/core/commandbuffer.cc
index bafb3b8..c4777d4 100644
--- a/src/core/commandbuffer.cc
+++ b/src/core/commandbuffer.cc
@@ -150,7 +150,12 @@ void func_list_model(std::string const &args)
void func_list_materials(std::string const &args)
{
- model::Material::list();
+ model::Material *material = model::Material::find(args);
+ if (material) {
+ material->print();
+ } else {
+ model::Material::list();
+ }
}
void func_list_module(std::string const &args)