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:
authorTon Roosendaal <ton@blender.org>2007-03-28 17:48:01 +0400
committerTon Roosendaal <ton@blender.org>2007-03-28 17:48:01 +0400
commitf5b919e12eff5df022bf340a81108c6e22463e2d (patch)
tree05f1b6af0c9449adad6c13980f08484b49efc703 /source/blender/blenkernel/BKE_node.h
parent39ef0f4eba5c0890e6792c95ed8ae6c8804de28c (diff)
Long wanted feature; decent ESC processing in composite nodes.
Works simple; just check for if(node->exec & NODE_BREAK) break; The main process (node processor) sets such a flag, checking for esc 20 times per second. That means you can check for ESC while doing image processing without much cpu overhead. Currently only added in blur nodes and defocus. Needs to be added all over, nice for others... needs careful tests too. What we now could do is even calling ESC on editing commands or mouseclicks in composite editor? Could give user feeling of interactive app :) Further, finished nodes are kept in memory anyway.
Diffstat (limited to 'source/blender/blenkernel/BKE_node.h')
-rw-r--r--source/blender/blenkernel/BKE_node.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_node.h b/source/blender/blenkernel/BKE_node.h
index 78675325175..63bdc08af82 100644
--- a/source/blender/blenkernel/BKE_node.h
+++ b/source/blender/blenkernel/BKE_node.h
@@ -85,6 +85,13 @@ typedef struct bNodeType {
} bNodeType;
+/* node->exec, now in use for composites (#define for break is same as ready yes) */
+#define NODE_PROCESSING 1
+#define NODE_READY 2
+#define NODE_BREAK 2
+#define NODE_FINISHED 4
+#define NODE_FREEBUFS 8
+
/* nodetype->nclass, for add-menu and themes */
#define NODE_CLASS_INPUT 0
#define NODE_CLASS_OUTPUT 1