David Catuhe 5 lat temu
rodzic
commit
7b1d6e8319

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