Fix T49128: Ghost of Previous Mask appears in Double Edge Mask
Patch by Ted Schundler (tschundler), thanks! Differential Revision: https://developer.blender.org/D2163
This commit is contained in:
parent
262adf7d91
commit
389b4feec1
Notes:
blender-bot
2024-03-25 12:30:38 +01:00
Referenced by issue #49128, Ghost of Previous Mask appears in Double Edge Mask
|
@ -20,6 +20,8 @@
|
|||
* Monique Dewanchand
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "COM_DoubleEdgeMaskOperation.h"
|
||||
#include "BLI_math.h"
|
||||
#include "DNA_node_types.h"
|
||||
|
@ -1151,12 +1153,13 @@ void DoubleEdgeMaskOperation::doDoubleEdgeMask(float *imask, float *omask, float
|
|||
|
||||
if (true) { // if both input sockets have some data coming in...
|
||||
|
||||
t = (this->getWidth() * this->getHeight()) - 1; // determine size of the frame
|
||||
rw = this->getWidth(); // width of a row of pixels
|
||||
t = (rw * this->getHeight()) - 1; // determine size of the frame
|
||||
memset(res, 0, sizeof(float) * (t + 1)); // clear output buffer (not all pixels will be written later)
|
||||
|
||||
lres = (unsigned int *)res; // unsigned int pointer to output buffer (for bit level ops)
|
||||
limask = (unsigned int *)imask; // unsigned int pointer to input mask (for bit level ops)
|
||||
lomask = (unsigned int *)omask; // unsigned int pointer to output mask (for bit level ops)
|
||||
rw = this->getWidth(); // width of a row of pixels
|
||||
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue