Get add-on preferences object if available.
(context=None)
| 37 | REQ_HEADERS.update({"User-Agent": "blender-mcp"}) |
| 38 | |
| 39 | def get_blendermcp_addon_preferences(context=None): |
| 40 | """Get add-on preferences object if available.""" |
| 41 | if context is None: |
| 42 | context = bpy.context |
| 43 | addon = context.preferences.addons.get(__name__) |
| 44 | return addon.preferences if addon else None |
| 45 | |
| 46 | class BlenderMCPServer: |
| 47 | def __init__(self, host='localhost', port=9876): |
no outgoing calls
no test coverage detected