[Bf-committers] Is Freestyle branch update correct?

IRIE Shinsuke irieshinsuke at yahoo.co.jp
Sun Nov 4 17:11:56 CET 2012


Forgot to mention that this code needs style cleanup:

  cont = 0  ->  cont = FALSE

-- 
IRIE Shinsuke

12/11/04, IRIE Shinsuke wrote:
> Hi,
> 
> I was checking Freestyle branch r51854 and noticed a part of the
> modifications has been lost when some codes in bmo_utils.c were moved
> to bmo_similar.c in r51755.
> 
> Before r51854, the difference between trunk and Freestyle branch is:
> 
> diff -urN trunk/source/blender/bmesh/operators/bmo_utils.c freestyle/source/blender/bmesh/operators/bmo_utils.c
> --- trunk/source/blender/bmesh/operators/bmo_utils.c	2012-10-22 00:20:53.419037000 +0900
> +++ freestyle/source/blender/bmesh/operators/bmo_utils.c	2012-10-29 10:09:12.317632000 +0900
> @@ -668,6 +668,13 @@
>   							cont = FALSE;
>   						}
>   						break;
> +
> +					case SIMFACE_FREESTYLE:
> +						if (BM_elem_flag_test(fm, BM_ELEM_FREESTYLE) == BM_elem_flag_test(fs, BM_ELEM_FREESTYLE)) {
> +							BMO_elem_flag_enable(bm, fm, FACE_MARK);
> +							cont = 0;
> +						}
> +						break;
>   				}
>   			}
>   		}
> @@ -873,6 +880,13 @@
>   							cont = FALSE;
>   						}
>   						break;
> +
> +					case SIMEDGE_FREESTYLE:
> +						if (BM_elem_flag_test(e, BM_ELEM_FREESTYLE) == BM_elem_flag_test(es, BM_ELEM_FREESTYLE)) {
> +							BMO_elem_flag_enable(bm, e, EDGE_MARK);
> +							cont = 0;
> +						}
> +						break;
>   				}
>   			}
>   		}
> 
> 
> After r51854, the difference is:
> 
> diff -urN trunk/source/blender/bmesh/operators/bmo_similar.c freestyle/source/blender/bmesh/operators/bmo_similar.c
> --- trunk/source/blender/bmesh/operators/bmo_similar.c	2012-11-01 18:54:00.725269000 +0900
> +++ freestyle/source/blender/bmesh/operators/bmo_similar.c	2012-11-04 11:22:56.114902000 +0900
> @@ -463,6 +463,12 @@
>   							cont = FALSE;
>   						}
>   						break;
> +					case SIMEDGE_FREESTYLE:
> +						if (BM_elem_flag_test(e, BM_ELEM_FREESTYLE) == BM_elem_flag_test(es, BM_ELEM_FREESTYLE)) {
> +							BMO_elem_flag_enable(bm, e, EDGE_MARK);
> +							cont = 0;
> +						}
> +						break;
>   					default:
>   						BLI_assert(0);
>   				}
> 
> 
> Tamito, did you remove "case SIMFACE_FREESTYLE: ..." accidentally?
> Or, is it no longer necessary?
> 


More information about the Bf-committers mailing list