File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
Assets/com.alelievr.NodeGraphProcessor/Runtime/Elements Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ void ISerializationCallbackReceiver.OnBeforeSerialize() {}
68
68
protected virtual Settings CreateSettings ( ) => new Settings ( ) ;
69
69
70
70
public virtual object value { get ; set ; }
71
- public virtual Type GetValueType ( ) => value . GetType ( ) ;
71
+ public virtual Type GetValueType ( ) => value == null ? typeof ( object ) : value . GetType ( ) ;
72
72
73
73
static Dictionary < Type , Type > exposedParameterTypeCache = new Dictionary < Type , Type > ( ) ;
74
74
internal ExposedParameter Migrate ( )
Original file line number Diff line number Diff line change @@ -97,6 +97,13 @@ protected override void Process()
97
97
parameter = graph . GetExposedParameterFromGUID ( parameterGUID ) ;
98
98
#endif
99
99
100
+ ClearMessages ( ) ;
101
+ if ( parameter == null )
102
+ {
103
+ AddMessage ( $ "Parameter not found: { parameterGUID } ", NodeMessageType . Error ) ;
104
+ return ;
105
+ }
106
+
100
107
if ( accessor == ParameterAccessor . Get )
101
108
output = parameter . value ;
102
109
else
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
10
10
- Fixed fields with [ Settings] attribute not showing up with inheritance.
11
11
- Fixed selection still active when selecting nodes without inspector fields.
12
12
- Fixed multi-selection drag and drop of edges.
13
+ - Fixed errors when a parameter is destroyed and it's reference is still used in the graph.
13
14
14
15
### Changed
15
16
- Fields with both attributes [ SerializeField] and [ ShowInInspector] are now visible in both the node and inspector.
You can’t perform that action at this time.
0 commit comments