Skip to content

Commit 83a599f

Browse files
committed
AlembicScene : Add breaks to cases where inner test doesn't match
1 parent 854b1a6 commit 83a599f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

contrib/IECoreAlembic/src/IECoreAlembic/AlembicScene.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@ class AlembicScene::AlembicReader : public AlembicIO
547547
scalarPropertyReader->getSample( sampleIndex, &value );
548548
return new IECore::Color4fData( C4f( value[0] / 255.0f, value[1] / 255.0f, value[2] / 255.0f, value[3] / 255.0f ) );
549549
}
550+
break;
550551
}
551552
case kInt8POD:
552553
{
@@ -597,6 +598,7 @@ class AlembicScene::AlembicReader : public AlembicIO
597598
default:
598599
break;
599600
}
601+
break;
600602
}
601603
case kUint32POD:
602604
{
@@ -641,6 +643,7 @@ class AlembicScene::AlembicReader : public AlembicIO
641643
default:
642644
break;
643645
}
646+
break;
644647
}
645648
case kUint64POD:
646649
{
@@ -680,6 +683,7 @@ class AlembicScene::AlembicReader : public AlembicIO
680683
return new IECore::Color4fData( C4f( value[0], value[1], value[2], value[3] ) );
681684
}
682685
}
686+
break;
683687
}
684688
case kFloat32POD:
685689
{
@@ -710,6 +714,7 @@ class AlembicScene::AlembicReader : public AlembicIO
710714
{
711715
return new IECore::Color3fData( C3f( value[0], value[1], value[2] ) );
712716
}
717+
break;
713718
}
714719
case 4:
715720
{
@@ -728,6 +733,7 @@ class AlembicScene::AlembicReader : public AlembicIO
728733
{
729734
return new IECore::Color4fData( C4f( tmpValue[0], tmpValue[1], tmpValue[2], tmpValue[3] ) );
730735
}
736+
break;
731737
}
732738
case 6:
733739
{
@@ -773,6 +779,7 @@ class AlembicScene::AlembicReader : public AlembicIO
773779
default:
774780
break;
775781
}
782+
break;
776783
}
777784
case kFloat64POD:
778785
{
@@ -808,6 +815,7 @@ class AlembicScene::AlembicReader : public AlembicIO
808815
{
809816
return new IECore::Box2dData( Box2d( V2d( tmpValue[0], tmpValue[1] ), V2d( tmpValue[2], tmpValue[3] ) ) );
810817
}
818+
break;
811819
}
812820
case 6:
813821
{
@@ -853,7 +861,7 @@ class AlembicScene::AlembicReader : public AlembicIO
853861
default:
854862
break;
855863
}
856-
864+
break;
857865
}
858866

859867
case kStringPOD:

0 commit comments

Comments
 (0)