Version 0.4.6 - fix pop random to make them always recalculate

This commit is contained in:
StableLlama
2025-07-16 20:03:15 +02:00
parent 753163cfb1
commit bdae6308b1
5 changed files with 17 additions and 1 deletions
+4
View File
@@ -520,6 +520,10 @@ class SetPopRandom(ComfyNodeABC):
DESCRIPTION = cleandoc(__doc__ or "")
FUNCTION = "pop_random_element"
@classmethod
def IS_CHANGED(cls, **kwargs):
return float("NaN") # Not equal to anything -> trigger recalculation
def pop_random_element(self, set: set[Any]) -> tuple[set[Any], Any]:
import random
result = set.copy()