Fix crash when displaying tooltip of 'New Window' operator
This commit is contained in:
@@ -4620,7 +4620,10 @@ void UI_but_string_info_get(bContext *C, uiBut *but, ...)
|
|||||||
if (ptr && prop) {
|
if (ptr && prop) {
|
||||||
if (!item) {
|
if (!item) {
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
/* so the context is passed to itemf functions */
|
||||||
|
WM_operator_properties_sanitize(ptr, false);
|
||||||
|
|
||||||
RNA_property_enum_items_gettexted(C, ptr, prop, &items, &totitems, &free_items);
|
RNA_property_enum_items_gettexted(C, ptr, prop, &items, &totitems, &free_items);
|
||||||
for (i = 0, item = items; i < totitems; i++, item++) {
|
for (i = 0, item = items; i < totitems; i++, item++) {
|
||||||
if (item->identifier[0] && item->value == value)
|
if (item->identifier[0] && item->value == value)
|
||||||
|
|||||||
@@ -258,8 +258,9 @@ static void info_header_listener(bScreen *UNUSED(sc), ScrArea *UNUSED(sa), ARegi
|
|||||||
/* context changes */
|
/* context changes */
|
||||||
switch (wmn->category) {
|
switch (wmn->category) {
|
||||||
case NC_WORKSPACE:
|
case NC_WORKSPACE:
|
||||||
if (ELEM(wmn->data, ND_SCREENCAST, ND_ANIMPLAY))
|
if (ELEM(wmn->data, ND_LAYER, ND_SCREENCAST, ND_ANIMPLAY)) {
|
||||||
ED_region_tag_redraw(ar);
|
ED_region_tag_redraw(ar);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case NC_WM:
|
case NC_WM:
|
||||||
if (wmn->data == ND_JOB)
|
if (wmn->data == ND_JOB)
|
||||||
|
|||||||
Reference in New Issue
Block a user