calling setValue on rtype List does not work
Opened this issue · 3 comments
If you call setValue on a slot, it then calls setDirty(slice(None)), which fails, if the slot rtype is a list, because slice object is not iterable. Maybe we need special handling for this case? Like some "everything" property for all types of slots?
The SubRegion rtype defaults to "everything" if no arguments are given to its constructor (other than the slot). Should this be a rule for all rtypes? By the way, we need to keep Issue #57 in mind when solving this.
To eliminate your crash, you could just change line 896 of graph.py to say: self.setDirty(), but that may not be what you want, since the List rtype doesn't default to "everything". It defaults to "nothing", so calling setValue won't mark your slot as dirty.
This was fixed by back then a bad hack at line 70 of rtype.py. We should find a better way now that we are really using rtype Lists.
hmm. This rtype list does not make muche sense anyway, especially with a slot type of Opaque.
we should get rid of it.