Skip to content

Commit

Permalink
Merge pull request #297 from Hubs-Foundation/query-string-docs
Browse files Browse the repository at this point in the history
Restore query docs
  • Loading branch information
Exairnous authored Jun 18, 2024
2 parents ce74e9f + d642b4b commit 8bae950
Showing 1 changed file with 5 additions and 4 deletions.
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

0 comments on commit 8bae950

Please sign in to comment.