Right now the function for checking if a operator exists is run inside the draw function, there should be a better method that checks for that at register time.
Using "op_name" in dir(bpy.ops.category) there will be better suited and won't need any helper function.
Right now the function for checking if a operator exists is run inside the draw function, there should be a better method that checks for that at register time.
Using
"op_name" in dir(bpy.ops.category)there will be better suited and won't need any helper function.