svn merge ^/trunk/blender -r48160:48162
This commit is contained in:
@@ -56,7 +56,7 @@ void MaskNode::convertToOperations(ExecutionSystem *graph, CompositorContext *co
|
||||
operation->setMask(mask);
|
||||
operation->setFramenumber(context->getFramenumber());
|
||||
operation->setSmooth((bool)(editorNode->custom1 & CMP_NODEFLAG_MASK_AA) != 0);
|
||||
operation->setFeather((bool)(editorNode->custom1 & CMP_NODEFLAG_MASK_FEATHER) != 0);
|
||||
operation->setFeather((bool)(editorNode->custom1 & CMP_NODEFLAG_MASK_NO_FEATHER) == 0);
|
||||
|
||||
graph->addOperation(operation);
|
||||
}
|
||||
|
||||
@@ -369,8 +369,8 @@ enum {
|
||||
};
|
||||
|
||||
enum {
|
||||
CMP_NODEFLAG_MASK_AA = (1 << 0),
|
||||
CMP_NODEFLAG_MASK_FEATHER = (1 << 1)
|
||||
CMP_NODEFLAG_MASK_AA = (1 << 0),
|
||||
CMP_NODEFLAG_MASK_NO_FEATHER = (1 << 1)
|
||||
};
|
||||
|
||||
typedef struct NodeFrame {
|
||||
|
||||
@@ -3131,8 +3131,8 @@ static void def_cmp_mask(StructRNA *srna)
|
||||
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update");
|
||||
|
||||
prop = RNA_def_property(srna, "use_feather", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "custom1", CMP_NODE_MASK_ELLIPSE);
|
||||
RNA_def_property_ui_text(prop, "Feather", "Apply an anti-aliasing filter to the mask");
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "custom1", CMP_NODEFLAG_MASK_NO_FEATHER);
|
||||
RNA_def_property_ui_text(prop, "Feather", "Use feather information from the mask");
|
||||
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update");
|
||||
}
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ static void exec(void *data, bNode *node, bNodeStack **UNUSED(in), bNodeStack **
|
||||
|
||||
BKE_mask_rasterize(mask, sx, sy, res, TRUE,
|
||||
(node->custom1 & CMP_NODEFLAG_MASK_AA) != 0,
|
||||
(node->custom1 & CMP_NODEFLAG_MASK_FEATHER) != 0);
|
||||
(node->custom1 & CMP_NODEFLAG_MASK_NO_FEATHER) == 0);
|
||||
|
||||
if (node->custom1) {
|
||||
PLX_antialias_buffer(res,sx,sy);
|
||||
|
||||
Reference in New Issue
Block a user