Skip to content

Commit

Permalink
fix resetting commit selection on default branch (#206)
Browse files Browse the repository at this point in the history
Co-authored-by: Soylu <[email protected]>
  • Loading branch information
overengineer and Soylu authored Jul 28, 2024
1 parent 6fd4571 commit 15bd3f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bpy_speckle/properties/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def get_commits(self, context):

def commit_update_hook(self, context: bpy.types.Context):
selection_state.selected_commit_id = SelectionState.get_item_id_by_index(self.commits, self.commit)
selection_state.selected_branch_id = self.id

name: StringProperty(default="main") # type: ignore
id: StringProperty(default="") # type: ignore
Expand Down

0 comments on commit 15bd3f5

Please sign in to comment.