[Bf-extensions-cvs] [c43c0b2] master: Storypencil: Fix conversion error using frame_current

Antonio Vazquez noreply at git.blender.org
Tue Sep 20 20:05:59 CEST 2022


Commit: c43c0b2bcf08c34d933c3b56f096c9a23c8eff68
Author: Antonio Vazquez
Date:   Tue Sep 20 20:05:54 2022 +0200
Branches: master
https://developer.blender.org/rBACc43c0b2bcf08c34d933c3b56f096c9a23c8eff68

Storypencil: Fix conversion error using frame_current

Need an int

===================================================================

M	storypencil/synchro.py

===================================================================

diff --git a/storypencil/synchro.py b/storypencil/synchro.py
index 86a762a..839de76 100644
--- a/storypencil/synchro.py
+++ b/storypencil/synchro.py
@@ -399,7 +399,7 @@ def set_scene_frame(scene, frame, force_update_main=False):
     """
     options = bpy.context.window_manager.storypencil_settings
     if scene.frame_current != frame:
-        scene.frame_current = frame
+        scene.frame_current = int(frame)
         scene.frame_set(int(frame))
         if force_update_main:
             update_sync(



More information about the Bf-extensions-cvs mailing list