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:
Andrea Weikert 2014-09-07 14:56:21 +02:00
parent 7b12c569d4
commit 3fec3f0bce
Notes: blender-bot 2023-10-12 12:49:04 +02:00
Referenced by issue blender/blender-addons#41737, bpy.ops.wm.append message
1 changed files with 1 additions and 1 deletions

View File

@ -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;