RNA API: remove unused PROP_NEVER_CLAMP flag
This commit is contained in:
@@ -218,12 +218,6 @@ typedef enum PropertyFlag {
|
||||
* most common case is functions that return arrays where the array */
|
||||
PROP_THICK_WRAP = (1 << 23),
|
||||
|
||||
/* Reject values outside limits, use for python api only so far
|
||||
* this is for use when silently clamping string length will give
|
||||
* bad behavior later. Could also enforce this for INT's and other types.
|
||||
* note: currently no support for function arguments or non utf8 paths (filepaths) */
|
||||
PROP_NEVER_CLAMP = (1 << 26),
|
||||
|
||||
/* internal flags */
|
||||
PROP_BUILTIN = (1 << 7),
|
||||
PROP_EXPORT = (1 << 8),
|
||||
|
||||
@@ -595,7 +595,7 @@ static void rna_def_keyingset_info(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "bl_idname", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "idname");
|
||||
RNA_def_property_flag(prop, PROP_REGISTER | PROP_NEVER_CLAMP);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
RNA_def_property_ui_text(prop, "ID Name", KEYINGSET_IDNAME_DOC);
|
||||
|
||||
prop = RNA_def_property(srna, "bl_label", PROP_STRING, PROP_NONE);
|
||||
@@ -792,7 +792,7 @@ static void rna_def_keyingset(BlenderRNA *brna)
|
||||
/* Id/Label */
|
||||
prop = RNA_def_property(srna, "bl_idname", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "idname");
|
||||
RNA_def_property_flag(prop, PROP_REGISTER | PROP_NEVER_CLAMP);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
RNA_def_property_ui_text(prop, "ID Name", KEYINGSET_IDNAME_DOC);
|
||||
/* RNA_def_property_update(prop, NC_SCENE | ND_KEYINGSET | NA_RENAME, NULL); */ /* NOTE: disabled, as ID name shouldn't be editable */
|
||||
|
||||
|
||||
@@ -6320,7 +6320,7 @@ static void rna_def_node_socket(BlenderRNA *brna)
|
||||
/* registration */
|
||||
prop = RNA_def_property(srna, "bl_idname", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "typeinfo->idname");
|
||||
RNA_def_property_flag(prop, PROP_REGISTER | PROP_NEVER_CLAMP);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
RNA_def_property_ui_text(prop, "ID Name", "");
|
||||
|
||||
/* draw socket */
|
||||
@@ -6394,7 +6394,7 @@ static void rna_def_node_socket_interface(BlenderRNA *brna)
|
||||
/* registration */
|
||||
prop = RNA_def_property(srna, "bl_socket_idname", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "typeinfo->idname");
|
||||
RNA_def_property_flag(prop, PROP_REGISTER | PROP_NEVER_CLAMP);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
RNA_def_property_ui_text(prop, "ID Name", "");
|
||||
|
||||
func = RNA_def_function(srna, "draw", NULL);
|
||||
@@ -7096,7 +7096,7 @@ static void rna_def_node(BlenderRNA *brna)
|
||||
/* registration */
|
||||
prop = RNA_def_property(srna, "bl_idname", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "typeinfo->idname");
|
||||
RNA_def_property_flag(prop, PROP_REGISTER | PROP_NEVER_CLAMP);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
RNA_def_property_ui_text(prop, "ID Name", "");
|
||||
|
||||
prop = RNA_def_property(srna, "bl_label", PROP_STRING, PROP_NONE);
|
||||
@@ -7475,7 +7475,7 @@ static void rna_def_nodetree(BlenderRNA *brna)
|
||||
/* registration */
|
||||
prop = RNA_def_property(srna, "bl_idname", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "typeinfo->idname");
|
||||
RNA_def_property_flag(prop, PROP_REGISTER | PROP_NEVER_CLAMP);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
RNA_def_property_ui_text(prop, "ID Name", "");
|
||||
|
||||
prop = RNA_def_property(srna, "bl_label", PROP_STRING, PROP_NONE);
|
||||
|
||||
@@ -479,7 +479,7 @@ static void rna_def_render_engine(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "bl_idname", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "type->idname");
|
||||
RNA_def_property_flag(prop, PROP_REGISTER | PROP_NEVER_CLAMP);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
|
||||
prop = RNA_def_property(srna, "bl_label", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "type->name");
|
||||
|
||||
@@ -965,7 +965,7 @@ static void rna_def_panel(BlenderRNA *brna)
|
||||
/* registration */
|
||||
prop = RNA_def_property(srna, "bl_idname", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "type->idname");
|
||||
RNA_def_property_flag(prop, PROP_REGISTER | PROP_NEVER_CLAMP);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
RNA_def_property_ui_text(prop, "ID Name",
|
||||
"If this is set, the panel gets a custom ID, otherwise it takes the "
|
||||
"name of the class used to define the panel. For example, if the "
|
||||
@@ -1039,7 +1039,7 @@ static void rna_def_uilist(BlenderRNA *brna)
|
||||
/* Registration */
|
||||
prop = RNA_def_property(srna, "bl_idname", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "type->idname");
|
||||
RNA_def_property_flag(prop, PROP_REGISTER | PROP_NEVER_CLAMP);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
RNA_def_property_ui_text(prop, "ID Name",
|
||||
"If this is set, the uilist gets a custom ID, otherwise it takes the "
|
||||
"name of the class used to define the uilist (for example, if the "
|
||||
@@ -1173,7 +1173,7 @@ static void rna_def_header(BlenderRNA *brna)
|
||||
/* registration */
|
||||
prop = RNA_def_property(srna, "bl_idname", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "type->idname");
|
||||
RNA_def_property_flag(prop, PROP_REGISTER | PROP_NEVER_CLAMP);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
RNA_def_property_ui_text(prop, "ID Name",
|
||||
"If this is set, the header gets a custom ID, otherwise it takes the "
|
||||
"name of the class used to define the panel; for example, if the "
|
||||
@@ -1228,7 +1228,7 @@ static void rna_def_menu(BlenderRNA *brna)
|
||||
/* registration */
|
||||
prop = RNA_def_property(srna, "bl_idname", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "type->idname");
|
||||
RNA_def_property_flag(prop, PROP_REGISTER | PROP_NEVER_CLAMP);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
RNA_def_property_ui_text(prop, "ID Name",
|
||||
"If this is set, the menu gets a custom ID, otherwise it takes the "
|
||||
"name of the class used to define the menu (for example, if the "
|
||||
|
||||
@@ -2973,7 +2973,7 @@ static void rna_def_userdef_addon_pref(BlenderRNA *brna)
|
||||
RNA_define_verify_sdna(0);
|
||||
prop = RNA_def_property(srna, "bl_idname", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "module");
|
||||
RNA_def_property_flag(prop, PROP_REGISTER | PROP_NEVER_CLAMP);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
RNA_define_verify_sdna(1);
|
||||
}
|
||||
|
||||
|
||||
@@ -1378,7 +1378,7 @@ static void rna_def_operator(BlenderRNA *brna)
|
||||
RNA_def_property_string_maxlength(prop, OP_MAX_TYPENAME - 3);
|
||||
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_Operator_bl_idname_set");
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
RNA_def_property_flag(prop, PROP_REGISTER | PROP_NEVER_CLAMP);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
RNA_def_struct_name_property(srna, prop);
|
||||
|
||||
prop = RNA_def_property(srna, "bl_label", PROP_STRING, PROP_NONE);
|
||||
@@ -1451,7 +1451,7 @@ static void rna_def_macro_operator(BlenderRNA *brna)
|
||||
RNA_def_property_string_maxlength(prop, OP_MAX_TYPENAME); /* else it uses the pointer size! */
|
||||
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_Operator_bl_idname_set");
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
RNA_def_property_flag(prop, PROP_REGISTER | PROP_NEVER_CLAMP);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
RNA_def_struct_name_property(srna, prop);
|
||||
|
||||
prop = RNA_def_property(srna, "bl_label", PROP_STRING, PROP_NONE);
|
||||
|
||||
Reference in New Issue
Block a user