ImageFormatSettings were not setting their rna struct path
Details
Diff Detail
- Repository
- rB Blender
Event Timeline
note: bake uses this too (more others even?) So might have to consider a path like scene.render.bake.image_settings as well...
Yeah, ImageFormatSettings can come from some compo nodes (i.e. based on NodeTree ID), and from Scene.render.image_settings and Scene.render.bake.image_settings (at least, those are the usecases I found searching a bit in RNA code). So you'll need a smarter rna_ImageFormatSettings_path function using ptr parameter to find correct path in every case…
covered cases in scene: bake, render
covered cases in nodetree: CMP_NODE_OUTPUT_FILE and also the individual fileslots of that node
should be all cases now (at least I couldnt find more)
Besides picky comment below patch now looks good to me, maybe @Sergey Sharybin (sergey) or @Brecht Van Lommel (brecht) want to have a look at it too?
| source/blender/makesrna/intern/rna_scene.c | ||
|---|---|---|
| 968 | Those braces are not needed here... | |
Would be nice if we had a better system that didn't require so much code for this, but yes, patch seems fine.