We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e96d1a6 commit 493a2d7Copy full SHA for 493a2d7
1 file changed
native/src/CubismUserModel_JNI.cpp
@@ -30,8 +30,8 @@ class JniUserModel : public CubismUserModel {
30
auto* motion = CubismMotion::Create(buffer, size);
31
if (!motion) return;
32
33
- motion->SetFinishedMotionHandlerAndMotionCustomData([](ACubismMotion* self, void* data) {
34
- auto* model = static_cast<JniUserModel*>(data);
+ motion->SetFinishedMotionHandlerAndMotionCustomData([](ACubismMotion* self) {
+ auto* model = static_cast<JniUserModel*>(self->GetFinishedMotionCustomData());
35
model->notifyFinished();
36
CubismMotion::Delete(static_cast<CubismMotion*>(self));
37
}, this);
@@ -185,4 +185,4 @@ JNIEXPORT void JNICALL Java_dev_eatgrapes_live2d_CubismUserModel_drawNative(JNIE
185
}
186
187
188
-}
+}
0 commit comments