Fix VAEEncodeForInpaint to support WAN VAE tuple downscale_ratio

Use vae.spacial_compression_encode() instead of directly accessing
downscale_ratio to handle both standard VAEs (int) and WAN VAEs (tuple).

Addresses reviewer feedback on PR #11259.
This commit is contained in:
ChrisFab16 2025-12-19 10:40:50 +01:00
parent 894802b0f9
commit 01b86f143e

4905
nodes.py

File diff suppressed because it is too large Load Diff