Page MenuHome

possible fix for T49343
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Sep 14 2016, 3:04 PM.

Diff Detail

Event Timeline

Philipp Oeser (lichtwerk) retitled this revision from to possible fix for T49343.
Philipp Oeser (lichtwerk) updated this object.
Philipp Oeser (lichtwerk) set the repository for this revision to rB Blender.

note: bake uses this too (more others even?) So might have to consider a path like scene.render.bake.image_settings as well...

Bastien Montagne (mont29) requested changes to this revision.Sep 14 2016, 7:47 PM
Bastien Montagne (mont29) edited edge metadata.

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…

This revision now requires changes to proceed.Sep 14 2016, 7:47 PM
Philipp Oeser (lichtwerk) edited edge metadata.
Philipp Oeser (lichtwerk) removed rB Blender as the repository for this revision.

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)

Bastien Montagne (mont29) edited edge metadata.

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...

This revision is now accepted and ready to land.Sep 15 2016, 1:41 PM

Would be nice if we had a better system that didn't require so much code for this, but yes, patch seems fine.

Philipp Oeser (lichtwerk) edited edge metadata.
Philipp Oeser (lichtwerk) set the repository for this revision to rB Blender.

removed braces

This revision was automatically updated to reflect the committed changes.