[Bf-blender-cvs] [449a1366c80] sybren-usd: USD Export: stop when user presses escape
Sybren A. Stüvel
noreply at git.blender.org
Thu Jul 11 17:09:16 CEST 2019
Commit: 449a1366c808c76c3bb04f587976c0a8088c4ad1
Author: Sybren A. Stüvel
Date: Thu Jul 11 16:25:53 2019 +0200
Branches: sybren-usd
https://developer.blender.org/rB449a1366c808c76c3bb04f587976c0a8088c4ad1
USD Export: stop when user presses escape
===================================================================
M source/blender/usd/intern/usd_capi.cc
===================================================================
diff --git a/source/blender/usd/intern/usd_capi.cc b/source/blender/usd/intern/usd_capi.cc
index 757e2283948..a39f7a2f98d 100644
--- a/source/blender/usd/intern/usd_capi.cc
+++ b/source/blender/usd/intern/usd_capi.cc
@@ -122,6 +122,9 @@ static void export_startjob(void *customdata, short *stop, short *do_update, flo
float progress_per_frame = 0.8f / std::max(1, (scene->r.efra - scene->r.sfra + 1));
for (float frame = scene->r.sfra; frame <= scene->r.efra; frame++) {
+ if (G.is_break)
+ break;
+
printf("\033[35;1mFRAME\033[0m %f\n", frame);
// Update the scene for the next frame to render.
scene->r.cfra = static_cast<int>(frame);
More information about the Bf-blender-cvs
mailing list