Skip to content

Commit

Permalink
JPC tab: Fix TDB1 not being expanded by default
Browse files Browse the repository at this point in the history
  • Loading branch information
LagoLunatic committed Nov 10, 2023
1 parent 85d8795 commit 91e6773
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gcft_ui/jpc_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ def add_ssp1_chunk_to_tree(self, ssp1: SSP1, chunk_item: QStandardItem):

def add_tdb1_chunk_to_tree(self, tdb1: TDB1, chunk_item: QStandardItem):
# Expand TDB1 chunks by default.
self.ui.jpc_particles_tree.expand(self.item_model.indexFromItem(chunk_item))
chunk_index = self.proxy_model.mapFromSource(self.item_model.indexFromItem(chunk_item))
self.ui.jpc_particles_tree.expand(chunk_index)

for texture_filename in tdb1.texture_filenames:
texture = self.jpc.textures_by_filename[texture_filename]
Expand Down

0 comments on commit 91e6773

Please sign in to comment.