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:
authorCampbell Barton <ideasman42@gmail.com>2012-07-27 14:20:36 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-07-27 14:20:36 +0400
commitb8d96bc011d255fa06c1327999c199c417c89225 (patch)
tree6332b4a3aacc719b0243b2386baba1450f787df6 /source/blender/compositor/operations/COM_MaskOperation.cpp
parent52aa7a4a4c07f915b634a56162c9093ef1fecb09 (diff)
mask motion blur shutter option
Diffstat (limited to 'source/blender/compositor/operations/COM_MaskOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_MaskOperation.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/compositor/operations/COM_MaskOperation.cpp b/source/blender/compositor/operations/COM_MaskOperation.cpp
index a4e548d47ac..a3326de0a30 100644
--- a/source/blender/compositor/operations/COM_MaskOperation.cpp
+++ b/source/blender/compositor/operations/COM_MaskOperation.cpp
@@ -139,7 +139,8 @@ MaskOperation::MaskOperation() : NodeOperation()
this->m_maskHeight = 0;
this->m_maskWidthInv = 0.0f;
this->m_maskHeightInv = 0.0f;
- this->m_framenumber = 0;
+ this->m_frame_shutter = 0.0f;
+ this->m_frame_number = 0;
this->m_rasterMaskHandleTot = 1;
memset(this->m_rasterMaskHandles, 0, sizeof(this->m_rasterMaskHandles));
}
@@ -156,9 +157,8 @@ void MaskOperation::initExecution()
}
else {
/* make a throw away copy of the mask */
- const float frame_range = 1.0f; /* should be 1 max, could be configurable */
- const float frame = (float)this->m_framenumber - frame_range;
- const float frame_step = (frame_range * 2.0f) / this->m_rasterMaskHandleTot;
+ const float frame = (float)this->m_frame_number - this->m_frame_shutter;
+ const float frame_step = (this->m_frame_shutter * 2.0f) / this->m_rasterMaskHandleTot;
float frame_iter = frame;
Mask *mask_temp;
@@ -174,7 +174,7 @@ void MaskOperation::initExecution()
masklay;
masklay = (MaskLayer *)masklay->next)
{
- masklay_shape = BKE_mask_layer_shape_varify_frame(masklay, this->m_framenumber);
+ masklay_shape = BKE_mask_layer_shape_varify_frame(masklay, this->m_frame_number);
BKE_mask_layer_shape_from_mask(masklay, masklay_shape);
}
}