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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-02-05 00:17:15 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-02-05 00:17:15 +0300
commitf11ea1eb8e51e9d2d236a4efb34e55b564eec7ba (patch)
treebb386e31b6f9786dbd7781e7c608f49f92bb7cca /source/blender/nodes/intern/CMP_nodes/CMP_alphaOver.c
parent234a5bd969b32da175af311da126dcadfd87f9ed (diff)
Bugfix for recent alphaover premul commit, crashed existing files
and on adding a new node, maybe the commit was incomplete?
Diffstat (limited to 'source/blender/nodes/intern/CMP_nodes/CMP_alphaOver.c')
-rw-r--r--source/blender/nodes/intern/CMP_nodes/CMP_alphaOver.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_alphaOver.c b/source/blender/nodes/intern/CMP_nodes/CMP_alphaOver.c
index 8e8eb07c1cc..4972ff4ae5a 100644
--- a/source/blender/nodes/intern/CMP_nodes/CMP_alphaOver.c
+++ b/source/blender/nodes/intern/CMP_nodes/CMP_alphaOver.c
@@ -135,6 +135,11 @@ static void node_composit_exec_alphaover(void *data, bNode *node, bNodeStack **i
}
}
+static void node_alphaover_init(bNode* node)
+{
+ node->storage= MEM_callocN(sizeof(NodeTwoFloats), "NodeTwoFloats");
+}
+
bNodeType cmp_node_alphaover= {
/* *next,*prev */ NULL, NULL,
/* type code */ CMP_NODE_ALPHAOVER,
@@ -146,7 +151,7 @@ bNodeType cmp_node_alphaover= {
/* storage */ "NodeTwoFloats",
/* execfunc */ node_composit_exec_alphaover,
/* butfunc */ NULL,
- /* initfunc */ NULL,
+ /* initfunc */ node_alphaover_init,
/* freestoragefunc */ node_free_standard_storage,
/* copystoragefunc */ node_copy_standard_storage,
/* id */ NULL