Preferences: remove author field

This was only used by collada export metadata.

If metadata like this is needed, we can use per-filetype preferences,
to make it clear when user identifiable information is being used.
This commit is contained in:
Campbell Barton 2019-01-11 11:00:33 +11:00
parent 6439ed844e
commit f98e4cbedb
4 changed files with 1 additions and 16 deletions

@ -1263,7 +1263,6 @@ class USERPREF_PT_file_saveload(PreferencePanel):
flow.prop(paths, "save_version")
flow.prop(paths, "recent_files")
flow.prop(paths, "author", text="Author")
class USERPREF_PT_file_saveload_autosave(PreferencePanel):

@ -243,12 +243,7 @@ int DocumentExporter::exportCurrentScene()
asset.setUnit(unitname, linearmeasure);
asset.setUpAxisType(COLLADASW::Asset::Z_UP);
if (U.author[0] != '\0') {
asset.getContributor().mAuthor = U.author;
}
else {
asset.getContributor().mAuthor = "Blender User";
}
asset.getContributor().mAuthor = "Blender User";
char version_buf[128];
#ifdef WITH_BUILDINFO
BLI_snprintf(version_buf, sizeof(version_buf), "Blender %d.%02d.%d commit date:%s, commit time:%s, hash:%s",

@ -744,9 +744,6 @@ typedef struct UserDef {
short tweak_threshold;
char navigation_mode, pad10;
/** Author name for file formats supporting it. */
char author[80];
char font_path_ui[1024];
char font_path_ui_mono[1024];

@ -4924,12 +4924,6 @@ static void rna_def_userdef_filepaths(BlenderRNA *brna)
"(unsafe with blend files from an untrusted source)");
RNA_def_property_update(prop, 0, "rna_userdef_script_autoexec_update");
prop = RNA_def_property(srna, "author", PROP_STRING, PROP_NONE);
RNA_def_property_string_sdna(prop, NULL, "author");
RNA_def_property_string_maxlength(prop, 80);
RNA_def_property_ui_text(prop, "Author",
"Name that will be used in exported files when format supports such feature");
prop = RNA_def_property(srna, "use_tabs_as_spaces", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", USER_TXT_TABSTOSPACES_DISABLE);
RNA_def_property_ui_text(prop, "Tabs as Spaces",