From 638de722775fc43c3543a30aaa888372fe93fe98 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sat, 9 Jun 2018 15:16:44 +0200 Subject: Cleanup: remove some G.main usages. --- source/blender/makesdna/DNA_ID.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/makesdna/DNA_ID.h') diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h index 8b2b0c119b6..c632b87752b 100644 --- a/source/blender/makesdna/DNA_ID.h +++ b/source/blender/makesdna/DNA_ID.h @@ -283,6 +283,7 @@ typedef enum ID_Type { #define ID_CHECK_UNDO(id) ((GS((id)->name) != ID_SCR) && (GS((id)->name) != ID_WM)) #define ID_BLEND_PATH(_bmain, _id) ((_id)->lib ? (_id)->lib->filepath : BKE_main_blendfile_path((_bmain))) +#define ID_BLEND_PATH_FROM_GLOBAL(_id) ((_id)->lib ? (_id)->lib->filepath : BKE_main_blendfile_path_from_global()) #define ID_MISSING(_id) (((_id)->tag & LIB_TAG_MISSING) != 0) -- cgit v1.2.3