Fix part of T39692: Text fields in datablocks editor are broken

Text field part. Issue with enums dropdowns remains a mystery currently.

As for pointer fields, afaict they have never worked here, though it should
not crash.

UI_EMBOSS are values, not bitflags (own fault, most likely)...

Note we should probably get rid of UI_EMBOSST, it is used nowhere in UI code (set
in one place only, used nowhere).
This commit is contained in:
2014-04-27 21:40:24 +02:00
parent c84095fe7f
commit 6ac300ae72

View File

@@ -6340,7 +6340,7 @@ static bool ui_is_but_interactive(const uiBut *but, const bool labeledit)
return false;
if (but->flag & UI_SCROLLED)
return false;
if ((but->type == TEX) && (but->dt & UI_EMBOSSN) && !labeledit)
if ((but->type == TEX) && (but->dt == UI_EMBOSSN) && !labeledit)
return false;
if ((but->type == LISTROW) && labeledit)
return false;