[Bf-committers] viewport bug #27979

Ingo Randolf ingo at quitch.net
Wed Aug 17 18:59:07 CEST 2011


I want to point some of your eyes attention to a little patch i wrote.

before submitting it to blender.org it would be great to get some critic... i'm quite new to the blenders source, so there might be more efficient / better ways to do things... i am willing to learn ;)

the patch itself proposes an object-based z-sorting in the viewports view3d_main_area_draw().

when drawing the objects:
- calculate distance to viewpoint
- sort the objects
- draw the objects in sort-order (also the selected ones...)

here the link to the bug-report (which is marked as closed?!)

here the link to the patch:

and here a .blend which demonstrates the problem:

would be great if some would have the time to try it.
any comments are welcome.


More information about the Bf-committers mailing list