POC of brute force image 3Dification.

This commit is contained in:
Michael Smith 2016-05-03 02:05:44 -07:00
parent 8741b7df2a
commit 18a9ef8aa0

View File

@ -48,8 +48,18 @@ namespace OSCADSharp
public override string ToString()
{
string colorName = this.bindings.Contains("color") ? this.bindings.Get("color").BoundVariable.Text :
"\"" + this.ColorName + "\"";
string colorName;
if (!this.ColorName.StartsWith("["))
{
colorName = this.bindings.Contains("color") ? this.bindings.Get("color").BoundVariable.Text :
"\"" + this.ColorName + "\"";
}
else {
colorName = this.bindings.Contains("color") ? this.bindings.Get("color").BoundVariable.Text :
this.ColorName;
}
string opacity = this.bindings.Contains("opacity") ? this.bindings.Get("opacity").BoundVariable.Text
: this.Opacity.ToString();