forked from bartvdbraak/blender
Fix T68705: Changing any editor to the properties crashes Blender
Issue introduced (more like exposed) in b7f86ff72273.
This commit is contained in:
parent
b5fe838d44
commit
cbd1739004
@ -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
Block a user