Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_files_link.c
| Show First 20 Lines • Show All 555 Lines • ▼ Show 20 Lines | prop = RNA_def_boolean( | ||||
| is_link, | is_link, | ||||
| "Instance Collections", | "Instance Collections", | ||||
| "Create instances for collections, rather than adding them directly to the scene"); | "Create instances for collections, rather than adding them directly to the scene"); | ||||
| RNA_def_property_flag(prop, PROP_SKIP_SAVE); | RNA_def_property_flag(prop, PROP_SKIP_SAVE); | ||||
| } | } | ||||
| void WM_OT_link(wmOperatorType *ot) | void WM_OT_link(wmOperatorType *ot) | ||||
| { | { | ||||
| ot->name = "Link from Library"; | ot->name = "Link"; | ||||
| ot->idname = "WM_OT_link"; | ot->idname = "WM_OT_link"; | ||||
| ot->description = "Link from a Library .blend file"; | ot->description = "Link from a Library .blend file"; | ||||
| ot->invoke = wm_link_append_invoke; | ot->invoke = wm_link_append_invoke; | ||||
| ot->exec = wm_link_append_exec; | ot->exec = wm_link_append_exec; | ||||
| ot->poll = wm_link_append_poll; | ot->poll = wm_link_append_poll; | ||||
| ot->flag |= OPTYPE_UNDO; | ot->flag |= OPTYPE_UNDO; | ||||
| WM_operator_properties_filesel(ot, | WM_operator_properties_filesel(ot, | ||||
| FILE_TYPE_FOLDER | FILE_TYPE_BLENDER | FILE_TYPE_BLENDERLIB, | FILE_TYPE_FOLDER | FILE_TYPE_BLENDER | FILE_TYPE_BLENDERLIB, | ||||
| FILE_LOADLIB, | FILE_LOADLIB, | ||||
| FILE_OPENFILE, | FILE_OPENFILE, | ||||
| WM_FILESEL_FILEPATH | WM_FILESEL_DIRECTORY | WM_FILESEL_FILENAME | | WM_FILESEL_FILEPATH | WM_FILESEL_DIRECTORY | WM_FILESEL_FILENAME | | ||||
| WM_FILESEL_RELPATH | WM_FILESEL_FILES, | WM_FILESEL_RELPATH | WM_FILESEL_FILES, | ||||
| FILE_DEFAULTDISPLAY, | FILE_DEFAULTDISPLAY, | ||||
| FILE_SORT_ALPHA); | FILE_SORT_ALPHA); | ||||
| wm_link_append_properties_common(ot, true); | wm_link_append_properties_common(ot, true); | ||||
| } | } | ||||
| void WM_OT_append(wmOperatorType *ot) | void WM_OT_append(wmOperatorType *ot) | ||||
| { | { | ||||
| ot->name = "Append from Library"; | ot->name = "Append"; | ||||
| ot->idname = "WM_OT_append"; | ot->idname = "WM_OT_append"; | ||||
| ot->description = "Append from a Library .blend file"; | ot->description = "Append from a Library .blend file"; | ||||
| ot->invoke = wm_link_append_invoke; | ot->invoke = wm_link_append_invoke; | ||||
| ot->exec = wm_link_append_exec; | ot->exec = wm_link_append_exec; | ||||
| ot->poll = wm_link_append_poll; | ot->poll = wm_link_append_poll; | ||||
| ot->flag |= OPTYPE_UNDO; | ot->flag |= OPTYPE_UNDO; | ||||
| ▲ Show 20 Lines • Show All 519 Lines • Show Last 20 Lines | |||||