Changeset 14709
- Timestamp:
- 03/01/17 12:33:51 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.BinPacking.Views/3.3/Container3DView.xaml.cs
r14708 r14709 116 116 else { 117 117 if (!materials.TryGetValue(item.Value.Material, out material)) { 118 var color = colors[(item.Value.Material - 1) % colors.Length]; 118 var colorIdx = item.Value.Material; 119 while (colorIdx < 0) colorIdx += colors.Length; 120 colorIdx = colorIdx % colors.Length; 121 var color = colors[colorIdx]; 119 122 material = new DiffuseMaterial { Brush = new SolidColorBrush(color) }; 120 123 materials[item.Value.Material] = material;
Note: See TracChangeset
for help on using the changeset viewer.