Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore query docs #297

Merged
merged 2 commits into from
Jun 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions addons/io_hubs_addon/debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
from . import api
from bpy.types import AnyType

ROOM_FLAGS_DOC_URL = "https://update-with-hubs-query-string-parameters"
DEMO_SERVER_URL = ""
ROOM_FLAGS_DOC_URL = "https://github.com/Hubs-Foundation/hubs-docs/blob/master/docs/hubs-query-string-parameters.md"


def export_scene(context):
Expand Down Expand Up @@ -294,7 +295,7 @@ def draw(self, context: Context):
col = row.column()
op = col.operator(HubsSceneDebuggerRoomAdd.bl_idname,
icon='ADD', text="")
op.url = ""
op.url = DEMO_SERVER_URL
col.operator(HubsSceneDebuggerRoomRemove.bl_idname,
icon='REMOVE', text="")

Expand Down Expand Up @@ -500,7 +501,7 @@ def add_instance(context):
prefs = context.window_manager.hubs_scene_debugger_prefs
new_instance = prefs.hubs_instances.add()
new_instance.name = "Demo Hub"
new_instance.url = ""
new_instance.url = DEMO_SERVER_URL
prefs.hubs_instance_idx = len(
prefs.hubs_instances) - 1

Expand Down Expand Up @@ -1053,7 +1054,7 @@ def set_url(self, value):
parsed = parsed._replace(scheme="https")
self.url_ = urllib.parse.urlunparse(parsed)
except Exception:
self.url_ = ""
self.url_ = DEMO_SERVER_URL


def get_url(self):
Expand Down
Loading