From afcbf7cf1357723f59eca8e118a0ca9ef6cf6555 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 2 Feb 2019 13:39:51 +1100 Subject: Cleanup: use G_FLAG_*/G_FILE_* for G.f/fileflags Was confusing eg: G_AUTOPACK belonged to G.fileflags, G_PICKSEL to G.f. --- source/blender/editors/sound/sound_ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/sound') diff --git a/source/blender/editors/sound/sound_ops.c b/source/blender/editors/sound/sound_ops.c index fe136ddc712..805d10583ba 100644 --- a/source/blender/editors/sound/sound_ops.c +++ b/source/blender/editors/sound/sound_ops.c @@ -759,7 +759,7 @@ static int sound_unpack_exec(bContext *C, wmOperator *op) if (!sound || !sound->packedfile) return OPERATOR_CANCELLED; - if (G.fileflags & G_AUTOPACK) + if (G.fileflags & G_FILE_AUTOPACK) BKE_report(op->reports, RPT_WARNING, "AutoPack is enabled, so image will be packed again on file save"); unpackSound(bmain, op->reports, sound, method); @@ -783,7 +783,7 @@ static int sound_unpack_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSE if (!sound || !sound->packedfile) return OPERATOR_CANCELLED; - if (G.fileflags & G_AUTOPACK) + if (G.fileflags & G_FILE_AUTOPACK) BKE_report(op->reports, RPT_WARNING, "AutoPack is enabled, so image will be packed again on file save"); unpack_menu(C, "SOUND_OT_unpack", sound->id.name + 2, sound->name, "sounds", sound->packedfile); -- cgit v1.2.3