Closed iloveyehan closed 2 weeks ago
Hi,
the API for color_picker4 was revised to:
def color_picker4(
label: str, col: ImVec4, flags: ColorEditFlags = 0, ref_col: Optional[ImVec4] = None
) -> Tuple[bool, ImVec4]:
pass
But to use it, you need to install the latest version: either compile from source, or try on of the recent wheels built in the CI
thank u
Traceback (most recent call last): File "G:\work\001Blender\blender_init\addons\imguitest__init__.py", line 146, in draw cb(bpy.context) # 尝试调用回调函数 ^^^^^^^^^^^^^^^ File "G:\work\001Blender\blender_init\addons\imguitest__init__.py", line 277, in draw_call changed1, self.color=imgui.color_picker4("MyColor", self.color4, misc_flags ) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: color_picker4(): incompatible function arguments. The following argument types are supported:
Invoked with: 'MyColor', [1.0, 0.5, 0.0, 0.5], 131072
Can you provide a usable data type?