@@ -795,7 +795,6 @@ export class MainView extends React.Component<IProps, IStates> {
795
795
objName,
796
796
data,
797
797
clippingPlanes : this . _clippingPlanes ,
798
- selected,
799
798
isSolid,
800
799
isWireframe,
801
800
objColor
@@ -845,12 +844,13 @@ export class MainView extends React.Component<IProps, IStates> {
845
844
846
845
if ( selectedNames . includes ( el . name ) ) {
847
846
this . _selectedMeshes . push ( el as any as BasicMesh ) ;
848
- el . material . color = originalEdgeColor ;
847
+ el . material . color = BOUNDING_BOX_COLOR ;
849
848
el . material . linewidth = SELECTED_LINEWIDTH ;
850
849
el . userData . originalColor = originalEdgeColor . clone ( ) ;
851
850
} else {
852
851
if ( objColor && el . material ?. color ) {
853
852
el . material . color = originalEdgeColor ;
853
+ el . material . linewidth = DEFAULT_LINEWIDTH ;
854
854
el . userData . originalColor = originalEdgeColor . clone ( ) ;
855
855
}
856
856
}
@@ -1095,7 +1095,6 @@ export class MainView extends React.Component<IProps, IStates> {
1095
1095
return mesh ;
1096
1096
}
1097
1097
1098
- private _previousSelection : { [ key : string ] : ISelection } | null = null ;
1099
1098
private _updateSelected ( selection : { [ key : string ] : ISelection } ) {
1100
1099
const selectionChanged =
1101
1100
JSON . stringify ( selection ) !== JSON . stringify ( this . _previousSelection ) ;
@@ -1702,6 +1701,8 @@ export class MainView extends React.Component<IProps, IStates> {
1702
1701
private _clippingPlanes = [ this . _clippingPlane ] ;
1703
1702
private _edgeMaterials : any [ ] = [ ] ;
1704
1703
1704
+ private _previousSelection : { [ key : string ] : ISelection } | null = null ;
1705
+
1705
1706
private _scene : THREE . Scene ; // Threejs scene
1706
1707
private _camera : THREE . PerspectiveCamera | THREE . OrthographicCamera ; // Threejs camera
1707
1708
private _cameraLight : THREE . PointLight ;
0 commit comments