Add poll message when poll fails because of window missing from the context.
This means calling invoke operators from python in states that dont support will give a meaningful error message. also reduce context lookups when polling.
This commit is contained in:
@@ -821,8 +821,12 @@ int BPY_context_member_get(bContext *C, const char *member, bContextDataResult *
|
||||
}
|
||||
|
||||
if (done == false) {
|
||||
if (item) printf("PyContext '%s' not a valid type\n", member);
|
||||
else printf("PyContext '%s' not found\n", member);
|
||||
if (item) {
|
||||
printf("PyContext '%s' not a valid type\n", member);
|
||||
}
|
||||
else {
|
||||
printf("PyContext '%s' not found\n", member);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (G.debug & G_DEBUG_PYTHON) {
|
||||
|
Reference in New Issue
Block a user