Fix T68705: Changing any editor to the properties crashes Blender

Issue introduced (more like exposed) in b7f86ff722.
This commit is contained in:
Dalai Felinto 2019-08-15 16:38:31 -03:00
parent b5fe838d44
commit cbd1739004
Notes: blender-bot 2023-02-14 03:29:37 +01:00
Referenced by issue #68705, Crash: Changing any editor to the properties crashes Blender
1 changed files with 2 additions and 2 deletions

View File

@ -785,11 +785,11 @@ int buttons_context(const bContext *C, const char *member, bContextDataResult *r
SpaceProperties *sbuts = CTX_wm_space_properties(C);
ButsContextPath *path = sbuts ? sbuts->path : NULL;
if (sbuts->mainb == BCONTEXT_TOOL) {
if (!path) {
return 0;
}
if (!path) {
if (sbuts->mainb == BCONTEXT_TOOL) {
return 0;
}