add logs
diff --git a/include/rive/artboard.hpp b/include/rive/artboard.hpp index b693924..5e47ff9 100644 --- a/include/rive/artboard.hpp +++ b/include/rive/artboard.hpp
@@ -132,8 +132,8 @@ static uint64_t frameId() { return sm_frameId; } #ifdef WITH_RECORDER static bool isDebug; - bool hasPrinted = false; -#endif + mutable bool m_hasPrinted = false; + #endif #ifdef TESTING static void incFrameId() { sm_frameId++; } #elif WITH_RIVE_TOOLS
diff --git a/src/artboard.cpp b/src/artboard.cpp index 5bf1564..f9331a1 100644 --- a/src/artboard.cpp +++ b/src/artboard.cpp
@@ -1651,8 +1651,8 @@ LinearAnimation* Artboard::animation(size_t index) const { #ifdef WITH_RECORDER - if(!hasPrinted) { - hasPrinted = true; + if(!m_hasPrinted) { + m_hasPrinted = true; printf("[RECORDER_LOG] anims of: %s\n", name().c_str()); int cnt = 0; for(auto& anim : m_Animations) {