def poll(cls, context):
try:
wm = context.window_manager
if not wm.cursor_3d_runtime_settings.use_cursor_monitor:
return False
runtime_settings = find_runtime_settings()
if not runtime_settings:
return False
# When addon is enabled by default and
# user started another new scene, is_running
# would still be True
return (not CursorMonitor.is_running) or \
(runtime_settings.current_monitor_id == 0)
except Exception as e:
print("Cursor monitor exeption in poll:\n" + repr(e))
return False
space_view3d_enhanced_3d_cursor.py 文件源码
python
阅读 16
收藏 0
点赞 0
评论 0
评论列表
文章目录