diff options
author | brynnchernosky <56202540+brynnchernosky@users.noreply.github.com> | 2023-05-04 00:24:43 -0400 |
---|---|---|
committer | brynnchernosky <56202540+brynnchernosky@users.noreply.github.com> | 2023-05-04 00:24:43 -0400 |
commit | d46f6bd5e4d0c3ad7d483de85538f86965f635b7 (patch) | |
tree | fc1b1ee9e27cbbd8f1275cc35dce763acbccfc28 /src/client/views/nodes/PhysicsBox/PhysicsSimulationInputField.tsx | |
parent | b904681b9b417220e5e350f935b70a98f15ba41c (diff) |
start debugging pulley
Diffstat (limited to 'src/client/views/nodes/PhysicsBox/PhysicsSimulationInputField.tsx')
-rw-r--r-- | src/client/views/nodes/PhysicsBox/PhysicsSimulationInputField.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/views/nodes/PhysicsBox/PhysicsSimulationInputField.tsx b/src/client/views/nodes/PhysicsBox/PhysicsSimulationInputField.tsx index cd55453ea..85c20760e 100644 --- a/src/client/views/nodes/PhysicsBox/PhysicsSimulationInputField.tsx +++ b/src/client/views/nodes/PhysicsBox/PhysicsSimulationInputField.tsx @@ -41,15 +41,13 @@ export default class InputField extends React.Component<IInputProps, IState> { } } - epsilon: number = 0; - componentDidMount() { - this.epsilon = 0.01; - } + epsilon: number = 0.01; componentDidUpdate(prevProps: Readonly<IInputProps>, prevState: Readonly<IState>, snapshot?: any): void { if (prevProps.value != this.props.value) { if (this.props.mode == "Freeform") { if (Math.abs(this.state.tempValue - Number(this.props.value)) > 1) { + console.log('update temp value') this.setState({tempValue: Number(this.props.value)}) } } |