use String directly to set bg color for load 3d canvas (#6057)

This commit is contained in:
Terry Jia 2024-12-16 13:51:40 -05:00 committed by GitHub
parent 6d1a3f7d00
commit cc550d5908
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,7 @@ class Load3D():
"camera_type": (["perspective", "orthographic"],), "camera_type": (["perspective", "orthographic"],),
"view": (["front", "right", "top", "isometric"],), "view": (["front", "right", "top", "isometric"],),
"material": (["original", "normal", "wireframe", "depth"],), "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}), "light_intensity": ("INT", {"default": 10, "min": 1, "max": 20, "step": 1}),
"up_direction": (["original", "-x", "+x", "-y", "+y", "-z", "+z"],), "up_direction": (["original", "-x", "+x", "-y", "+y", "-z", "+z"],),
}} }}
@ -62,7 +62,7 @@ class Load3DAnimation():
"camera_type": (["perspective", "orthographic"],), "camera_type": (["perspective", "orthographic"],),
"view": (["front", "right", "top", "isometric"],), "view": (["front", "right", "top", "isometric"],),
"material": (["original", "normal", "wireframe", "depth"],), "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}), "light_intensity": ("INT", {"default": 10, "min": 1, "max": 20, "step": 1}),
"up_direction": (["original", "-x", "+x", "-y", "+y", "-z", "+z"],), "up_direction": (["original", "-x", "+x", "-y", "+y", "-z", "+z"],),
"animation_speed": (["0.1", "0.5", "1", "1.5", "2"], {"default": "1"}), "animation_speed": (["0.1", "0.5", "1", "1.5", "2"], {"default": "1"}),