AO-StreetArt / CrazyIvan

A Service for tracking relationships between different coordinate systems for use in graphics programming
Other
2 stars 1 forks source link

Unable to update asset_ids on scene #85

Closed AO-StreetArt closed 6 years ago

AO-StreetArt commented 6 years ago

trying to update asset_ids on a scene fails

Re-Creation steps - Use BlenderSync 'Save Scene Assets' option

AO-StreetArt commented 6 years ago

I don't know if this is a problem with CrazyIvan based on the CI additions, we are clearly able to update Scene assets. More likely an issue in Adrestia/BlenderSync, quite possibly with the data they are sending to CrazyIvan

AO-StreetArt commented 6 years ago

So, this is an issue when we first create a scene without any assets, then try to add them later. Because the array property has not been added, we end up trying to add a string to a null (rather than an array), which doesn't do anything. Updating the query to use coalesce() to ensure creation of the property if it doesn't exist already.