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();
                             }}/>
                         }