add log
diff --git a/premake5_v2.lua b/premake5_v2.lua index 3ad75fa..4983f70 100644 --- a/premake5_v2.lua +++ b/premake5_v2.lua
@@ -30,6 +30,10 @@ do defines({ 'WITH_RIVE_LAYOUT' }) end +filter({ 'options:with_recorder' }) +do + defines({ 'WITH_RECORDER' }) +end filter({}) dependencies = path.getabsolute('dependencies/') @@ -184,3 +188,8 @@ trigger = 'with_rive_docs', description = 'Indicates building for use with the docs generator.', }) + +newoption({ + trigger = 'with_recorder', + description = 'Enables recorder features.', +}) \ No newline at end of file
diff --git a/src/artboard.cpp b/src/artboard.cpp index 1228ee8..e0681a9 100644 --- a/src/artboard.cpp +++ b/src/artboard.cpp
@@ -1260,6 +1260,9 @@ bool Artboard::advanceInternal(float elapsedSeconds, AdvanceFlags flags) { +#ifdef WITH_RECORDER + fprintf(stderr, "") +#endif bool didUpdate = false; for (auto adv : m_advancingComponents)