Fix T41737 using append from menu will result in error message
message in terminal was: RNA_boolean_get: WM_OT_append.relative_path not found. Added check for existence of the relative path property which was removed from append since it is not needed and used.
This commit is contained in:
parent
7b12c569d4
commit
3fec3f0bce
@ -2470,7 +2470,7 @@ static short wm_link_append_flag(wmOperator *op)
|
||||
|
||||
if (RNA_boolean_get(op->ptr, "autoselect")) flag |= FILE_AUTOSELECT;
|
||||
if (RNA_boolean_get(op->ptr, "active_layer")) flag |= FILE_ACTIVELAY;
|
||||
if (RNA_boolean_get(op->ptr, "relative_path")) flag |= FILE_RELPATH;
|
||||
if (RNA_struct_find_property(op->ptr, "relative_path") && RNA_boolean_get(op->ptr, "relative_path")) flag |= FILE_RELPATH;
|
||||
if (RNA_boolean_get(op->ptr, "link")) flag |= FILE_LINK;
|
||||
if (RNA_boolean_get(op->ptr, "instance_groups")) flag |= FILE_GROUP_INSTANCE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user