|
@@ -1284,7 +1284,7 @@ void Discreet3DSImporter::ParseColorChunk(aiColor3D *out, bool acceptPercent) {
|
|
switch (chunk.Flag) {
|
|
switch (chunk.Flag) {
|
|
case Discreet3DS::CHUNK_LINRGBF:
|
|
case Discreet3DS::CHUNK_LINRGBF:
|
|
bGamma = true;
|
|
bGamma = true;
|
|
-
|
|
|
|
|
|
+ // fallthrough
|
|
case Discreet3DS::CHUNK_RGBF:
|
|
case Discreet3DS::CHUNK_RGBF:
|
|
if (sizeof(float) * 3 > diff) {
|
|
if (sizeof(float) * 3 > diff) {
|
|
*out = clrError;
|
|
*out = clrError;
|
|
@@ -1297,6 +1297,7 @@ void Discreet3DSImporter::ParseColorChunk(aiColor3D *out, bool acceptPercent) {
|
|
|
|
|
|
case Discreet3DS::CHUNK_LINRGBB:
|
|
case Discreet3DS::CHUNK_LINRGBB:
|
|
bGamma = true;
|
|
bGamma = true;
|
|
|
|
+ // fallthrough
|
|
case Discreet3DS::CHUNK_RGBB: {
|
|
case Discreet3DS::CHUNK_RGBB: {
|
|
if (sizeof(char) * 3 > diff) {
|
|
if (sizeof(char) * 3 > diff) {
|
|
*out = clrError;
|
|
*out = clrError;
|