Add in-menu option for OpenCV installation

This commit is contained in:
Alexander Kleemann 2021-03-18 19:25:02 +01:00
parent ef8fb21536
commit 5fe816d16a

View file

@ -259,7 +259,9 @@ class TLM_PT_Filtering(bpy.types.Panel):
if cv2 is None:
row = layout.row(align=True)
row.label(text="OpenCV is not installed. Install it through preferences.")
row.label(text="OpenCV is not installed. Please install it as an administrator.")
row = layout.row(align=True)
row.operator("tlm.install_opencv_lightmaps")
else:
row = layout.row(align=True)
row.prop(scene.TLM_SceneProperties, "tlm_filtering_mode")