Skip to content

Commit

Permalink
feat: display path finder struct
Browse files Browse the repository at this point in the history
  • Loading branch information
jvenin committed May 9, 2024
1 parent 88b9c8d commit 354372e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/widgets/header2/display.dart
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ List<Widget> getChunkWidgetByType(
children: [
BoneTreeDisplay(
boneTree: data.skeleton.boneTree, bones: data.skeleton.bones),
if (data.bone != null) BoneDisplay(bone: data.bone!)
if (data.bone != null) BoneDisplay(bone: data.bone!),
if (collisionStruct != null) getCollisionWidget(collisionStruct),
],
),
),
Expand Down
3 changes: 3 additions & 0 deletions lib/widgets/header2/widgets/path_finder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class PathFinderDisplay extends ConsumerWidget {
),
if (pathFinderTable != null)
PartSelector(
value: ref
.watch(header2StateNotifierProvider)
.mapOrNull(withModelSettings: (value) => value.collisionStruct),
label: "Path finder table",
parts: pathFinderTable!.collisionStructs,
onSelected: (collisionStruct) {
Expand Down

0 comments on commit 354372e

Please sign in to comment.