Changeset - fbc94316c048
[Not reviewed]
default
0 1 0
Drew Perttula - 7 years ago 2018-06-04 08:23:05
drewp@bigasterisk.com
do save zero-valued attrs. they might matter, like an angle number
Ignore-this: cc465f0da19623d6ab002eab22719567
1 file changed with 0 insertions and 2 deletions:
0 comments (0 inline, 0 general)
light9/web/live/live.coffee
Show inline comments
 
@@ -160,14 +160,12 @@ coffeeElementSetup(class Light9LiveContr
 
      quad(@effect, U('rdf:type'), U(':Effect'))
 
      quad(@effect, U('rdfs:label'), @graph.Literal(@newEffectName))
 
      quad(@effect, U(':publishAttr'), U(':strength'))
 
      ]
 
    settings = @graph.nextNumberedResources(@effect.value + '_set', @currentSettingsList().length)
 
    for row in @currentSettingsList()
 
      if row[2] == 0 or row[2] == '#000000'
 
        continue
 
      setting = settings.shift()
 
      addQuads.push(quad(@effect, U(':setting'), setting))
 
      addQuads.push(quad(setting, U(':device'), row[0]))
 
      addQuads.push(quad(setting, U(':deviceAttr'), row[1]))
 
      value = if typeof(row[2]) == 'number'
 
          @graph.LiteralRoundedFloat(row[2])
0 comments (0 inline, 0 general)