David Catuhe 5 년 전
부모
커밋
7b1d6e8319
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      nodeEditor/src/diagram/properties/inputNodePropertyComponent.tsx

+ 4 - 0
nodeEditor/src/diagram/properties/inputNodePropertyComponent.tsx

@@ -65,6 +65,10 @@ export class InputPropertyTabComponent extends React.Component<IPropertyComponen
                         {
                             !inputBlock.isBoolean && !cantDisplaySlider &&
                             <SliderLineComponent label="Value" target={inputBlock} propertyName="value" step={(inputBlock.max - inputBlock.min) / 100.0} minimum={inputBlock.min} maximum={inputBlock.max} onChange={() => {
+                                if (inputBlock.isConstant) {
+                                    this.props.globalState.onRebuildRequiredObservable.notifyObservers();    
+                                }
+
                                 this.props.globalState.onUpdateRequiredObservable.notifyObservers();
                             }}/>
                         }