Skip to content

Commit 22c98a7

Browse files
authored
Use react state to show text message for clip plane (#720)
1 parent d0000bd commit 22c98a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/base/src/3dview/mainview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class MainView extends React.Component<IProps, IStates> {
123123
firstLoad: true,
124124
wireframe: false,
125125
transform: false,
126-
clipEnabled: true,
126+
clipEnabled: false,
127127
rotationSnapValue: 10,
128128
transformMode: 'translate'
129129
};
@@ -1889,7 +1889,7 @@ export class MainView extends React.Component<IProps, IStates> {
18891889

18901890
render(): JSX.Element {
18911891
const isTransformOrClipEnabled =
1892-
this.state.transform || this._clipSettings.enabled;
1892+
this.state.transform || this.state.clipEnabled;
18931893
return (
18941894
<div
18951895
className="jcad-Mainview data-jcad-keybinding"

0 commit comments

Comments
 (0)