Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Dec 1, 2023
1 parent 38f3416 commit 231edec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addons/io_hubs_addon/debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def is_user_logged_in():
return has_credentials


def is_user_in_entered():
def is_user_in_room():
return web_driver.execute_script('try { return APP.scene.is("entered"); } catch(e) { return false; }')


Expand All @@ -106,7 +106,7 @@ class HubsUpdateSceneOperator(bpy.types.Operator):

@classmethod
def poll(cls, context: Context):
return isWebdriverAlive() and is_user_logged_in() and is_user_in_entered()
return isWebdriverAlive() and is_user_logged_in() and is_user_in_room()

def execute(self, context):
try:
Expand Down Expand Up @@ -258,7 +258,7 @@ def draw(self, context):
text="Set the default export options in the glTF export panel")
row = box.row()
col = row.column(heading="Overridden export options:")
col.enabled = isWebdriverAlive() and is_user_in_entered()
col.enabled = isWebdriverAlive() and is_user_in_room()
col.use_property_split = True
col.prop(context.scene.hubs_scene_debugger_room_export_prefs,
"export_cameras")
Expand All @@ -279,7 +279,7 @@ def draw(self, context):
col.label(text="Status:")
if isWebdriverAlive():
if is_user_logged_in():
if is_user_in_entered():
if is_user_in_room():
col = row.column()
col.alignment = "LEFT"
col.active_default = True
Expand Down

0 comments on commit 231edec

Please sign in to comment.