Changeset 17275 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.Manufacture/ParameterTransformer/ParameterizedItemTransformer.cs
- Timestamp:
- 09/26/19 17:43:44 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Manufacture/ParameterTransformer/ParameterizedItemTransformer.cs
r17271 r17275 13 13 IParameterizedItem pItem = item.Cast<IParameterizedItem>(); 14 14 15 foreach (var sp in data.Parameters) 16 if (pItem.Parameters.TryGetValue(sp.Name, out IParameter param)) 17 Transformer.Inject(param, sp); 15 if(data.Parameters != null) { 16 foreach (var sp in data.Parameters) 17 if (pItem.Parameters.TryGetValue(sp.Name, out IParameter param)) 18 Transformer.Inject(param, sp); 19 } 18 20 } 19 21 … … 25 27 obj.Type = value.GetType().AssemblyQualifiedName; 26 28 obj.ParameterizedItems = list; 29 obj.Parameters = new List<Component>(); 27 30 list.Add(obj); 28 31 … … 30 33 if (!param.Hidden) { 31 34 Component data = Transformer.Extract(param); 32 obj [data.Name] = data;35 obj.Parameters.Add(data); 33 36 if(data.ParameterizedItems != null) 34 37 list.AddRange(data.ParameterizedItems);
Note: See TracChangeset
for help on using the changeset viewer.