fix: replay count
This commit is contained in:
parent
8000ce9931
commit
8d15e69b50
@ -100,7 +100,13 @@ def set_log_level(self, value):
|
||||
logging.getLogger().setLevel(value)
|
||||
|
||||
def set_active_replay(self, value):
|
||||
max_index = len(bpy.context.window_manager.session.replay_files)-1
|
||||
files_count = len(bpy.context.window_manager.session.replay_files)
|
||||
|
||||
if files_count == 0:
|
||||
return
|
||||
|
||||
max_index = files_count-1
|
||||
|
||||
if value > max_index:
|
||||
value = max_index
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user