Updated ozz-animation to version 0.14.3 (commit 92c392b667844)
This commit is contained in:
+4
-4
@@ -58,7 +58,7 @@ OZZ_OPTIONS_DECLARE_STRING(animation2,
|
||||
|
||||
// Third animation archive can be specified as an option.
|
||||
OZZ_OPTIONS_DECLARE_STRING(animation3,
|
||||
"Path to the second animation (ozz archive format).",
|
||||
"Path to the third animation (ozz archive format).",
|
||||
"media/animation3.ozz", false)
|
||||
|
||||
class BlendSampleApplication : public ozz::sample::Application {
|
||||
@@ -242,16 +242,16 @@ class BlendSampleApplication : public ozz::sample::Application {
|
||||
}
|
||||
|
||||
char label[64];
|
||||
std::sprintf(label, "Blend ratio: %.2f", blend_ratio_);
|
||||
std::snprintf(label, sizeof(label), "Blend ratio: %.2f", blend_ratio_);
|
||||
_im_gui->DoSlider(label, 0.f, 1.f, &blend_ratio_, 1.f, !manual_);
|
||||
|
||||
for (int i = 0; i < kNumLayers; ++i) {
|
||||
Sampler& sampler = samplers_[i];
|
||||
std::sprintf(label, "Weight %d: %.2f", i, sampler.weight);
|
||||
std::snprintf(label, sizeof(label), "Weight %d: %.2f", i, sampler.weight);
|
||||
_im_gui->DoSlider(label, 0.f, 1.f, &sampler.weight, 1.f, manual_);
|
||||
}
|
||||
|
||||
std::sprintf(label, "Threshold: %.2f", threshold_);
|
||||
std::snprintf(label, sizeof(label), "Threshold: %.2f", threshold_);
|
||||
_im_gui->DoSlider(label, .01f, 1.f, &threshold_);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user