Explorar o código

Fix element access operator of aiColor4D

Jeongseok Lee %!s(int64=6) %!d(string=hai) anos
pai
achega
bcd17481e5
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      include/assimp/color4.inl

+ 4 - 0
include/assimp/color4.inl

@@ -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;
     }
@@ -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;
     }