Skip to content

Commit

Permalink
Merge pull request #2441 from jslee02/fix_color_alpha
Browse files Browse the repository at this point in the history
Fix element access operator of aiColor4D
  • Loading branch information
kimkulling committed Apr 29, 2019
2 parents 55cdf1d + bcd1748 commit ae9cb02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/assimp/color4.inl
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ AI_FORCE_INLINE TReal aiColor4t<TReal>::operator[](unsigned int i) const {
return g;
case 2:
return b;
case 3:
return a;
default:
break;
}
Expand All @@ -100,6 +102,8 @@ AI_FORCE_INLINE TReal& aiColor4t<TReal>::operator[](unsigned int i) {
return g;
case 2:
return b;
case 3:
return a;
default:
break;
}
Expand Down

0 comments on commit ae9cb02

Please sign in to comment.