USD Export: New Curves/Hair Support #105375
|
@ -427,10 +427,10 @@ void USDCurvesWriter::do_write(HierarchyContext &context)
|
|||
else if (first_frame_curve_type != curve_type) {
|
||||
const char *first_frame_curve_type_name = nullptr;
|
||||
RNA_enum_name_from_value(
|
||||
rna_enum_curves_types, (int)first_frame_curve_type, &first_frame_curve_type_name);
|
||||
rna_enum_curves_types, int(first_frame_curve_type), &first_frame_curve_type_name);
|
||||
SonnyCampbell_Unity marked this conversation as resolved
Outdated
|
||||
|
||||
const char *current_curve_type_name = nullptr;
|
||||
RNA_enum_name_from_value(rna_enum_curves_types, (int)curve_type, ¤t_curve_type_name);
|
||||
RNA_enum_name_from_value(rna_enum_curves_types, int(curve_type), ¤t_curve_type_name);
|
||||
|
||||
WM_reportf(RPT_WARNING,
|
||||
"USD does not support animating curve types. The curve type changes from %s to "
|
||||
|
|
Loading…
Reference in New Issue
(int)first_frame_curve_type
->int(first_frame_curve_type)
Functional style casts here (and below) (https://wiki.blender.org/wiki/Style_Guide/C_Cpp#C.2B.2B_Type_Cast)