Commit Graph

31927 Commits

Author SHA1 Message Date
Sergey Sharybin
8dbc7a3ba3 Merging r40345 through r40365 from trunk into soc-2011-garlic 2011-09-19 15:47:05 +00:00
Sergey Sharybin
8961f24425 i18n: more clean-up 2011-09-19 15:28:43 +00:00
Campbell Barton
d78231734d attempt to fix windows/scons issue I caused in a recent commit. 2011-09-19 15:18:58 +00:00
Campbell Barton
05683f8e52 edits to argument parsing for Euler.rotate_axis, also corrected some exception messages and minor style edits. 2011-09-19 15:13:16 +00:00
Sergey Sharybin
706a2c80f0 i18n: code cleanup and fixing unneeded translation (when partial translation is used only) 2011-09-19 15:10:38 +00:00
Campbell Barton
0f5d3a3ddb add back mathutils Matrix() * Vector(), this is row_vector multiplication.
some minor changes to exception messages.
2011-09-19 14:29:21 +00:00
Brecht Van Lommel
5c7b5c0b51 Blenfont: fix use incorrect clear of ascii glyph cache, leading to crash
when toggling use antialising user preference. Also fix some other use of
uninitialized memory found by valgrind.
2011-09-19 14:09:13 +00:00
Bastien Montagne
712e434a5f /release/scripts: Removed final points in UI strings and messages. 2011-09-19 14:00:42 +00:00
Bastien Montagne
1794767171 /blender/makesrna: Removed final points in UI strings and messages.
Plus a few splits of very long lines…
2011-09-19 13:23:58 +00:00
Sergey Sharybin
1d48c8db7f Sequencer: switching to preview mode works fine again 2011-09-19 13:12:54 +00:00
Campbell Barton
9d3b1f708f Move function out of mathutils to: BLI_math_rotation --- single_axis_angle_to_mat3(mat3, axis, angle), copied out from mathutils, axis arg is a char 'X/Y/Z' rather then a vector like axis_angle_to_mat3(). 2011-09-19 13:08:01 +00:00
Bastien Montagne
f157a543c6 /blender/editors: Removed final points in UI strings and messages.
Plus a few cuts in very long lines…
2011-09-19 12:26:20 +00:00
Campbell Barton
9478167493 remove Buffer.list, deprecated before 2.59 release. 2011-09-19 11:55:45 +00:00
Sergey Sharybin
fed2994697 i18n: fixes for scons datafiles installation pathes 2011-09-19 11:45:44 +00:00
Sergey Sharybin
0a12dd452f i18n: fixed building with player 2011-09-19 11:40:15 +00:00
Sergey Sharybin
1c0bdad835 svn merge -r40222:40344 ^/trunk/blender 2011-09-19 10:48:15 +00:00
Sergey Sharybin
9b7b8464b9 i18n: do not translate obect mode enum and transform orientation enum if UI translation is disabled 2011-09-19 10:32:53 +00:00
Sergey Sharybin
226ff0d4da Curve back/front fill changes:
- Use enum instead of back/front flags combinations.
- This flags behaves differently for 2d/3d curves so use different enums for them.
- This commit shouldn't change existing files.
2011-09-19 09:47:58 +00:00
Sergey Sharybin
dd204cb9f7 Fix for add hook/vertex parent for meshes
The only way to achieve this is to re-load editMesh.
After this commit you can't iterate through vertices and insert
hooks/parents from script anymore -- this operators are now
treated as topology-changing and shouldn't be used when iterating
via geometries.
2011-09-19 08:25:31 +00:00
Campbell Barton
4e9ab6d04c replace WORDS_BIGENDIAN with __BIG_ENDIAN__ 2011-09-19 08:11:30 +00:00
Campbell Barton
83a2f02a78 cleanup endian handling
- define __BIG_ENDIAN__ or __LITTLE_ENDIAN__ with cmake & scons.
- ENDIAN_ORDER is now a define rather than a global short.
- replace checks like this with single ifdef: #if defined(__sgi) || defined (__sparc) || defined (__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__hppa__) || defined (__BIG_ENDIAN__)
- remove BKE_endian.h which isn't used
2011-09-19 08:02:17 +00:00
Campbell Barton
425a81a29b remove WITH_* defines from image formats, instead just dont build the files at all. 2011-09-19 06:32:19 +00:00
Campbell Barton
049838fe0c update glew from 1.6 to 1.7:
from their site:
  adds support for OpenGL 4.2, new extensions, fixes bugs

