Patch looks good, though didnt test yet.

Could you submit this to the patch tracker? - this can go in after release.

On Thu, Jun 21, 2012 at 3:00 PM, Antonio Ospite
<[email protected]> wrote:
> On Sat, 9 Jun 2012 18:40:33 +0200
> Campbell Barton <[email protected]> wrote:
>
>> Good work - sent new review
>> http://codereview.appspot.com/6305077/
>>
>> python is currently single threaded so you could use a static var
>> here, though I would like to avoid this where possible.
>>
>
> Here is a v3 attached.
>
> Changes since v2:
>
>  - Fixed compilation warning about incompatible type of the comparison
>    functions.
>  - Use qsort: rely on a global variable to sort according to the 'keys'
>    array
>  - Don't use gotos
>  - Don't use PyNumber_Check(), it's faster to check the return value of
>    PyFloat_AsDouble() directly
>  - Don't call BM_mesh_elem_index_ensure(), leave the indices untouched,
>    mention BMEelemSeq.index_update() in the docstring.
>
> I didn't move the check about (BMIterType)self->itype), see [1],
> because I use elem_map_idx in there _after_ this has been allocated. If
> I wanted to check self->itype before I had to do a check on the
> type again later to decide what elements we are dealing with anyways.
>
> If you've got any other suggestions, let me know.
>
> I still think the old version with gotos were easier on the eyes :)
>
> Thanks,
>   Antonio
>
> [1]
> http://codereview.appspot.com/6305077/diff/1/source/blender/python/bmesh/bmesh_py_types.c#newcode2257
>
> --
> Antonio Ospite
> http://ao2.it
>
> A: Because it messes up the order in which people normally read text.
>   See http://en.wikipedia.org/wiki/Posting_style
> Q: Why is top-posting such a bad thing?



-- 
- Campbell
_______________________________________________
Bf-python mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-python

Reply via email to