Commit pasted sequence timeline state
This commit is contained in:
@@ -560,7 +560,10 @@ function configure(node) {
|
|||||||
syncPrompt(clip, prompt.value);
|
syncPrompt(clip, prompt.value);
|
||||||
promptText = prompt.value;
|
promptText = prompt.value;
|
||||||
clip.prompt = 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
|
// A paste can change the text of an existing shot without
|
||||||
// adding/removing shot markers. Redraw in both cases so the
|
// adding/removing shot markers. Redraw in both cases so the
|
||||||
// timeline labels and shot chips reflect the pasted text.
|
// timeline labels and shot chips reflect the pasted text.
|
||||||
|
|||||||
@@ -123,6 +123,8 @@ class H3NodeTests(unittest.TestCase):
|
|||||||
self.assertEqual(result[3].selectors, ("1,2", "1,2") + ("off",) * 7)
|
self.assertEqual(result[3].selectors, ("1,2", "1,2") + ("off",) * 7)
|
||||||
self.assertIn("[0-4s]", result[0])
|
self.assertIn("[0-4s]", result[0])
|
||||||
self.assertIn("[4-8s]", result[0])
|
self.assertIn("[4-8s]", result[0])
|
||||||
|
self.assertIn("Walk.", result[0])
|
||||||
|
self.assertIn("Turn.", result[0])
|
||||||
finally:
|
finally:
|
||||||
sys.modules.pop(reference_module.__name__, None)
|
sys.modules.pop(reference_module.__name__, None)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user