Blender Git Commit Log
Git Commits -> Revision 545cc48
Revision 545cc48 by Diego Borghetti (master) December 9, 2010, 22:27 (GMT) |
Change the BLF_aspect function to handle 3d text. This is need to properly handle 3d text (dalai work on GE), before the BLF_aspect only take one argument, and the result was a call to: glScalef(aspect, aspect, 1.0) Now the three value are store in the font (x, y and z) and also need to be enable using BLF_enable(BLF_ASPECT). By default all the code that don't have BLF_ASPECT enable work with a scale of 1.0 (so nothing change to the current UI). I also remove all the call of BLF_aspect(fontid, 1.0) found in the editors, because is disable by default, so no need any more. Campbell the only thing to check is the python api, right now I modify the api to from: BLF_aspect(fontid, aspect) to: BLF_aspect(fontid, aspect, aspect, 1.0) This is to avoid break the api, but now you need add the BLF_ASPECT option to the function py_blf_enable and in some point change py_blf_aspect to take 3 arguments. |
Commit Details:
Full Hash: 545cc4803e8e9e7418aba98b2c1bec72fa629146
SVN Revision: 33579
Parent Commit: 3ee53d7
Lines Changed: +68, -24
11 Modified Paths:
/source/blender/blenfont/BLF_api.h (+2, -1) (Diff)
/source/blender/blenfont/intern/blf.c (+35, -9) (Diff)
/source/blender/blenfont/intern/blf_font.c (+29, -5) (Diff)
/source/blender/blenfont/intern/blf_internal_types.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/image.c (+0, -1) (Diff)
/source/blender/blenkernel/intern/image_gen.c (+0, -1) (Diff)
/source/blender/editors/interface/interface_style.c (+0, -2) (Diff)
/source/blender/editors/space_image/image_draw.c (+0, -1) (Diff)
/source/blender/editors/space_info/textview.c (+0, -1) (Diff)
/source/blender/editors/space_text/text_draw.c (+0, -1) (Diff)
/source/blender/python/generic/blf_py_api.c (+1, -1) (Diff)
/source/blender/blenfont/intern/blf.c (+35, -9) (Diff)
/source/blender/blenfont/intern/blf_font.c (+29, -5) (Diff)
/source/blender/blenfont/intern/blf_internal_types.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/image.c (+0, -1) (Diff)
/source/blender/blenkernel/intern/image_gen.c (+0, -1) (Diff)
/source/blender/editors/interface/interface_style.c (+0, -2) (Diff)
/source/blender/editors/space_image/image_draw.c (+0, -1) (Diff)
/source/blender/editors/space_info/textview.c (+0, -1) (Diff)
/source/blender/editors/space_text/text_draw.c (+0, -1) (Diff)
/source/blender/python/generic/blf_py_api.c (+1, -1) (Diff)