Skip to content

Commit cfe9cfb

Browse files
committed
Fixed saving color
1 parent 8109287 commit cfe9cfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Editors/EditorMaterial.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public override void SaveState(object item)
5252
// take color from panel and store back into Material.Color
5353
var c = panelColor.BackColor;
5454
obj.Material.Color.R = c.R / 255f;
55-
obj.Material.Color.R = c.G / 255f;
56-
obj.Material.Color.R = c.B / 255f;
55+
obj.Material.Color.G = c.G / 255f;
56+
obj.Material.Color.B = c.B / 255f;
5757

5858
// save numeric values back into material
5959
obj.Material.Gloss = (float)numGloss.Value;

0 commit comments

Comments
 (0)