Commit pasted sequence timeline state

This commit is contained in:
2026-10-30 11:56:22 +00:00
parent 999f3a9443
commit c299955a72
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -560,7 +560,10 @@ function configure(node) {
syncPrompt(clip, prompt.value);
promptText = prompt.value;
clip.prompt = prompt.value;
persistState();
// Notify ComfyUI as well as updating the hidden widget value.
// Without the callback, the editor redraws locally but queueing
// can still send the previous one-shot timeline_json value.
setState();
// A paste can change the text of an existing shot without
// adding/removing shot markers. Redraw in both cases so the
// timeline labels and shot chips reflect the pasted text.
+2
View File
@@ -123,6 +123,8 @@ class H3NodeTests(unittest.TestCase):
self.assertEqual(result[3].selectors, ("1,2", "1,2") + ("off",) * 7)
self.assertIn("[0-4s]", result[0])
self.assertIn("[4-8s]", result[0])
self.assertIn("Walk.", result[0])
self.assertIn("Turn.", result[0])
finally:
sys.modules.pop(reference_module.__name__, None)