From 47054d00e6a85f334b05ce0d402cdc49f35df032 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Tue, 7 Feb 2006 11:39:26 +0000 Subject: Added "Blur factor" button in Vector Blur node, which scales the speed vectors. It's actually shutter speed, but in this case works identical to the old motionblur 'blur fac' button. Note; the "Max Speed" button only clips speed, use this to prevent extreme speed values. Max speed applied before the scaling happens. --- source/blender/blenloader/intern/readfile.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 5600b87d835..f219e74057a 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -3610,6 +3610,15 @@ static void ntree_version_241(bNodeTree *ntree) node->storage= nbd; } } + else if(node->type==CMP_NODE_VECBLUR) { + if(node->storage==NULL) { + NodeBlurData *nbd= MEM_callocN(sizeof(NodeBlurData), "node blur patch"); + nbd->samples= node->custom1; + nbd->maxspeed= node->custom2; + nbd->fac= 1.0f; + node->storage= nbd; + } + } } } } -- cgit v1.2.3