From 7ccd19fc1288f64393f64b3249497c919f5f0a04 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 20 Apr 2021 12:28:36 +1000 Subject: [PATCH] PyAPI: update docs to include poll_message_set reference Part of D9738 --- doc/python_api/rst/info_gotcha.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/python_api/rst/info_gotcha.rst b/doc/python_api/rst/info_gotcha.rst index e5ff56063b5..df6e7297e26 100644 --- a/doc/python_api/rst/info_gotcha.rst +++ b/doc/python_api/rst/info_gotcha.rst @@ -50,7 +50,8 @@ you should be able to find the poll function with no knowledge of C. Blender does have the functionality for poll functions to describe why they fail, but its currently not used much, if you're interested to help improve the API - feel free to add calls to ``CTX_wm_operator_poll_msg_set`` where its not obvious why poll fails, e.g: + feel free to add calls to :class:`bpy.types.Operator.poll_message_set` (``CTX_wm_operator_poll_msg_set`` in C) + where its not obvious why poll fails, e.g: >>> bpy.ops.gpencil.draw() RuntimeError: Operator bpy.ops.gpencil.draw.poll() Failed to find Grease Pencil data to draw into