fix(observatory): preserve camera across follow transitions
This commit is contained in:
@@ -53,7 +53,7 @@ class _RecordedBlueprintStream:
|
||||
Upstream 0.36.3 activates a clone, not this source store. Explicit refresh
|
||||
makes layer changes visible. Ordinary layer updates deliberately omit eye
|
||||
components so the active clone retains the operator's camera. Only an
|
||||
explicit 3D/plan/follow transition may write a new spatial eye preset.
|
||||
explicit 3D/plan/reset transition may write a new spatial eye preset.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
@@ -98,6 +98,9 @@ class _RecordedBlueprintStream:
|
||||
raise RecordedBlueprintError("stable blueprint stream is closed")
|
||||
eye_contract = (follow_trajectory, plan_view)
|
||||
update_eye_controls = self._eye_contract != eye_contract
|
||||
use_spatial_preset = (
|
||||
self._eye_contract is not None and self._eye_contract[1] != plan_view
|
||||
)
|
||||
# Initial admission/reset uses native framing. Explicit presets
|
||||
# apply to mode transitions, after the viewer has a source cursor.
|
||||
# Keep one view identity for the lifetime of this browser owner.
|
||||
@@ -108,7 +111,7 @@ class _RecordedBlueprintStream:
|
||||
view_instance_token = self.blueprint_session_id
|
||||
blueprint = blueprint_factory(
|
||||
update_eye_controls,
|
||||
self._eye_contract is not None,
|
||||
use_spatial_preset,
|
||||
view_instance_token,
|
||||
)
|
||||
# Appending rows alone does not refresh upstream's active clone.
|
||||
|
||||
Reference in New Issue
Block a user