[Bf-blender-cvs] [cdc3430ce3f] temp-sybren-usd-patch-02: USD: replace `#define` with anonymous enum
Sybren A. Stüvel
noreply at git.blender.org
Thu Nov 28 17:55:03 CET 2019
Commit: cdc3430ce3fb11c64bb7abad0301c4fcbcf32101
Author: Sybren A. Stüvel
Date: Tue Nov 26 11:29:50 2019 +0100
Branches: temp-sybren-usd-patch-02
https://developer.blender.org/rBcdc3430ce3fb11c64bb7abad0301c4fcbcf32101
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