Was reported for meshes, but was true for any type.
Now add appropriate notifier torefresh the Outliner.
Details
Diff Detail
- Repository
- rB Blender
Event Timeline
It would be more consistent imho to add an NC_ID | NA_ADDED notifier, and add proper handling of this one in outliner?
I would expect that the same notification would also happen when removing items. Maybe I'm mistaken and this is handled somewhere else?
Thanks for looking into this so quickly. :)
I added a comment that would hopefully make the code a bit easier to maintain.
| source/blender/makesrna/intern/rna_main_api.c | ||
|---|---|---|
| 816 | Since there is a lot of copy paste of this line of code, I think it would make sense to put this line in a function. Personally i think a static function at the top of the file would do the trick nicely. | |
LGTM, besides note below.
| source/blender/makesrna/intern/rna_main_api.c | ||
|---|---|---|
| 551 | Notifier should not be added before ID is actually created imho... It's not technically an issue here, but as a general logical principal it's not a good idea to notify of something that did not yet happen ;) | |