Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-07-29 23:35:46 +0000
committerStijn Buys <ingar@osirion.org>2011-07-29 23:35:46 +0000
commit8924c07280cdd96b01c501b3b820711f89039edd (patch)
treee5b40c4bf8376ca9f69ec04e920851bb2c0cdd2b /src/core/commandbuffer.cc
parent336766125f25b94dd9fc19aeea35c8b43acbeea0 (diff)
Added print() function for materials, read material color alpha from shader files.
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)