Merge pull request #59 from DeemosTech/rodin-intergration
Hide Hyper3D API key in UI Panel
This commit is contained in:
commit
151e2089f4
5
addon.py
5
addon.py
@ -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=""
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user