bruce-models 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1123,6 +1123,9 @@ var Calculator;
1123
1123
  switch (field.type) {
1124
1124
  case EValueType.Color:
1125
1125
  value = field.value;
1126
+ if (value) {
1127
+ value = Color.ColorFromStr(value);
1128
+ }
1126
1129
  break;
1127
1130
  case EValueType.Gradient:
1128
1131
  value = GetGradientValue(field.value, entity);
@@ -1146,7 +1149,7 @@ var Calculator;
1146
1149
  }
1147
1150
  break;
1148
1151
  }
1149
- if (!value || value == 0) {
1152
+ if (value || value == 0) {
1150
1153
  return value;
1151
1154
  }
1152
1155
  }