Revision: 75635
          http://sourceforge.net/p/brlcad/code/75635
Author:   starseeker
Date:     2020-04-29 17:47:52 +0000 (Wed, 29 Apr 2020)
Log Message:
-----------
I think this situation occurs when we have another event queued.

Modified Paths:
--------------
    brlcad/trunk/src/libdm/tests/tcl_img.cpp

Modified: brlcad/trunk/src/libdm/tests/tcl_img.cpp
===================================================================
--- brlcad/trunk/src/libdm/tests/tcl_img.cpp    2020-04-29 17:44:48 UTC (rev 
75634)
+++ brlcad/trunk/src/libdm/tests/tcl_img.cpp    2020-04-29 17:47:52 UTC (rev 
75635)
@@ -121,9 +121,11 @@
     int width = idata->bwidth;
     int height = idata->bheight;
 
-    // If we're mid-render, don't update or report success
+    // If we're mid-render, don't update - that means another render
+    // got triggered after this proc got started, and another update
+    // event will eventually be triggered.
     if (idata->render_running) {
-       return 0;
+       return 1;
     }
 
     // Let Tcl/Tk know the photo data has changed, so it can update the visuals

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to