[Bf-blender-cvs] [61480222266] temp-sybren-usd-patch-01: USD: replace `#define` with anonymous enum

Sybren A. Stüvel noreply at git.blender.org
Tue Nov 26 18:21:47 CET 2019


Commit: 61480222266b3d222d70c8eb497d46ed1405ca4a
Author: Sybren A. Stüvel
Date:   Tue Nov 26 11:29:50 2019 +0100
Branches: temp-sybren-usd-patch-01
https://developer.blender.org/rB61480222266b3d222d70c8eb497d46ed1405ca4a

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