Changed string literal to string_view
This commit is contained in:
parent
69d3cc7619
commit
73a7cbcda0
|
@ -100,6 +100,10 @@ constexpr std::string_view SCALE_PATH{ "scale" };
|
||||||
constexpr std::string_view ROTATION_PATH{ "rotation" };
|
constexpr std::string_view ROTATION_PATH{ "rotation" };
|
||||||
constexpr std::string_view WEIGHTS_PATH{ "weights" };
|
constexpr std::string_view WEIGHTS_PATH{ "weights" };
|
||||||
|
|
||||||
|
constexpr std::string_view LINEAR_INTERPOLATION{ "LINEAR" };
|
||||||
|
constexpr std::string_view STEP_INTERPOLATION{ "STEP" };
|
||||||
|
constexpr std::string_view CUBICSPLINE_INTERPOLATION{ "CUBICSPLINE" };
|
||||||
|
|
||||||
//Directory
|
//Directory
|
||||||
#ifdef _PUBLISH
|
#ifdef _PUBLISH
|
||||||
constexpr std::string_view ASSET_ROOT{ "Assets" };
|
constexpr std::string_view ASSET_ROOT{ "Assets" };
|
||||||
|
|
|
@ -240,9 +240,9 @@ namespace SH_COMP
|
||||||
FetchChannelKeyFrame(channel.target_node, sampler.input, sampler.output, channel.target_node, anim.nodes[channel.target_node].rotationKeys);
|
FetchChannelKeyFrame(channel.target_node, sampler.input, sampler.output, channel.target_node, anim.nodes[channel.target_node].rotationKeys);
|
||||||
|
|
||||||
anim.nodes[channel.target_node].interpolation =
|
anim.nodes[channel.target_node].interpolation =
|
||||||
sampler.interpolation == "LINEAR" ? AnimationInterpolation::LINEAR :
|
sampler.interpolation == LINEAR_INTERPOLATION.data() ? AnimationInterpolation::LINEAR :
|
||||||
sampler.interpolation == "STEP" ? AnimationInterpolation::STEP :
|
sampler.interpolation == STEP_INTERPOLATION.data() ? AnimationInterpolation::STEP :
|
||||||
sampler.interpolation == "CUBICSPLINE" ? AnimationInterpolation::CUBICSPLINE :
|
sampler.interpolation == CUBICSPLINE_INTERPOLATION.data() ? AnimationInterpolation::CUBICSPLINE :
|
||||||
AnimationInterpolation::DEFAULT;
|
AnimationInterpolation::DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue