Fix T44979: Crash when rendering with more threads than the system ones
[blender.git] / source / blender / nodes / intern / node_exec.c
index 078266866348e51268caf35f80c19f860b99dff5..2347564c6965df2fecf94fdf40fb1f6f35157112 100644 (file)
@@ -29,7 +29,6 @@
  *  \ingroup nodes
  */
 
-#include <stdlib.h>  /* for abort() */
 
 #include "DNA_node_types.h"
 
@@ -263,7 +262,7 @@ bNodeThreadStack *ntreeGetThreadStack(bNodeTreeExec *exec, int thread)
 {
        ListBase *lb = &exec->threadstack[thread];
        bNodeThreadStack *nts;
-       BLI_assert(thread < exec->tot_thread);
+       
        for (nts = lb->first; nts; nts = nts->next) {
                if (!nts->used) {
                        nts->used = true;