diff --git a/docs/flutter_service_worker.js b/docs/flutter_service_worker.js index d0f84ef..eb0072a 100644 --- a/docs/flutter_service_worker.js +++ b/docs/flutter_service_worker.js @@ -4,9 +4,9 @@ const TEMP = 'flutter-temp-cache'; const CACHE_NAME = 'flutter-app-cache'; const RESOURCES = {"version.json": "7c5035eab4a479d3fa9551a1be230010", -"index.html": "e7e1c1f54eb9fb449c69755064b214b0", -"/": "e7e1c1f54eb9fb449c69755064b214b0", -"main.dart.js": "22568c7908a074e596218380f99aa254", +"index.html": "7ac46d1f916e9a146ea9efd39c05e639", +"/": "7ac46d1f916e9a146ea9efd39c05e639", +"main.dart.js": "6519ba389d305e88b01a445319375b3c", "flutter.js": "c71a09214cb6f5f8996a531350400a9a", "favicon.png": "b77adb549c05906dd4c49f910e872eb0", "icons/favicon-16x16.png": "c4b958438bb5e326900a7afdbb21ef2f", diff --git a/docs/index.html b/docs/index.html index 538d507..23f10f3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -46,7 +46,7 @@ diff --git a/docs/main.dart.js b/docs/main.dart.js index 290a7d3..1d7cf44 100644 --- a/docs/main.dart.js +++ b/docs/main.dart.js @@ -38289,7 +38289,7 @@ $1$numChannels(a){return this.G(this,A.C("call","$1$numChannels",0,[a],["numChan $2$offset(a,b){return this.G(this,A.C("call","$2$offset",0,[a,b],["offset"],0))}, $2$orElse$withModel(a,b){return this.G(this,A.C("call","$2$orElse$withModel",0,[a,b],["orElse","withModel"],0))}, $1$filter(a){return this.G(this,A.C("call","$1$filter",0,[a],["filter"],0))}, -$1$showCollisionBoxes(a){return this.G(this,A.C("call","$1$showCollisionBoxes",0,[a],["showCollisionBoxes"],0))}, +$1$showCollisionVolumes(a){return this.G(this,A.C("call","$1$showCollisionVolumes",0,[a],["showCollisionVolumes"],0))}, $1$showLinks(a){return this.G(this,A.C("call","$1$showLinks",0,[a],["showLinks"],0))}, $1$showSkeleton(a){return this.G(this,A.C("call","$1$showSkeleton",0,[a],["showSkeleton"],0))}, $1$showPartyColor(a){return this.G(this,A.C("call","$1$showPartyColor",0,[a],["showPartyColor"],0))}, @@ -90210,7 +90210,7 @@ q===$&&A.a() s=this.b r=s.c r===$&&A.a() -return new A.ih(p,s,A.a0B(r),q,!0,!1,!0,!1,!1,!0,!1)}, +return new A.ih(p,s,A.a0B(r),q,!0,!1,!0,!0,!1,!0,!1)}, $S:536} A.a8q.prototype={ $1(a){var s,r=this.a,q=a.b.c @@ -90321,7 +90321,7 @@ $ir2:1, R5(a,b){return this.gcg().$2$materialsTable$models(a,b)}, gGE(){return this.a}} A.H9.prototype={ -$11$filter$materialsTable$model$models$showCloth$showCollisionBoxes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(a,b,c,d,e,f,g,a0,a1,a2,a3){var s,r,q,p,o,n,m,l=this,k=d==null?l.a.a:t.Jo.a(d),j=c==null?l.a.b:t.Wn.a(c),i=a==null?l.a.c:t.K_.a(a),h=b==null?l.a.d:t.du.a(b) +$11$filter$materialsTable$model$models$showCloth$showCollisionVolumes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(a,b,c,d,e,f,g,a0,a1,a2,a3){var s,r,q,p,o,n,m,l=this,k=d==null?l.a.a:t.Jo.a(d),j=c==null?l.a.b:t.Wn.a(c),i=a==null?l.a.c:t.K_.a(a),h=b==null?l.a.d:t.du.a(b) if(B.h===e){s=l.a.e s.toString}else s=e if(B.h===a0){r=l.a.f @@ -90338,30 +90338,30 @@ if(B.h===f){m=l.a.z m.toString}else m=f return l.b.$1(new A.ih(k,j,i,h,s,r,q,p,o,n,m))}, $0(){var s=null -return this.$11$filter$materialsTable$model$models$showCloth$showCollisionBoxes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(s,s,s,s,B.h,B.h,B.h,B.h,B.h,B.h,B.h)}, -$1$filter(a){return this.$11$filter$materialsTable$model$models$showCloth$showCollisionBoxes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(a,null,null,null,B.h,B.h,B.h,B.h,B.h,B.h,B.h)}, -$1$showCollisionBoxes(a){var s=null -return this.$11$filter$materialsTable$model$models$showCloth$showCollisionBoxes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(s,s,s,s,B.h,a,B.h,B.h,B.h,B.h,B.h)}, +return this.$11$filter$materialsTable$model$models$showCloth$showCollisionVolumes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(s,s,s,s,B.h,B.h,B.h,B.h,B.h,B.h,B.h)}, +$1$filter(a){return this.$11$filter$materialsTable$model$models$showCloth$showCollisionVolumes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(a,null,null,null,B.h,B.h,B.h,B.h,B.h,B.h,B.h)}, +$1$showCollisionVolumes(a){var s=null +return this.$11$filter$materialsTable$model$models$showCloth$showCollisionVolumes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(s,s,s,s,B.h,a,B.h,B.h,B.h,B.h,B.h)}, $1$showLinks(a){var s=null -return this.$11$filter$materialsTable$model$models$showCloth$showCollisionBoxes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(s,s,s,s,B.h,B.h,a,B.h,B.h,B.h,B.h)}, +return this.$11$filter$materialsTable$model$models$showCloth$showCollisionVolumes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(s,s,s,s,B.h,B.h,a,B.h,B.h,B.h,B.h)}, $1$showSkeleton(a){var s=null -return this.$11$filter$materialsTable$model$models$showCloth$showCollisionBoxes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(s,s,s,s,B.h,B.h,B.h,B.h,B.h,a,B.h)}, +return this.$11$filter$materialsTable$model$models$showCloth$showCollisionVolumes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(s,s,s,s,B.h,B.h,B.h,B.h,B.h,a,B.h)}, $1$showPartyColor(a){var s=null -return this.$11$filter$materialsTable$model$models$showCloth$showCollisionBoxes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(s,s,s,s,B.h,B.h,B.h,B.h,a,B.h,B.h)}, +return this.$11$filter$materialsTable$model$models$showCloth$showCollisionVolumes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(s,s,s,s,B.h,B.h,B.h,B.h,a,B.h,B.h)}, $1$showNormals(a){var s=null -return this.$11$filter$materialsTable$model$models$showCloth$showCollisionBoxes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(s,s,s,s,B.h,B.h,B.h,a,B.h,B.h,B.h)}, +return this.$11$filter$materialsTable$model$models$showCloth$showCollisionVolumes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(s,s,s,s,B.h,B.h,B.h,a,B.h,B.h,B.h)}, $1$showTexture(a){var s=null -return this.$11$filter$materialsTable$model$models$showCloth$showCollisionBoxes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(s,s,s,s,B.h,B.h,B.h,B.h,B.h,B.h,a)}, +return this.$11$filter$materialsTable$model$models$showCloth$showCollisionVolumes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(s,s,s,s,B.h,B.h,B.h,B.h,B.h,B.h,a)}, $1$showCloth(a){var s=null -return this.$11$filter$materialsTable$model$models$showCloth$showCollisionBoxes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(s,s,s,s,a,B.h,B.h,B.h,B.h,B.h,B.h)}, -$2$filter$model(a,b){return this.$11$filter$materialsTable$model$models$showCloth$showCollisionBoxes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(a,null,b,null,B.h,B.h,B.h,B.h,B.h,B.h,B.h)}, -$2$materialsTable$models(a,b){return this.$11$filter$materialsTable$model$models$showCloth$showCollisionBoxes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(null,a,null,b,B.h,B.h,B.h,B.h,B.h,B.h,B.h)}} +return this.$11$filter$materialsTable$model$models$showCloth$showCollisionVolumes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(s,s,s,s,a,B.h,B.h,B.h,B.h,B.h,B.h)}, +$2$filter$model(a,b){return this.$11$filter$materialsTable$model$models$showCloth$showCollisionVolumes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(a,null,b,null,B.h,B.h,B.h,B.h,B.h,B.h,B.h)}, +$2$materialsTable$models(a,b){return this.$11$filter$materialsTable$model$models$showCloth$showCollisionVolumes$showLinks$showNormals$showPartyColor$showSkeleton$showTexture(null,a,null,b,B.h,B.h,B.h,B.h,B.h,B.h,B.h)}} A.ih.prototype={ guQ(){var s=this.a if(s instanceof A.iC)return s return new A.iC(s,s,t.pN)}, j(a){var s=this -return"ModelViewerSelectionState.withModel(models: "+A.k(s.guQ())+", model: "+s.b.j(0)+", filter: "+s.c.j(0)+", materialsTable: "+s.d.j(0)+", showCloth: "+A.k(s.e)+", showNormals: "+A.k(s.f)+", showTexture: "+A.k(s.r)+", showPartyColor: "+A.k(s.w)+", showSkeleton: "+A.k(s.x)+", showLinks: "+A.k(s.y)+", showCollisionBoxes: "+A.k(s.z)+")"}, +return"ModelViewerSelectionState.withModel(models: "+A.k(s.guQ())+", model: "+s.b.j(0)+", filter: "+s.c.j(0)+", materialsTable: "+s.d.j(0)+", showCloth: "+A.k(s.e)+", showNormals: "+A.k(s.f)+", showTexture: "+A.k(s.r)+", showPartyColor: "+A.k(s.w)+", showSkeleton: "+A.k(s.x)+", showLinks: "+A.k(s.y)+", showCollisionVolumes: "+A.k(s.z)+")"}, k(a,b){var s,r,q=this if(b==null)return!1 if(q!==b)if(J.Z(b)===A.p(q))if(b instanceof A.ih)if(B.a_.cT(b.a,q.a)){s=b.b @@ -90386,7 +90386,7 @@ lr(a,b){return this.GI(a,b,t.X)}, $ieE:1, $ihj:1, aet(a){return this.gcg().$1$filter(a)}, -aeC(a){return this.gcg().$1$showCollisionBoxes(a)}, +aeC(a){return this.gcg().$1$showCollisionVolumes(a)}, aeD(a){return this.gcg().$1$showLinks(a)}, aeG(a){return this.gcg().$1$showSkeleton(a)}, aeF(a){return this.gcg().$1$showPartyColor(a)}, @@ -90425,7 +90425,7 @@ K(a){var s=null return A.jT(A.b([A.aBx(s,s,this.e,this.d),A.az5(8),new A.c8(B.cl,this.c,s,!0,s)],t.D),B.a6,B.X,B.a7)}} A.Y_.prototype={ cr(a,b){var s=null,r=b.cz($.ir(),t.Ca),q=r.ev(0,new A.apY(),new A.apZ()),p=r.ev(0,new A.aq_(),new A.aqa()),o=r.ev(0,new A.aqh(),new A.aqi()),n=r.ev(0,new A.aqj(),new A.aqk()),m=r.ev(0,new A.aql(),new A.aqm()),l=r.ev(0,new A.aqn(),new A.aq0()),k=r.ev(0,new A.aq1(),new A.aq2()),j=r.ev(0,new A.aq3(),new A.aq4()),i=r.ev(0,new A.aq5(),new A.aq6()),h=r.guQ(),g=p==null?new A.jU(0,0,s,s):new A.y0(p,!1,new A.aq7(b),s) -return new A.dA(A.b([new A.kr("Show Texture",o,new A.aq8(b),s),new A.kr("Show Cloth",n,new A.aq9(b),s),new A.kr("Show Skeleton",m,new A.aqb(b),s),new A.kr("Show Links",l,new A.aqc(b),s),new A.kr("Show Collision Boxes",k,new A.aqd(b),s),new A.kr("Show Normals",j,new A.aqe(b),s),new A.kr("Show Party Color",i,new A.aqf(b),s),new A.fl(h,new A.aqg(b),q,s),g],t.D),s)}} +return new A.dA(A.b([new A.kr("Show Texture",o,new A.aq8(b),s),new A.kr("Show Cloth",n,new A.aq9(b),s),new A.kr("Show Skeleton",m,new A.aqb(b),s),new A.kr("Show Links",l,new A.aqc(b),s),new A.kr("Show Collision Volumes",k,new A.aqd(b),s),new A.kr("Show Normals",j,new A.aqe(b),s),new A.kr("Show Party Color",i,new A.aqf(b),s),new A.fl(h,new A.aqg(b),q,s),g],t.D),s)}} A.apY.prototype={ $1(a){return null}, $S:76} diff --git a/lib/classes/model.dart b/lib/classes/model.dart index 72bd9bc..ee01a3b 100644 --- a/lib/classes/model.dart +++ b/lib/classes/model.dart @@ -3,9 +3,6 @@ import 'dart:typed_data'; import 'dart:ui' as ui; import 'package:flutter/material.dart'; -import 'package:flutter/rendering.dart'; -import 'package:flutter/semantics.dart'; -import 'package:flutter/widgets.dart'; import 'package:paraworld_gsf_viewer/classes/bouding_box.dart'; import 'package:paraworld_gsf_viewer/classes/gsf/header2/chunks/chunk_attributes.dart'; import 'package:paraworld_gsf_viewer/classes/gsf/header2/chunks/link.dart'; diff --git a/lib/widgets/viewer/model_drawer.dart b/lib/widgets/viewer/model_drawer.dart index af2a3fe..5eeb7ff 100644 --- a/lib/widgets/viewer/model_drawer.dart +++ b/lib/widgets/viewer/model_drawer.dart @@ -25,7 +25,7 @@ class ModelDrawer extends CustomPainter { required this.showCloth, required this.showSkeleton, required this.showLinks, - required this.showCollisionBoxes, + required this.showCollisionVolumes, }) : super(repaint: mousePosition); final ValueNotifier mousePosition; @@ -38,7 +38,7 @@ class ModelDrawer extends CustomPainter { final bool showCloth; final bool showSkeleton; final bool showLinks; - final bool showCollisionBoxes; + final bool showCollisionVolumes; final Transformation transformation = Transformation(); @@ -198,7 +198,7 @@ class ModelDrawer extends CustomPainter { showCloths: showCloth, showTexture: showTexture, ); - if (showCollisionBoxes) { + if (showCollisionVolumes) { model.drawCollisions(transformation, size, canvas); } if (showSkeleton) { diff --git a/lib/widgets/viewer/notifier.dart b/lib/widgets/viewer/notifier.dart index d809b87..a75fed8 100644 --- a/lib/widgets/viewer/notifier.dart +++ b/lib/widgets/viewer/notifier.dart @@ -102,10 +102,10 @@ class ModelSelectionStateNotifier extends Notifier { orElse: () => null); } - void updateShowCollisionBoxes(bool showCollisionBoxes) { + void updateShowCollisionBoxes(bool showCollisionVolumes) { state.maybeMap( withModel: (withModel) { - state = withModel.copyWith(showCollisionBoxes: showCollisionBoxes); + state = withModel.copyWith(showCollisionVolumes: showCollisionVolumes); }, orElse: () => null); } diff --git a/lib/widgets/viewer/state.dart b/lib/widgets/viewer/state.dart index 99e453d..1cda70e 100644 --- a/lib/widgets/viewer/state.dart +++ b/lib/widgets/viewer/state.dart @@ -20,9 +20,9 @@ class ModelViewerSelectionState with _$ModelViewerSelectionState { @Default(true) showCloth, @Default(false) showNormals, @Default(true) showTexture, - @Default(false) showPartyColor, + @Default(true) showPartyColor, @Default(false) showSkeleton, @Default(true) showLinks, - @Default(false) showCollisionBoxes, + @Default(false) showCollisionVolumes, }) = ModelViewerSelectionStateWithModel; } diff --git a/lib/widgets/viewer/state.freezed.dart b/lib/widgets/viewer/state.freezed.dart index d714f58..8152358 100644 --- a/lib/widgets/viewer/state.freezed.dart +++ b/lib/widgets/viewer/state.freezed.dart @@ -34,7 +34,7 @@ mixin _$ModelViewerSelectionState { dynamic showPartyColor, dynamic showSkeleton, dynamic showLinks, - dynamic showCollisionBoxes) + dynamic showCollisionVolumes) withModel, }) => throw _privateConstructorUsedError; @@ -54,7 +54,7 @@ mixin _$ModelViewerSelectionState { dynamic showPartyColor, dynamic showSkeleton, dynamic showLinks, - dynamic showCollisionBoxes)? + dynamic showCollisionVolumes)? withModel, }) => throw _privateConstructorUsedError; @@ -73,7 +73,7 @@ mixin _$ModelViewerSelectionState { dynamic showPartyColor, dynamic showSkeleton, dynamic showLinks, - dynamic showCollisionBoxes)? + dynamic showCollisionVolumes)? withModel, required TResult orElse(), }) => @@ -240,7 +240,7 @@ class _$EmptyImpl implements _Empty { dynamic showPartyColor, dynamic showSkeleton, dynamic showLinks, - dynamic showCollisionBoxes) + dynamic showCollisionVolumes) withModel, }) { return empty(materialsTable, models); @@ -263,7 +263,7 @@ class _$EmptyImpl implements _Empty { dynamic showPartyColor, dynamic showSkeleton, dynamic showLinks, - dynamic showCollisionBoxes)? + dynamic showCollisionVolumes)? withModel, }) { return empty?.call(materialsTable, models); @@ -285,7 +285,7 @@ class _$EmptyImpl implements _Empty { dynamic showPartyColor, dynamic showSkeleton, dynamic showLinks, - dynamic showCollisionBoxes)? + dynamic showCollisionVolumes)? withModel, required TResult orElse(), }) { @@ -363,7 +363,7 @@ abstract class _$$ModelViewerSelectionStateWithModelImplCopyWith<$Res> dynamic showPartyColor, dynamic showSkeleton, dynamic showLinks, - dynamic showCollisionBoxes}); + dynamic showCollisionVolumes}); } /// @nodoc @@ -389,7 +389,7 @@ class __$$ModelViewerSelectionStateWithModelImplCopyWithImpl<$Res> Object? showPartyColor = freezed, Object? showSkeleton = freezed, Object? showLinks = freezed, - Object? showCollisionBoxes = freezed, + Object? showCollisionVolumes = freezed, }) { return _then(_$ModelViewerSelectionStateWithModelImpl( models: null == models @@ -416,9 +416,9 @@ class __$$ModelViewerSelectionStateWithModelImplCopyWithImpl<$Res> showSkeleton: freezed == showSkeleton ? _value.showSkeleton! : showSkeleton, showLinks: freezed == showLinks ? _value.showLinks! : showLinks, - showCollisionBoxes: freezed == showCollisionBoxes - ? _value.showCollisionBoxes! - : showCollisionBoxes, + showCollisionVolumes: freezed == showCollisionVolumes + ? _value.showCollisionVolumes! + : showCollisionVolumes, )); } } @@ -435,10 +435,10 @@ class _$ModelViewerSelectionStateWithModelImpl this.showCloth = true, this.showNormals = false, this.showTexture = true, - this.showPartyColor = false, + this.showPartyColor = true, this.showSkeleton = false, this.showLinks = true, - this.showCollisionBoxes = false}) + this.showCollisionVolumes = false}) : _models = models; final List _models; @@ -475,11 +475,11 @@ class _$ModelViewerSelectionStateWithModelImpl final dynamic showLinks; @override @JsonKey() - final dynamic showCollisionBoxes; + final dynamic showCollisionVolumes; @override String toString() { - return 'ModelViewerSelectionState.withModel(models: $models, model: $model, filter: $filter, materialsTable: $materialsTable, showCloth: $showCloth, showNormals: $showNormals, showTexture: $showTexture, showPartyColor: $showPartyColor, showSkeleton: $showSkeleton, showLinks: $showLinks, showCollisionBoxes: $showCollisionBoxes)'; + return 'ModelViewerSelectionState.withModel(models: $models, model: $model, filter: $filter, materialsTable: $materialsTable, showCloth: $showCloth, showNormals: $showNormals, showTexture: $showTexture, showPartyColor: $showPartyColor, showSkeleton: $showSkeleton, showLinks: $showLinks, showCollisionVolumes: $showCollisionVolumes)'; } @override @@ -503,7 +503,7 @@ class _$ModelViewerSelectionStateWithModelImpl .equals(other.showSkeleton, showSkeleton) && const DeepCollectionEquality().equals(other.showLinks, showLinks) && const DeepCollectionEquality() - .equals(other.showCollisionBoxes, showCollisionBoxes)); + .equals(other.showCollisionVolumes, showCollisionVolumes)); } @override @@ -519,7 +519,7 @@ class _$ModelViewerSelectionStateWithModelImpl const DeepCollectionEquality().hash(showPartyColor), const DeepCollectionEquality().hash(showSkeleton), const DeepCollectionEquality().hash(showLinks), - const DeepCollectionEquality().hash(showCollisionBoxes)); + const DeepCollectionEquality().hash(showCollisionVolumes)); @JsonKey(ignore: true) @override @@ -546,7 +546,7 @@ class _$ModelViewerSelectionStateWithModelImpl dynamic showPartyColor, dynamic showSkeleton, dynamic showLinks, - dynamic showCollisionBoxes) + dynamic showCollisionVolumes) withModel, }) { return withModel( @@ -560,7 +560,7 @@ class _$ModelViewerSelectionStateWithModelImpl showPartyColor, showSkeleton, showLinks, - showCollisionBoxes); + showCollisionVolumes); } @override @@ -580,7 +580,7 @@ class _$ModelViewerSelectionStateWithModelImpl dynamic showPartyColor, dynamic showSkeleton, dynamic showLinks, - dynamic showCollisionBoxes)? + dynamic showCollisionVolumes)? withModel, }) { return withModel?.call( @@ -594,7 +594,7 @@ class _$ModelViewerSelectionStateWithModelImpl showPartyColor, showSkeleton, showLinks, - showCollisionBoxes); + showCollisionVolumes); } @override @@ -613,7 +613,7 @@ class _$ModelViewerSelectionStateWithModelImpl dynamic showPartyColor, dynamic showSkeleton, dynamic showLinks, - dynamic showCollisionBoxes)? + dynamic showCollisionVolumes)? withModel, required TResult orElse(), }) { @@ -629,7 +629,7 @@ class _$ModelViewerSelectionStateWithModelImpl showPartyColor, showSkeleton, showLinks, - showCollisionBoxes); + showCollisionVolumes); } return orElse(); } @@ -680,7 +680,7 @@ abstract class ModelViewerSelectionStateWithModel final dynamic showPartyColor, final dynamic showSkeleton, final dynamic showLinks, - final dynamic showCollisionBoxes}) = + final dynamic showCollisionVolumes}) = _$ModelViewerSelectionStateWithModelImpl; @override @@ -695,7 +695,7 @@ abstract class ModelViewerSelectionStateWithModel dynamic get showPartyColor; dynamic get showSkeleton; dynamic get showLinks; - dynamic get showCollisionBoxes; + dynamic get showCollisionVolumes; @override @JsonKey(ignore: true) _$$ModelViewerSelectionStateWithModelImplCopyWith< diff --git a/lib/widgets/viewer/viewer.dart b/lib/widgets/viewer/viewer.dart index 1d8dc36..0a0d219 100644 --- a/lib/widgets/viewer/viewer.dart +++ b/lib/widgets/viewer/viewer.dart @@ -153,10 +153,10 @@ class _ViewerControls extends ConsumerWidget { }, ), _ViewerSwitchsControl( - title: "Show Collision Boxes", + title: "Show Collision Volumes", value: state.map( empty: (_) => false, - withModel: (withModel) => withModel.showCollisionBoxes, + withModel: (withModel) => withModel.showCollisionVolumes, ), onChanged: (value) { ref @@ -371,7 +371,7 @@ class Viewer extends StatelessWidget { showTexture: showTexture, showSkeleton: showSkeleton, showLinks: showLinks, - showCollisionBoxes: showCollisionBoxes, + showCollisionVolumes: showCollisionBoxes, ), child: const SizedBox.expand(), ), @@ -443,7 +443,7 @@ class ViewerControlWrapper extends ConsumerWidget { ), state.map( empty: (_) => false, - withModel: (withModel) => withModel.showCollisionBoxes, + withModel: (withModel) => withModel.showCollisionVolumes, ), state.map( empty: (_) => null,