@@ -46,7 +46,7 @@ property_enum (blendmodebeveloutline, _("Blend Mode of Bevel's emboss'"),
4646property_boolean (specialoutline , _ ("Special Outline Switch" ), FALSE)
4747 description (_ ("Turn on special outline abilities" ))
4848
49- property_boolean (enableoutline , _ ("Enable normal outline switch" ), TRUE )
49+ property_boolean (enableoutline , _ ("Enable normal outline switch" ), FALSE )
5050 description (_ ("Enable Outline" ))
5151
5252
@@ -172,6 +172,7 @@ typedef struct
172172 GeglNode * colordodgege ;
173173 GeglNode * shinygmge ;
174174 GeglNode * grainmergege ;
175+ GeglNode * errorremover ;
175176 GeglNode * output ;
176177} State ;
177178
@@ -180,7 +181,7 @@ static void attach (GeglOperation *operation)
180181{
181182 GeglNode * gegl = operation -> node ;
182183 GeglProperties * o = GEGL_PROPERTIES (operation );
183- GeglNode * input , * output , * behind , * nop , * huelight , * bevel , * multiplyge , * atop , * layer , * stroke , * hardlightge , * shinygmge , * grainmergege , * colordodgege , * color ;
184+ GeglNode * input , * output , * behind , * nop , * errorremover , * huelight , * bevel , * multiplyge , * atop , * layer , * stroke , * hardlightge , * shinygmge , * grainmergege , * colordodgege , * color ;
184185
185186
186187 input = gegl_node_get_input_proxy (gegl , "input" );
@@ -219,13 +220,19 @@ static void attach (GeglOperation *operation)
219220 NULL );
220221
221222 bevel = gegl_node_new_child (gegl ,
222- "operation" , "gegl:bevel " ,
223+ "operation" , "gegl:bevelbump " ,
223224 NULL );
224225
225226 huelight = gegl_node_new_child (gegl ,
226227 "operation" , "gegl:hue-chroma" ,
227228 NULL );
228229
230+ errorremover = gegl_node_new_child (gegl ,
231+ "operation" , "gegl:opacity" ,
232+ NULL );
233+
234+
235+
229236grainmergege = gegl_node_new_child (gegl ,
230237 "operation" , "gimp:layer-mode" , "layer-mode" , 47 , "composite-mode" , 0 , NULL );
231238
@@ -240,7 +247,7 @@ hardlightge = gegl_node_new_child (gegl,
240247
241248
242249 gegl_node_link_many (input , behind , output , NULL );
243- gegl_node_link_many (input , stroke , color , atop , multiplyge , NULL );
250+ gegl_node_link_many (input , errorremover , stroke , color , atop , multiplyge , NULL );
244251 /*gegl_node_link (layer, NULL);*/
245252 gegl_node_link_many (atop , bevel , NULL );
246253
@@ -263,15 +270,20 @@ hardlightge = gegl_node_new_child (gegl,
263270
264271 gegl_operation_meta_redirect (operation , "opacity" , stroke , "opacity" );
265272
273+ gegl_operation_meta_redirect (operation , "opacity" , errorremover , "value" );
274+
275+
276+ gegl_operation_meta_redirect (operation , "color" , stroke , "color" );
277+
266278 gegl_operation_meta_redirect (operation , "color" , color , "value" );
267279
268- gegl_operation_meta_redirect (operation , "radius1" , bevel , "radius1 " );
280+ gegl_operation_meta_redirect (operation , "radius1" , bevel , "radius " );
269281
270282 gegl_operation_meta_redirect (operation , "th" , bevel , "th" );
271283
272- gegl_operation_meta_redirect (operation , "bevel1" , bevel , "bevel1 " );
284+ gegl_operation_meta_redirect (operation , "bevel1" , bevel , "elevation " );
273285
274- gegl_operation_meta_redirect (operation , "bevel2" , bevel , "bevel2 " );
286+ gegl_operation_meta_redirect (operation , "bevel2" , bevel , "depth " );
275287
276288 gegl_operation_meta_redirect (operation , "azimuth" , bevel , "azimuth" );
277289
@@ -303,6 +315,7 @@ hardlightge = gegl_node_new_child (gegl,
303315 state -> shinygmge = shinygmge ;
304316 state -> grainmergege = grainmergege ;
305317 state -> colordodgege = colordodgege ;
318+ state -> errorremover = errorremover ;
306319 state -> output = output ;
307320 o -> user_data = state ;
308321}
@@ -331,7 +344,7 @@ update_graph (GeglOperation *operation)
331344 if (o -> specialoutline )
332345 {
333346 gegl_node_link_many (state -> input , state -> behind , state -> output , NULL );
334- gegl_node_link_many (state -> input , state -> stroke , state -> color , state -> atop , multiplyge , NULL );
347+ gegl_node_link_many (state -> stroke , state -> color , state -> atop , multiplyge , NULL );
335348 gegl_node_link_many (state -> nop , state -> layer , state -> huelight , NULL );
336349 gegl_node_link_many (state -> atop , state -> bevel , NULL );
337350 gegl_node_connect_from (multiplyge , "aux" , state -> bevel , "output" );
@@ -341,12 +354,12 @@ update_graph (GeglOperation *operation)
341354else
342355 {
343356 gegl_node_link_many (state -> input , state -> behind , state -> output , NULL );
344- gegl_node_link_many (state -> input , state -> stroke , state -> color , NULL );
357+ gegl_node_link_many (state -> stroke , state -> color , NULL );
345358 gegl_node_connect_from (state -> behind , "aux" , state -> color , "output" );
346359 }
347360else
348361 {
349- gegl_node_link_many (state -> input , state -> output , NULL );
362+ gegl_node_link_many (state -> input , state -> output , NULL );
350363 }
351364}
352365
0 commit comments