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
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
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
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
Bastien Montagne
b3928fe4fd
WeightVG: added WeightVG icon for outliner (don’t know when that where lost...).
2011-09-16 16:05:45 +00:00
Campbell Barton
d87fcb0760
- fix for memory leak in findFreeNavPolyIndex()
...
- also correct own script for running cppcheck.
2011-09-16 14:02:44 +00:00
Sergey Sharybin
c912af36ca
Fix #28663 : All "unit" properties show a value of 0 (on WinXP&MinGW&scons)
...
Initially problem was caused by updated version of mingw-runtime which
changed behavior of snprintf and vsnprintf so %lf isn't anymore valid
for doubles.
According to manpages, %f is a correct format for snprintf for doubles.
2011-09-16 10:03:08 +00:00
Campbell Barton
8ca82cec46
correction for my fix for [ #28668 ], would crash when there were no editbones.
2011-09-16 09:02:31 +00:00
Campbell Barton
2222f536f8
use replace 0 with NULL for pointers, set some functions static
...
also fixed own errors in recent static check commit.
2011-09-16 08:20:21 +00:00
Campbell Barton
41fa456506
replace macros with math lib functions
2011-09-16 06:56:50 +00:00
Campbell Barton
0abe1911d5
- fix for access past the buffer size (paint / sculpt used some 2d vecs as 3d)
...
- remove redundant NULL checks on old code where it would crash if the result was NULL later on.
- add some missing NULL checks.
2011-09-16 06:47:01 +00:00
Campbell Barton
862aababb3
- remove deprecated pose channel members
...
- change short -> char for flags that support it.
- add pose 'temp' pointer to use for outliner drawing (was using 'prev' and restoring which seems dodjy)
2011-09-16 02:42:50 +00:00
Campbell Barton
a6c15d6199
fix [ #28668 ] Crashes entering edit mode on Armature
2011-09-16 02:08:00 +00:00
Bastien Montagne
84966d864b
WeightVG: Made Edit and Proximity also use the new weightvg_update_vg MDeformWeight** parameter (to avoid another vgroup searching).
...
Also added to Proximity a check in case vgroup would have no vertices in it.
Plus a few minor edits...
2011-09-15 17:28:18 +00:00
Guillermo S. Romero
d7160d082f
SVN maintenance.
2011-09-15 16:37:36 +00:00
Campbell Barton
e2818f1b92
- include enum names and descriptions in sphinx generated documentation
...
- add descriptions for operator bl_options
2011-09-15 16:15:24 +00:00
Bastien Montagne
2f50579d9a
WeightVG utils, weightvg_update_vg func updates.
...
* Added an optional array of MDeformModifier pointers, to avoid another search based on defgrp_idx.
* Split out "add/remove verts from vgroup" functions, preparing their move to deform.c (if their current form is validated!).
2011-09-15 16:06:00 +00:00
Sergey Sharybin
41e5040e2f
Use static context trick for all platforms.
...
Should be safe until modifier stack is not threaded.
Solves issues with mingw and older glibc version (like used in release environment).
2011-09-15 15:29:40 +00:00
Bastien Montagne
f8af915b51
WeightVG Mix modifier: updated code to use defgrp_find_index, and make MDeformWeights be searched only once.
...
Also fixed a bug: when another set mode than "All Vertices" was used and resulting set of verts was empty, all vertices was used, instead of just returning org, unmodified data!
2011-09-15 14:48:50 +00:00
Sergey Sharybin
e45b8ab76e
- Whitespace fixes (was commiting from windows where text editor wasn't configured, pardon)
...
- Fixing typo in description of GP paint mode.
2011-09-15 13:14:46 +00:00
Campbell Barton
0d355a8a2c
replace BLI_strncpy with BLI_strncpy_utf8 where input isnt ensured to be valid.
...
also replace strcpy's which copy using "" with str[0]='\0'
2011-09-15 12:26:48 +00:00
Campbell Barton
9648c6016b
fix [ #28658 ] python can assign non utf8 and crash because of string lenth limits.
...
add BLI_strncpy_utf8() which which ensures there are no partially copied UTF8 characters, limited by the buffer size.
2011-09-15 11:49:36 +00:00
Sergey Sharybin
86d05b3144
Update build rules to deal with new gettext libraries.
2011-09-15 11:37:42 +00:00
Bastien Montagne
761c44cbc1
Fix [ #28654 ] Warp modifier does not support negative strength when Vertex Group is used.
...
The vg weight was multiplied by org strength (i.e. neg strength was always skiping all verts!), now multiplying it with abs value of strength.
2011-09-15 11:18:15 +00:00
Campbell Barton
264c63ef03
New C/Py api utility function PyC_Err_Format_Prefix() which raises an error with the existing error as a suffix.
...
Use this to raise errors when assigning a string property fails even though the value to assign *is* a string.
Before:
TypeError: bpy_struct: item.attr= val: Object.name expected a string type, not str
After:
TypeError: bpy_struct: item.attr= val: Object.name error assigning string, UnicodeEncodeError('utf-8' codec can't encode character '\udce9' in position 23: surrogates not allowed)
2011-09-15 10:43:55 +00:00
Campbell Barton
5ba213a424
move utf8 string.c functions into their own file, also add python tip for printing operators.
2011-09-15 08:07:42 +00:00
Campbell Barton
afbb207a99
minor edits to ascii draw function, unused var warning.
2011-09-14 02:45:44 +00:00
Campbell Barton
9b06435653
move ED_object_pose_armature --> object_pose_armature_get to so we dont get bad level calls in the weight paint branch.
2011-09-14 01:48:55 +00:00
Campbell Barton
dd2a2ec699
removed nodes from CMake's BLENDER_LINK_LIBS, rewrote find-pcre using own template.
2011-09-14 01:23:17 +00:00