forked from bartvdbraak/blender
fix for crash in recent changes, missing NULL check
This commit is contained in:
parent
63731453e2
commit
e0d585b6c9
@ -615,14 +615,18 @@ static char *wm_prop_pystring_from_context(bContext *C, PointerRNA *ptr, Propert
|
||||
|
||||
if (member_found) {
|
||||
prop_str = RNA_path_property_py(ptr, prop, index);
|
||||
if (prop_str) {
|
||||
ret = BLI_sprintfN("bpy.context.%s.%s", member_found, prop_str);
|
||||
MEM_freeN(prop_str);
|
||||
}
|
||||
}
|
||||
else if (member_id) {
|
||||
prop_str = RNA_path_struct_property_py(ptr, prop, index);
|
||||
if (prop_str) {
|
||||
ret = BLI_sprintfN("bpy.context.%s.%s", member_id, prop_str);
|
||||
MEM_freeN(prop_str);
|
||||
}
|
||||
}
|
||||
|
||||
BLI_freelistN(&lb);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user