Fix T68705: Changing any editor to the properties crashes Blender
Issue introduced (more like exposed) in b7f86ff722
.
This commit is contained in:
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
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue