Campbell Barton
018fa1540e
whitespace edits, make formatting for functions consustent at least within the file.
2011-09-28 05:53:40 +00:00
Campbell Barton
f4dec97cef
fix for building on windows, clear some warnings too
2011-09-27 01:32:27 +00:00
Andrew Wiggin
7c46f1c4b7
Fix some MSVC 2010 warnings (including one apparent bug in intern/elbeem/intern/solver_relax.h)
2011-09-25 12:33:51 +00:00
Sergey Sharybin
2eb1339e3f
Corrected fix for #28722 : Segfault when reading volumetric clouds example
...
Looks like with current implementation voxeldata should always be created
for voxel textures. Remove recently added NULL check and allocate
voxel data when linking a texture.
2011-09-22 17:52:21 +00:00
Sergey Sharybin
9ea32d34c4
Fix #28722 : Segfault when reading volumetric clouds example
...
Added checking for voxel data isn't NULL.
2011-09-22 16:28:38 +00:00
Campbell Barton
4b449aefea
remove support for irix
2011-09-21 08:40:30 +00:00
Sergey Sharybin
2af7bb8aaf
Fix for BLI_ungzip_to_mem: it'll return NULL now if file is not found.
...
It makes default bfont used if unifont isn't found. Useful for install-less
launch when debugging.
2011-09-20 14:49:12 +00:00
Sergey Sharybin
8dbc7a3ba3
Merging r40345 through r40365 from trunk into soc-2011-garlic
2011-09-19 15:47:05 +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
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
Sergey Sharybin
1c0bdad835
svn merge -r40222:40344 ^/trunk/blender
2011-09-19 10:48:15 +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
f3e182231d
use const and array size in function definitions, no functional change.
2011-09-17 08:14:43 +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
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
Sergey Sharybin
30293dc2ca
svn merge -r39834:40222 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-15 13:02:37 +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
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
e16ba13251
use vector size and const args where possible (no functional change)
2011-09-12 13:00:24 +00:00
Campbell Barton
4bd0a2ba2d
replace VECCOPY -> copy_v3_v3, added copy_v*_v*_short too for typesafe copying, some parts of the code are copying float -> short normals without scaling. fix coming next.
2011-09-12 04:14:12 +00:00
Campbell Barton
599cd56f53
minor edits / cleanup - no functional changes.
...
- use 'const float *' and array size in some function declarations.
- replace macros for BLI_math functions INPF, VECCOPY, VECADD etc.
- remove unused VertRen.clip struct member.
- remove static squared_dist() from 2 files, replace with BLI_math function len_squared_v3v3().
- use vertex arrays for drawing clipping background in the 3D viewport.
2011-09-11 02:50:01 +00:00
Campbell Barton
a41f45946f
fix for error in strinc.c's BLI_strescape
2011-09-06 07:08:20 +00:00
Xiao Xiangquan
8ff7f6104e
fix the setenv bug on windows
2011-09-06 05:18:02 +00:00
Lukas Toenne
8e0fe8bff7
Merged the particles-2010 branch with node improvements into trunk.
...
This branch adds mostly organizational improvements to the node system by renaming the node folders and files. A couple of internal features have been added too.
Detailed information can be found on the wiki page:
http://wiki.blender.org/index.php/User:Phonybone/Particles2010
2011-09-05 21:01:50 +00:00
Brecht Van Lommel
419042af55
Fix #28394 : clouds texture error with high noise depth and blender original
...
noise, patch from Campbell,
2011-09-05 16:25:42 +00:00
Xiao Xiangquan
d31d7fd487
use SetEnvironmentVariableA to set env var on windows
2011-09-04 14:32:32 +00:00
Xiao Xiangquan
981f7fcd0d
merge with trunk r39834
2011-09-01 15:08:32 +00:00
Campbell Barton
00143a3d55
spaces -> tabs (configure you're editors right!)
2011-09-01 01:48:50 +00:00
Campbell Barton
471c005137
typo fix: end of lines ;; --> ;
2011-08-31 01:07:55 +00:00
Brecht Van Lommel
b3704f45c4
Fixes for snprintf usage:
...
* replace by BLI_snprintf in various places, note _snprintf on windows
does not properly null terminate the string.
* fix overflow in sequencer proxy code due to buffer being smaller than
specified size.
* fix some usage of snprintf as strcpy, this is will go wrong if the
string contains % characters.
* remove BLI_dynstr_printf function in gpu module, use BLI_dynstr_appendf
2011-08-30 10:07:50 +00:00
Campbell Barton
27ec8d5043
fix for some warnings with the recent merge, also tag unused args.
2011-08-30 09:50:31 +00:00
Campbell Barton
852a03a6af
RNA_property_as_string now escapes the string (so operator redo can include strings with ", \n etc), also fixed a bug in string escape length limit.
2011-08-28 09:28:41 +00:00
Campbell Barton
fa2ba5fbf5
- use static vars and functions where possible.
...
- use NULL rather than 0 when used as pointers.
2011-08-28 05:06:30 +00:00
Campbell Barton
81ea1e7fcb
remove implicit casts to doubles in the noise code, also use floating point math functions rather then double since the noise functions range is already limited by casting to ints in many places.
...
- gives a very small speedup.
2011-08-28 02:54:26 +00:00
Campbell Barton
4684df0830
fix [ #28388 ] Clouds at high depth give artifacts.
...
http://projects.blender.org/tracker/download.php/9/498/28388/17476/screen_bad.png
2011-08-28 02:04:40 +00:00
Campbell Barton
a05d4a729a
remove deprecated & unused mat3_to_vec_rot and mat4_to_vec_rot functions.
2011-08-27 01:42:49 +00:00
Campbell Barton
722be28d68
sub_v4_v4v4 was taking float[3] arguments.
2011-08-26 22:37:20 +00:00
Campbell Barton
f6a2b8d724
BLI_strescape for a basic, python like string escaping, currently only use for drag and drop ID's into the console but should eventually be used for the animsys too.
2011-08-23 15:08:54 +00:00
Campbell Barton
34b7bff44b
change compression level for gzip saving to 1, approx twice as fast when saving a 194mb blend file and only slightly bigger.
2011-08-23 07:59:25 +00:00
Campbell Barton
3a81f23e09
warning cleanup for -Wdouble-promotion
2011-08-19 16:21:29 +00:00
Campbell Barton
2c8e1e633c
comment unused lines.
2011-08-15 03:41:31 +00:00
Campbell Barton
b1c04d379f
un-inline GHash functions r26206, these are quite large functions to inline and increase binary size by 30kb, (tested on stripped, cmake release build).
...
Ran some speed tests and difference was close to the noise level, but inlining gives only ~2 - 3% speedup with build modifier which uses ghash a lot.
2011-08-12 02:23:06 +00:00
Xiao Xiangquan
465c3b82fa
merge with trunk r39216
2011-08-10 14:32:03 +00:00
Nicholas Bishop
670f58023c
== PBVH ==
...
OK, after that failure of committing a bunch of old junk, hopefully
this is what I actually meant to commit :)
* Added big comments to some of the fields in struct PBVHNode. I
always forget the details of these, so finally wrote it down
properly.
* Changed types of PBVHNode.face_vert_indices and PBVHNode.flag to
better reflect their contents.
* There should be no functional changes here.
2011-07-31 02:34:53 +00:00
Campbell Barton
f66ec41b6a
quiet some compiler warnings & fix possible (but unlikely) crash.
...
also added GPLv2+ header to resources.c.
2011-07-30 09:24:10 +00:00
Xiao Xiangquan
287b24926f
merge with trunk r38787
2011-07-29 17:42:53 +00:00
Campbell Barton
74219d2704
patch [ #28031 ] Minor typo in Blenlib
...
from Scott Giese (sgiese)
2011-07-20 06:05:47 +00:00
Xiao Xiangquan
fa46278e34
merge from trunk 38379
2011-07-14 17:29:53 +00:00
Campbell Barton
7370ba1839
fix for NULL pointer usages
2011-07-09 19:59:32 +00:00