Xiao Xiangquan
5b91a783cf
fix for windows locale setting
2011-08-31 07:31:02 +00:00
f8ec017900
floats were being promoted to doubles in quite a few cases (using gcc's -Wdouble-promotion), went over render module and use float constants, gives small but consistent speedup - approx 3%.
2011-08-20 17:39:13 +00:00
Xiao Xiangquan
3a8c7be9e4
code clear, insert blf_gettext.c to blf.c
2011-08-12 13:43:21 +00:00
Xiao Xiangquan
287b24926f
merge with trunk r38787
2011-07-29 17:42:53 +00:00
35ce13562d
script to report deprecated functions of text and their age in days.
2011-07-18 09:49:26 +00:00
7f850ff25d
'bgl' python module.
...
- add back slicing for buffers, (was previously in 2.4x but not working in py3):
buf = bgl.Buffer(...)
ls = buf[:]
- fix for crash with negative index access not being clamped.
- improve repr() function for multi dimensional buffers.
- add back 'list' attribute, but print deprecation warning.
2011-07-17 12:30:23 +00:00
5792bd7cc7
cmake: cleanup include paths, some duplicates and going up some unneeded dirs.
2011-07-17 09:11:13 +00:00
3a6158a8bf
move mathutils into its own lib.
2011-07-15 04:01:47 +00:00
Xiao Xiangquan
fa46278e34
merge from trunk 38379
2011-07-14 17:29:53 +00:00
b028cba0e4
many mathutils exception types were wrong, went over all exceptions in mathutils and double checked the're correct.
2011-07-14 09:54:03 +00:00
Nathan Letwory
f70f167237
Shuffle code so it compiles with MSVC too. (Array of unknown size otherwise).
2011-07-14 08:20:19 +00:00
4da4943b5c
formatting changes for python mathutils module.
2011-07-14 01:25:05 +00:00
0a46f9a737
rename bgl.Buffer attribute list to a method, to_list() as used for IDProps, also made repr function nicer.
2011-07-13 23:45:47 +00:00
aef6f15b49
minor changes to bgl.Buffer py class
...
- use getset rather then getattr
- remove verbose Buffer docstring, better use sphinx docs for this
- replace bge.Buffer with the Buffer class and add a __new__ function to the class so it can be called.
- improve error messages
2011-07-13 23:24:21 +00:00
d5984b2d50
fix [ #27683 ] Blender hangs when baking a particle system when a driver is present
2011-07-09 17:41:39 +00:00
aa1668c6f8
fix for own error in intersect_line_sphere_2d(), using 3d function on 2d vectors
2011-07-04 08:13:27 +00:00
33e554799b
Minor warning cleanup & fix
...
- comment/remove assignments from values to themselves.
- add case break statements (no functional change but some source code checkers notice).
- fix python errors when the sculpt brush is None.
2011-06-27 03:36:14 +00:00
31f0b6639a
more compact code for recent sphere/line intersection functions.
2011-06-26 17:16:06 +00:00
933a65a76f
2d version of line/circle intersec function.
2011-06-26 11:08:12 +00:00
8eb119a5cd
renamed math functions and made public
...
lambda_cp_line --> line_point_factor_v3
lambda_cp_line2 --> line_point_factor_v2
correction to previous commit function name
isect_seg_sphere_v3 --> isect_line_sphere_v3
... since its not clipped.
added a clip argument to the python version of the function.
2011-06-26 08:07:09 +00:00
540c2eee56
math func to find the intersection(s) between a segment and a sphere for C/python.
...
from python:
i1, i2 = mathutils.geometry.intersect_line_sphere(l1, l2, sphere, radius)
2011-06-26 07:21:19 +00:00
Xiao Xiangquan
b429af10d0
merge from trunk #37722
2011-06-24 03:30:50 +00:00
ccc112a857
fix for error in swizzle assignment leaving an unhandled exception.
2011-06-21 02:15:07 +00:00
Xiao Xiangquan
9a2f36b50f
handle SpaceType and UserPref popups
2011-06-20 10:07:46 +00:00
775ea4de92
fix for memory leak converting an idproperty group into a dict
2011-06-17 05:56:17 +00:00
7cbc4c0dd7
IDProperty python module update
...
- add support for IDProp array slicing, but not resizing.
- rename array attribute type to typecode and use chars 'f', 'd', 'i' which match pythons array module. (was using int's which only have a meaning internally).
- rename function 'convert_to_pyobject' to 'to_dict' and 'to_list' for IDProp group and array types respectively.
- remove 'len' array attribute, calling len(array) is fine.
2011-06-17 05:45:46 +00:00
Xiao Xiangquan
40981d872f
merge from trunk r37405
2011-06-15 08:28:56 +00:00
d46da5a09d
mathutils support for color arithmetic, also some minor whitespace edits.
2011-06-02 08:29:16 +00:00
09da9d4393
cmake maintenance
...
blender_add_lib now takes a separate include argument to suppress warnings in system includes (mostly ffmpeg & python).
also only build wm_apple.c on apple+carbon configuration.
2011-05-31 01:15:44 +00:00
Xiao Xiangquan
0fc21dde4e
Add BLF_gettext(msgid) for C, and blf.gettext(msgid) for Python.
2011-05-30 11:03:16 +00:00
11014aa34b
access pythons code object directly rather than attribute access.
2011-05-29 11:05:52 +00:00
9b5800bcd7
fixed "rather then" -> "rather than" typos all over the place
2011-05-28 13:11:24 +00:00
78d41d061b
sphinx docstrng formatting (some lines were getting really long)
2011-05-26 19:13:01 +00:00
15289c6048
use PyDoc_STRVAR macro, so its possible to build without docstrings.
2011-05-24 16:05:51 +00:00
6e39d908a9
quiet compiler warnings for -Wundef
2011-05-22 04:25:31 +00:00
32793a1395
add python access to mathutils.intersect_line_plane, update view3d_utils module to use it.
2011-05-19 04:28:09 +00:00
6266e62170
python mathutils.Matrix.is_orthogonal readonly attribute.
2011-05-18 15:31:00 +00:00
89a166d0de
remove some duplicate declarations
2011-05-10 14:48:06 +00:00
f9f771cd01
converted more mixed tab/space indentations to tabs. only whitespace changes.
2011-04-21 15:53:30 +00:00
210ee1ade4
whitespace only, no functional change mixed tabs/spaces --> tabs.
2011-04-21 13:11:51 +00:00
6bb626f253
minor changes
...
- remove some warnings
- fix typos
- cmake allow in-source build (when WITH_IN_SOURCE_BUILD is defined)
- cmake, use an explicit list of rna files (don't glob)
2011-04-21 05:49:47 +00:00
5b920bc2ff
Some strings to store ID names were too small, could cause stack corruption.
...
corrected these and replaced 'sizeof(((ID *)NULL)->name)-2' with 'MAX_ID_NAME-2'.
2011-04-19 06:59:49 +00:00
9dda11e0f1
correction for windows.
2011-04-18 10:18:35 +00:00
0814cdf54e
fix [ #26951 ] blenderplayer and runtimes will not load
...
blenderplayer wasn't finding bundled python, eg: ./2.57/python/lib
2011-04-18 08:27:50 +00:00
b1cc8ea18a
incorrect documentation spotted by macouno.
2011-04-14 12:19:31 +00:00
ca254dd37b
add option WITH_BUILTIN_GLEW, so linux packagers can disable to use their own glew library.
2011-04-05 23:31:01 +00:00
4ea7e562f8
rename mathutils.Vector/Quaternion difference() method to rotation_difference() since its too vague when applied to vectors.
2011-04-04 05:17:23 +00:00
f1b42a129f
add angle wrapping functions: angle_wrap_rad(), angle_wrap_deg().
...
use with mathutils.
2011-04-02 03:05:49 +00:00
f4ba9495c5
fix [ #26667 ] Can't import scripts when using blenderplayer
...
- move import override initialization to bpy_internal_import.c so the player and blender can both call.
- remove ineffectual & unused sandboxing code.
2011-03-29 16:12:25 +00:00
9b9c4184c8
misc nodes & editors: floats were being implicitly promoted to doubles, adjust to use floats.
...
+ minor update to demo_mode
2011-03-28 17:08:33 +00:00