[Bf-blender-cvs] [87558494aee] temp-sybren-usd-patch: USD: replace `#define` with anonymous enum
Sybren A. Stüvel
noreply at git.blender.org
Tue Nov 26 18:06:41 CET 2019
Commit: 87558494aee46a3651a8bb256ed0c610f380e5cf
Author: Sybren A. Stüvel
Date: Tue Nov 26 11:29:50 2019 +0100
Branches: temp-sybren-usd-patch
https://developer.blender.org/rB87558494aee46a3651a8bb256ed0c610f380e5cf
USD: replace `#define` with anonymous enum
===================================================================
M source/blender/editors/io/io_usd.c
===================================================================
diff --git a/source/blender/editors/io/io_usd.c b/source/blender/editors/io/io_usd.c
index c9f456ead70..c03459a40a7 100644
--- a/source/blender/editors/io/io_usd.c
+++ b/source/blender/editors/io/io_usd.c
@@ -62,7 +62,7 @@ const EnumPropertyItem rna_enum_usd_export_evaluation_mode_items[] = {
/* Stored in the wmOperator's customdata field to indicate it should run as a background job.
* This is set when the operator is invoked, and not set when it is only executed. */
-# define AS_BACKGROUND_JOB 1
+enum { AS_BACKGROUND_JOB = 1 };
static int wm_usd_export_invoke(bContext *C, wmOperator *op, const wmEvent *event)
{
More information about the Bf-blender-cvs
mailing list