Merge pull request #59 from DeemosTech/rodin-intergration

Hide Hyper3D API key in UI Panel
This commit is contained in:
ahujasid 2025-03-19 20:25:55 +05:30 committed by GitHub
commit 151e2089f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1614,7 +1614,7 @@ class BLENDERMCP_PT_Panel(bpy.types.Panel):
if scene.blendermcp_use_hyper3d:
layout.prop(scene, "blendermcp_hyper3d_mode", text="Rodin Mode")
layout.prop(scene, "blendermcp_hyper3d_api_key", text="API Key")
layout.operator("blendermcp.set_free_trial_api_key", text="Set Free Trial API Key")
layout.operator("blendermcp.set_hyper3d_free_trial_api_key", text="Set Free Trial API Key")
if not scene.blendermcp_server_running:
layout.operator("blendermcp.start_server", text="Start MCP Server")
@ -1624,7 +1624,7 @@ class BLENDERMCP_PT_Panel(bpy.types.Panel):
# Operator to set Hyper3D API Key
class BLENDERMCP_OT_SetFreeTrialHyper3DAPIKey(bpy.types.Operator):
bl_idname = "blendermcp.set_free_trial_api_key"
bl_idname = "blendermcp.set_hyper3d_free_trial_api_key"
bl_label = "Set Free Trial API Key"
def execute(self, context):
@ -1709,6 +1709,7 @@ def register():
bpy.types.Scene.blendermcp_hyper3d_api_key = bpy.props.StringProperty(
name="Hyper3D API Key",
subtype="PASSWORD",
description="API Key provided by Hyper3D",
default=""
)