Merge pull request #2441 from jslee02/fix_color_alpha

Fix element access operator of aiColor4D
pull/2417/head^2
Kim Kulling 2019-04-29 18:48:58 +02:00 committed by GitHub
commit ae9cb02427
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -85,6 +85,8 @@ AI_FORCE_INLINE TReal aiColor4t<TReal>::operator[](unsigned int i) const {
return g; return g;
case 2: case 2:
return b; return b;
case 3:
return a;
default: default:
break; break;
} }
@ -100,6 +102,8 @@ AI_FORCE_INLINE TReal& aiColor4t<TReal>::operator[](unsigned int i) {
return g; return g;
case 2: case 2:
return b; return b;
case 3:
return a;
default: default:
break; break;
} }