- use cache_ as a prefix for new modifiers.

- some comments to recent image changes.
This commit is contained in:
Campbell Barton 2011-11-22 10:04:28 +00:00
parent b473aeb1d1
commit fd742566a6
6 changed files with 20 additions and 12 deletions

@ -976,7 +976,7 @@ struct DynamicPaintSurface *dynamicPaint_createNewSurface(DynamicPaintCanvasSett
surface->wave_timescale = 1.0f;
surface->wave_spring = 0.20f;
modifier_path_init(surface->image_output_path, sizeof(surface->image_output_path), "dynamicpaint");
modifier_path_init(surface->image_output_path, sizeof(surface->image_output_path), "cache_dynamicpaint");
dynamicPaintSurface_setUniqueName(surface, "Surface");

@ -855,17 +855,17 @@ void uiTemplateImageSettings(uiLayout *layout, PointerRNA *imfptr)
uiItemR(col, imfptr, "compression", 0, NULL, ICON_NONE);
}
if (ELEM(imf->imtype, R_IMF_IMTYPE_OPENEXR, R_IMF_IMTYPE_MULTILAYER)) {
uiItemR(col, imfptr, "exr_codec", 0, NULL, ICON_NONE);
}
if (BKE_imtype_supports_zbuf(imf->imtype)) {
uiItemR(col, imfptr, "use_zbuffer", 0, NULL, ICON_NONE);
}
if (ELEM(imf->imtype, R_IMF_IMTYPE_OPENEXR, R_IMF_IMTYPE_MULTILAYER)) {
uiItemR(col, imfptr, "exr_codec", 0, NULL, ICON_NONE);
if (is_render_out && (imf->imtype == R_IMF_IMTYPE_OPENEXR)) {
uiItemR(col, imfptr, "use_preview", 0, NULL, ICON_NONE);
}
}
if (imf->imtype == R_IMF_IMTYPE_JP2) {
uiItemR(col, imfptr, "use_jpeg2k_ycc", 0, NULL, ICON_NONE);

@ -209,8 +209,13 @@ typedef struct SceneRenderLayer {
/* note, srl->passflag is treestore element 'nr' in outliner, short still... */
/* generic image format settings,
* no video codec info however */
/* Generic image format settings,
* this is used for NodeImageFile and IMAGE_OT_save_as operator too.
*
* note: its a bit strange that even though this is an image format struct
* the imtype can still be used to select video formats.
* RNA ensures these enum's are only selectable for render output.
*/
typedef struct ImageFormatData {
char imtype; /* R_IMF_IMTYPE_PNG, R_... */
/* note, video types should only ever be set from this

@ -2390,7 +2390,10 @@ static void rna_def_render_layers(BlenderRNA *brna, PropertyRNA *cprop)
RNA_def_property_flag(parm, PROP_REQUIRED|PROP_NEVER_NULL);
}
/* use for render output and image save operator */
/* use for render output and image save operator,
* note: there are some cases where the members act differently when this is
* used from a scene, video formats can only be selected for render output
* for example, this is checked by seeing if the ptr->id.data is a Scene id */
static void rna_def_scene_image_format_data(BlenderRNA *brna)
{

@ -102,7 +102,7 @@ void fluidsim_init(FluidsimModifierData *fluidmd)
// fluid/inflow settings
// fss->iniVel --> automatically set to 0
modifier_path_init(fss->surfdataPath, sizeof(fss->surfdataPath), "fluid_cache");
modifier_path_init(fss->surfdataPath, sizeof(fss->surfdataPath), "cache_fluid");
// first init of bounding box
// no bounding box needed

@ -127,7 +127,7 @@ static void initData(ModifierData *md)
omd->repeat_x = 1;
omd->repeat_y = 1;
modifier_path_init(omd->cachepath, sizeof(omd->cachepath), "ocean_cache");
modifier_path_init(omd->cachepath, sizeof(omd->cachepath), "cache_ocean");
omd->cached = 0;
omd->bakestart = 1;