From cc550d5908d1b94e705206cf3e929ea1bfb20960 Mon Sep 17 00:00:00 2001 From: Terry Jia Date: Mon, 16 Dec 2024 13:51:40 -0500 Subject: [PATCH] use String directly to set bg color for load 3d canvas (#6057) --- comfy_extras/nodes_load_3d.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comfy_extras/nodes_load_3d.py b/comfy_extras/nodes_load_3d.py index 90da9fd6..45254c5b 100644 --- a/comfy_extras/nodes_load_3d.py +++ b/comfy_extras/nodes_load_3d.py @@ -23,7 +23,7 @@ class Load3D(): "camera_type": (["perspective", "orthographic"],), "view": (["front", "right", "top", "isometric"],), "material": (["original", "normal", "wireframe", "depth"],), - "bg_color": ("INT", {"default": 0, "min": 0, "max": 0xFFFFFF, "step": 1, "display": "color"}), + "bg_color": ("STRING", {"default": "#000000", "multiline": False}), "light_intensity": ("INT", {"default": 10, "min": 1, "max": 20, "step": 1}), "up_direction": (["original", "-x", "+x", "-y", "+y", "-z", "+z"],), }} @@ -62,7 +62,7 @@ class Load3DAnimation(): "camera_type": (["perspective", "orthographic"],), "view": (["front", "right", "top", "isometric"],), "material": (["original", "normal", "wireframe", "depth"],), - "bg_color": ("INT", {"default": 0, "min": 0, "max": 0xFFFFFF, "step": 1, "display": "color"}), + "bg_color": ("STRING", {"default": "#000000", "multiline": False}), "light_intensity": ("INT", {"default": 10, "min": 1, "max": 20, "step": 1}), "up_direction": (["original", "-x", "+x", "-y", "+y", "-z", "+z"],), "animation_speed": (["0.1", "0.5", "1", "1.5", "2"], {"default": "1"}),