Skip to content

Commit 3d658ba

Browse files
authored
Update zzstrokebevelimage.c
Bevel Outline Disable Checkbox added
1 parent 3db921f commit 3d658ba

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

compile_zzstrokebevelimage_here/zzstrokebevelimage.c

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ enum_start (gegl_blend_mode_type_effectszzbevoutline)
3333
N_("ColorDodge"))
3434
enum_value (GEGL_BLEND_MODE_TYPE_HARDLIGHTGE, "HardLightGE",
3535
N_("HardLight"))
36+
enum_value (GEGL_BLEND_MODE_TYPE_DISABLEBEVELGE, "DisableBevelGE",
37+
N_("DisableOutlineBevel"))
3638
enum_end (GeglBlendModeTypezzbevoutline)
3739

3840

@@ -173,6 +175,7 @@ typedef struct
173175
GeglNode *shinygmge;
174176
GeglNode *grainmergege;
175177
GeglNode *errorremover;
178+
GeglNode *disablebevel;
176179
GeglNode *output;
177180
} State;
178181

@@ -181,7 +184,7 @@ static void attach (GeglOperation *operation)
181184
{
182185
GeglNode *gegl = operation->node;
183186
GeglProperties *o = GEGL_PROPERTIES (operation);
184-
GeglNode *input, *output, *behind, *nop, *errorremover, *huelight, *bevel, *multiplyge, *atop, *layer, *stroke, *hardlightge, *shinygmge, *grainmergege, *colordodgege, *color;
187+
GeglNode *input, *output, *behind, *nop, *errorremover, *huelight, *bevel, *multiplyge, *disablebevel, *atop, *layer, *stroke, *hardlightge, *shinygmge, *grainmergege, *colordodgege, *color;
185188

186189

187190
input = gegl_node_get_input_proxy (gegl, "input");
@@ -192,6 +195,11 @@ static void attach (GeglOperation *operation)
192195
"operation", "gegl:color-overlay",
193196
NULL);
194197

198+
disablebevel = gegl_node_new_child (gegl,
199+
"operation", "gegl:dst",
200+
NULL);
201+
202+
195203

196204
nop = gegl_node_new_child (gegl,
197205
"operation", "gegl:nop",
@@ -304,6 +312,7 @@ hardlightge = gegl_node_new_child (gegl,
304312
state->input = input;
305313
state->behind = behind;
306314
state->bevel = bevel;
315+
state->disablebevel = disablebevel;
307316
state->multiplyge = multiplyge;
308317
state->atop = atop;
309318
state->layer = layer;
@@ -335,6 +344,8 @@ update_graph (GeglOperation *operation)
335344
case GEGL_BLEND_MODE_TYPE_SHINYGMGE: multiplyge = state->shinygmge; break;
336345
case GEGL_BLEND_MODE_TYPE_COLORDODGEGE: multiplyge = state->colordodgege; break;
337346
case GEGL_BLEND_MODE_TYPE_HARDLIGHTGE: multiplyge = state->hardlightge; break;
347+
case GEGL_BLEND_MODE_TYPE_DISABLEBEVELGE: multiplyge = state->disablebevel; break;
348+
338349

339350
}
340351

0 commit comments

Comments
 (0)