mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-11 19:00:04 +01:00
fix for QuickPresetPlugin not saving into correct slot
This commit is contained in:
@@ -38,14 +38,17 @@ class ShaderQuickPresetPlugin(ActionsPlugin): #,SequencePlugin):
|
||||
]
|
||||
|
||||
def store_next_preset(self):
|
||||
# find an empty slot
|
||||
res = [i for i, val in enumerate(self.presets) if val == None]
|
||||
if res is None or not res:
|
||||
# didnt find an empty slot, save to current
|
||||
self.store_current_preset()
|
||||
self.selected_preset += 1
|
||||
self.selected_preset %= self.MAX_PRESETS
|
||||
else:
|
||||
# found an empty slot, save to it
|
||||
self.selected_preset = res[0]
|
||||
|
||||
self.store_current_preset()
|
||||
self.store_current_preset()
|
||||
|
||||
def clear_current_preset(self):
|
||||
if self.selected_preset is None:
|
||||
|
||||
@@ -313,6 +313,6 @@ class FrameManager:
|
||||
for plugin in self.pc.get_plugins(AutomationSourcePlugin):
|
||||
data[plugin.frame_key] = plugin.get_frame_data()
|
||||
|
||||
print("get_plugin_frame_data looks like %s" % data)
|
||||
#print("get_plugin_frame_data looks like %s" % data)
|
||||
return data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user