UI: remove tool-tip message that non-editable properties are internal

Properties that aren't editable aren't necessarily internal,
only use this message for registerable properties.
This commit is contained in:
Campbell Barton 2024-02-23 14:56:57 +11:00
parent 86954de57a
commit f726779d76
1 changed files with 6 additions and 1 deletions

View File

@ -2112,7 +2112,12 @@ static bool rna_property_editable_do(PointerRNA *ptr,
}
/* Early return if the property itself is not editable. */
if ((flag & PROP_EDITABLE) == 0 || (flag & PROP_REGISTER) != 0) {
if ((flag & PROP_EDITABLE) == 0) {
return false;
}
/* Only considered registerable properties "internal"
* because regular properties may not be editable and still be displayed. */
if (flag & PROP_REGISTER) {
if (r_info != nullptr && (*r_info)[0] == '\0') {
*r_info = N_("This property is for internal use only and can't be edited");
}