Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_image.c
| Show First 20 Lines • Show All 1,367 Lines • ▼ Show 20 Lines | static void rna_def_image(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "use_half_precision", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_half_precision", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", IMA_HIGH_BITDEPTH); | RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", IMA_HIGH_BITDEPTH); | ||||
| RNA_def_property_ui_text(prop, | RNA_def_property_ui_text(prop, | ||||
| "Half Float Precision", | "Half Float Precision", | ||||
| "Use 16 bits per channel to lower the memory usage during rendering"); | "Use 16 bits per channel to lower the memory usage during rendering"); | ||||
| RNA_def_property_update(prop, NC_IMAGE | ND_DISPLAY, "rna_Image_gpu_texture_update"); | RNA_def_property_update(prop, NC_IMAGE | ND_DISPLAY, "rna_Image_gpu_texture_update"); | ||||
| prop = RNA_def_property(srna, "seamfix_iter", PROP_INT, PROP_NONE); | |||||
| RNA_def_property_ui_text(prop, | |||||
| "Seam-fix", | |||||
| "Number of iterations to perform when extracting additional pixels " | |||||
| "during UV seam fixing. Each iteration will dilate the previous mask. " | |||||
| "Resolution of the mask is 256x256"); | |||||
| RNA_def_property_ui_range(prop, 1, 100, 1, 1); | |||||
brecht: I think this could be called `seam_margin` and "Seam Margin".
Margin is the term we use for… | |||||
| /* multiview */ | /* multiview */ | ||||
| prop = RNA_def_property(srna, "views_format", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "views_format", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "views_format"); | RNA_def_property_enum_sdna(prop, NULL, "views_format"); | ||||
| RNA_def_property_enum_items(prop, rna_enum_views_format_items); | RNA_def_property_enum_items(prop, rna_enum_views_format_items); | ||||
| RNA_def_property_ui_text(prop, "Views Format", "Mode to load image views"); | RNA_def_property_ui_text(prop, "Views Format", "Mode to load image views"); | ||||
| RNA_def_property_update(prop, NC_IMAGE | ND_DISPLAY, "rna_Image_views_format_update"); | RNA_def_property_update(prop, NC_IMAGE | ND_DISPLAY, "rna_Image_views_format_update"); | ||||
| Show All 19 Lines | |||||
I think this could be called seam_margin and "Seam Margin".
Margin is the term we use for baking, and generally I think we should refer to the end result rather than the algorithm, so would not use "iterations". Also should not use a hyphen in the UI name like this.