aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/skottie/src/SkottieAnimator.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/skottie/src/SkottieAnimator.h')
-rw-r--r--modules/skottie/src/SkottieAnimator.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/skottie/src/SkottieAnimator.h b/modules/skottie/src/SkottieAnimator.h
index c4464e3138..23bd9aa500 100644
--- a/modules/skottie/src/SkottieAnimator.h
+++ b/modules/skottie/src/SkottieAnimator.h
@@ -22,7 +22,15 @@ template <typename T>
bool BindProperty(const skjson::Value&,
sksg::AnimatorList*,
std::function<void(const T&)>&&,
- const T* noop = nullptr);
+ const T* default_igore = nullptr);
+
+template <typename T>
+bool BindProperty(const skjson::Value& jv,
+ sksg::AnimatorList* animators,
+ std::function<void(const T&)>&& apply,
+ const T& default_ignore) {
+ return BindProperty(jv, animators, std::move(apply), &default_ignore);
+}
} // namespace skottie