[opengtl-commits] [456] support, for r,g,b,a to access the value of a float |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 456
Author: cyrille
Date: 2008-10-17 09:44:40 +0200 (Fri, 17 Oct 2008)
Log Message:
-----------
support, for r,g,b,a to access the value of a float
Modified Paths:
--------------
trunk/OpenGTL/OpenGTL/GTLCore/ParserBase_p.cpp
Modified: trunk/OpenGTL/OpenGTL/GTLCore/ParserBase_p.cpp
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/ParserBase_p.cpp 2008-10-17 07:42:55 UTC (rev 455)
+++ trunk/OpenGTL/OpenGTL/GTLCore/ParserBase_p.cpp 2008-10-17 07:44:40 UTC (rev 456)
@@ -240,13 +240,13 @@
} else if( _expression->type()->dataType() == Type::VECTOR ) {
int index = -1;
GTL_DEBUG(name);
- if( name == "x" ) {
+ if( name == "x" or name == "r" ) {
index = 0;
- } else if( name == "y" ) {
+ } else if( name == "y" or name == "g" ) {
index = 1;
- } else if( name == "z" ) {
+ } else if( name == "z" or name == "b" ) {
index = 2;
- } else if( name == "w" ) {
+ } else if( name == "w" or name == "a" ) {
index = 3;
}
if( index == -1 )