remove ChangeLog, its missing from the 1.7 bundle, also remove html doc dir.
2011-09-18 15:37:36 +00:00
Campbell Barton
9a0b035e1d add back GPL2+ header to paint_utils.c, copied from editface.c since some of its functions trace back to that file from 2.4x. (imapaint_tri_weights for eg). 2011-09-18 12:16:03 +00:00
Campbell Barton
cad688a705 add old style nan GPL2+ header to sound.c since this file is from rev2 and should have had this header added. 2011-09-18 12:06:28 +00:00
Campbell Barton
82e6547a36 patch [#28684] Image pack/unpack() implementation.
from Bill Currie (taniwha)
2011-09-18 11:47:17 +00:00
Campbell Barton
b17a62d1b3 replace strnlen with BLI_strnlen & some style changes. 2011-09-18 11:25:50 +00:00
Campbell Barton
507aa1cd22 fix for crash loading a file saved with fluidsim when blenders compiled with it disabled.
also remove unneed class prefix on function name for itasc.
2011-09-18 11:08:34 +00:00
Campbell Barton
53845a37d9 blf - further shrink drawing functions & some style changes. 2011-09-18 10:34:13 +00:00
Campbell Barton
249b41762a blf code - no functional changes.
- remove saniy checks from blf_font.c, the callers now check instead.
- move duplicate code into defines (may move into static functions).
- move kerning checks into const values set at the start of the function, rather then checking on every character.
2011-09-18 09:48:09 +00:00
Joerg Mueller
7da6e0c82e Fix for [#28672] Blender segfault after exiting a game that was opened with autoplay on (Blender, not blenderplayer)
Autoplay misses uninitialisation, I'm just fixing the reported crash, it still misses all other frees, but as the program exits, we don't care?
2011-09-18 09:46:47 +00:00
Bastien Montagne
fa3082bace Minor: Other UI strings typos and tweaks. 2011-09-18 09:38:43 +00:00
Sergey Sharybin
cd131098ab i18n: update droid font 2011-09-18 08:40:37 +00:00
Campbell Barton
5db33d11bd Console Scrolling - reset while typing.
patch from Damir Prebeg with some edits.

Also made it so resizing the console view keeps the lower part of the text in view (could be annoying when you needed to scroll because of a resized view).
2011-09-18 01:34:53 +00:00
Sergey Sharybin
66a679d71f i18n: replace gnu unifont with droid sans font
- Static variables can be initialized with constants only.
- Removed bunifont.ttf.c from datafiles -- it's not actually a
  data file. Unicode font loading stuff is not in blenkernel/font.c
- Allocate as much memory for unzipped data as it's needed.
  Default read chunk is 512Kb.
- Fixed regression (or just a typo) in setting utf locale.
- Default locale set to en_US:en works fine now.
- Commented put Nepali language in user preferences -- it's
  not supported by current droid font and imo it's better to
  have nice font for languages we actually have translation for
  rather than allowing to choose more languages in user preferences.
2011-09-17 20:50:22 +00:00
Campbell Barton
198295e9ca image button was hard coded to draw the splash screen which it loaded from PNG data on every draw.
now pass the ImBuf when callign the image button so we could have different images in buttons later on.
2011-09-17 16:57:37 +00:00
Brecht Van Lommel
e53c4dae54 Recast/detour: fix some property enum identifiers to follow conventions. 2011-09-17 13:33:03 +00:00
Brecht Van Lommel
3232102cb8 Nodes: fix nodes in groups not getting socket templates verified, and reserve
some socket flags for cycles to avoid conflicts.
2011-09-17 13:03:42 +00:00
Campbell Barton
100313db6e Speedup for font drawing, every letter was character was calling:
glGetIntegerv(GL_TEXTURE_2D_BINDING_EXT, &cur_tex);

... with shadow enabled glGetFloatv(GL_CURRENT_COLOR, color) was called twice per character as well.


Now only call glGetFloatv(GL_CURRENT_COLOR, ...) once per string and only when drawing with shadow or blur, texture bind is stored in the font.

Gives 8% overall FPS speedup when displaying heavy UI in my test.
2011-09-17 10:45:20 +00:00
Bastien Montagne
a99f2cd015 Minor: fixing other UI typos. 2011-09-17 10:44:16 +00:00
Campbell Barton
d4898f9c40 use macros RAD2DEG & DEG2RAD rather then multiplying by 180.0/M_PI or M_PI/180.0 2011-09-17 09:43:51 +00:00
Bastien Montagne
18d59e2645 Minor: fixing an UI typo. 2011-09-17 09:15:30 +00:00
Campbell Barton
f3e182231d use const and array size in function definitions, no functional change. 2011-09-17 08:14:43 +00:00
Campbell Barton
ec4181701f correction to recent commit, wouldnt have given any troubles but was assigning the 4th component of a float[3]. 2011-09-17 07:28:19 +00:00
Campbell Barton
f2748bfdc3 more mini optimizations - don't call UI_ThemeColor 4 times per curve handle, instead get all colors at the start and index them when drawing curves in editmode.
also remove redundant NULL check.
2011-09-17 07:14:39 +00:00
Campbell Barton
5114320dc5 micro optimization for circle drawing.
- use vertex array for drawcircball()
- add circball_array_fill() and call from drawcircball().
- for object center's rather than drawing 2 circles, create the array and reuse it.
2011-09-17 06:18:35 +00:00
Campbell Barton
4aefbb77e4 use less confusing array syntax for circle drawing, no functional changes. 2011-09-17 05:35:55 +00:00
Mitchell Stokes
2636be0ac0 BGE Animations: Fixing some refcount issues with KX_Scene::m_animatedlist (fixes m_animatedlist crashes) and some whitespace issues with KX_GameObject::GetActionManager(). 2011-09-16 20:08:05 +00:00
Dalai Felinto
0241e12089 BGE fix: Font Objects not showing up in the dome mode
geez, who coded the font object? or even worse, who did the dome code?
Don't coders talk? tsc tsc ...

Now seriously, KX_KetsjiEngine::RenderFonts() could be moved to inside the KX_Scene class. It probably should (so I could call it from inside KX_Dome::RenderDomeFrame()). Not critical, so not changing it for now.
2011-09-16 18:23:57 +00:00
Guillermo S. Romero
43259c978e SVN maintenance. 2011-09-16 17:18:12 +00:00