Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2020-07-30 13:29:19 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2020-07-31 12:45:00 +0300
commiteb8cbb6d7c73fa349ab335cfc7bac8b8f6a845d5 (patch)
treeb20482c28c4b1e37cf5147bd3a2060f21e17749b /source/creator/creator_args.c
parentcc63897c2275dc78af7a82684dde37282b3aa876 (diff)
Depsgraph: Add command line argument to debug UUIDs
Will trigger code paths which makes sure UUIDs are generated and are unique. Enabled with --debug-depsgraph-uuid (which is also implied by --debug-depsgraph).
Diffstat (limited to 'source/creator/creator_args.c')
-rw-r--r--source/creator/creator_args.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c
index 20a75ebe3b9..b8e99899821 100644
--- a/source/creator/creator_args.c
+++ b/source/creator/creator_args.c
@@ -2192,6 +2192,12 @@ void main_args_setup(bContext *C, bArgs *ba)
BLI_argsAdd(ba,
1,
NULL,
+ "--debug-depsgraph-uuid",
+ CB_EX(arg_handle_debug_mode_generic_set, depsgraph_build),
+ (void *)G_DEBUG_DEPSGRAPH_UUID);
+ BLI_argsAdd(ba,
+ 1,
+ NULL,
"--debug-gpumem",
CB_EX(arg_handle_debug_mode_generic_set, gpumem),
(void *)G_DEBUG_GPU_MEM);