On Thu, Dec 17, 2015 at 3:39 PM, Brian Savery <[email protected]> wrote:
> Is there a way to override the drawing of an object for the view3d? (using
> python)  I have a renderengine addon that has some extended light shapes for
> example disk and cylindrical area light shapes.  Is there a way I could make
> the drawing of the lights for the the view3d using bgl a disk or cylinder?
>
> Best I found so far was to add a draw handler and draw the light with the
> corresponding shape.  However, then you still have the original drawing of
> the area light present as well.  Another option would be turning of draw
> visibility on the light but then it can't be selected.

Currently there is no way around this - you can draw before or after
existing objects, but you can't replace their drawing code.

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



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

Reply via email to