David Catuhe 5 éve
szülő
commit
2b58c2a16d

+ 3 - 0
nodeEditor/src/components/propertyTab/properties/floatPropertyTabComponent.tsx

@@ -14,6 +14,9 @@ export class FloatPropertyTabComponent extends React.Component<IFloatPropertyTab
     render() {
         return (
             <FloatLineComponent label="Value" target={this.props.inputBlock} propertyName="value" onChange={() => {
+                if (this.props.inputBlock.isConstant) {
+                    this.props.globalState.onRebuildRequiredObservable.notifyObservers();    
+                }
                 this.props.globalState.onUpdateRequiredObservable.notifyObservers();
             }}></FloatLineComponent>
         );

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

@@ -42,6 +42,9 @@ export class InputPropertyTabComponent extends React.Component<IPropertyComponen
                                 return inputBlock.value === 1
                             }} onSelect={(value) => {
                                 inputBlock.value = value ? 1 : 0;
+                                if (inputBlock.isConstant) {
+                                    this.props.globalState.onRebuildRequiredObservable.notifyObservers();    
+                                }
                                 this.props.globalState.onUpdateRequiredObservable.notifyObservers();
                                 this.forceUpdate();
                             }}/>