From a92156573b29a1d9de5bb9bd445e5d06defeef5a Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Wed, 14 Dec 2022 14:50:00 +0800 Subject: [PATCH] add default values for SceneResources --- ios/include/SceneResources.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ios/include/SceneResources.hpp b/ios/include/SceneResources.hpp index 9296575b..012afc76 100644 --- a/ios/include/SceneResources.hpp +++ b/ios/include/SceneResources.hpp @@ -31,17 +31,17 @@ namespace polyvox { // // A flag that is checked each frame to determine whether or not the animation should play. // - bool play; + bool play = false; // // If [play] is true, this flag will be checked when the animation is complete. If true, the animation will restart. // - bool loop; + bool loop = false; // // If true, the animation will be played in reverse. // - bool reverse; + bool reverse = false; // // If [play] is true, this flag will be set to true when the animation is started. @@ -51,7 +51,7 @@ namespace polyvox { // // The index of the animation in the GLTF asset. // - int animationIndex; + int animationIndex = -1; // // The time point at which this animation was last started.