Skip to content

Commit 8a0863f

Browse files
committed
#3395 Make LLProfile error more detailed
1 parent 48422b2 commit 8a0863f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

indra/llmath/llvolume.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,8 @@ bool LLProfile::generate(const LLProfileParams& params, bool path_open,F32 detai
766766

767767
S32 face_num = 0;
768768

769-
switch (params.getCurveType() & LL_PCODE_PROFILE_MASK)
769+
U8 curve_type = params.getCurveType() & LL_PCODE_PROFILE_MASK;
770+
switch (curve_type)
770771
{
771772
case LL_PCODE_PROFILE_SQUARE:
772773
{
@@ -981,7 +982,9 @@ bool LLProfile::generate(const LLProfileParams& params, bool path_open,F32 detai
981982
}
982983
break;
983984
default:
984-
LL_ERRS() << "Unknown profile: getCurveType()=" << params.getCurveType() << LL_ENDL;
985+
LL_ERRS() << "Unknown profile: getCurveType()=" << (U32)params.getCurveType()
986+
<< " with mask: " << (U32)curve_type
987+
<< " params: " << params << LL_ENDL;
985988
break;
986989
};
987990

0 commit comments

Comments
 (0)