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
9c8f1e2ef4
imbuf, mathutils & readfile: floats were being implicitly promoted to doubles, adjust to use floats.
2011-03-27 17:12:59 +00:00
a21f46b6d4
new function RNA_warning(), replaces printf with function which may be called via python.
...
Now this gives the line number of the scripts thats running, eg:
uiItemFullO: unknown operator 'some.operator'
/c/bin/2.56/scripts/startup/bl_ui/space_view3d_toolbar.py:73
2011-03-25 04:36:10 +00:00
cadc1218c8
C, style changes (mostly white space edits), no functional change.
2011-03-19 11:12:48 +00:00
197e903efc
fix for [ #26524 ] Api autocomplete more errors
...
problem was caused by change in python behavior, now hasattr(val, attr) only suppresses attribute exceptions.
2011-03-17 04:43:58 +00:00
e8174fb3cd
move mathutils api changelog into wiki.
2011-03-14 05:03:53 +00:00
471c0c1afb
py-api utf8/filepaths:
...
in function PyC_UnicodeAsByte(), replace code copied from python with PyUnicode_EncodeFSDefault(), new in py3.2.
2011-03-08 01:28:10 +00:00
cfd9d6d190
Drop support for python 3.1.
...
for building py3.2 on *nix see:
http://wiki.blender.org/index.php?title=Dev:2.5/Doc/Building_Blender/Linux/Troubleshooting#Python
also fixed possible buffer overrun with getting the fake filepath for a blender textblock.
2011-03-07 11:53:40 +00:00
57436f3013
fix for own error made r35267.
2011-03-03 08:01:11 +00:00
b535c738d9
further reading, need to untrack tracked PyObjects before clearing their trackable vars.
2011-03-03 06:14:55 +00:00
c42f3b4e59
support for mathutils GC wasn't complete since PyObject_GC_Track is supposed to be called once the fields are filled in.
2011-03-03 06:01:31 +00:00
7348a50d79
change return values from mathutils callbacks to match pythons (-1 is error), so error macro's can be used in both.
2011-02-28 18:42:41 +00:00
Nathan Letwory
5a760e22fc
doxygen: blender/python tagged.
2011-02-27 20:10:08 +00:00
18c7354bd2
remove warning left in by mistake and comment unused function.
2011-02-25 02:27:54 +00:00
fbd9364944
revert part of own commit r35117 which modified mathutils initialization functions, found this could be done in a better way which doesnt have to deal with partly initialize instances being freed.
2011-02-24 05:46:57 +00:00
b1639dc118
support pythons cyclic garbage collector for mathutils types.
2011-02-24 04:58:51 +00:00
Nathan Letwory
5b607701a7
doxygen: prevent GPL license block from being parsed as doxygen comment.
2011-02-23 10:52:22 +00:00
8186ba15ab
last commit used py3.2 function, inline for py3.1
2011-02-22 08:29:25 +00:00
1e120098fc
pyapi, use direct access to the frame rather then python attributes.
2011-02-22 07:57:18 +00:00
Nathan Letwory
322ff7dfe4
I swear, it was just an innocence change in guardedalloc!
...
The butterfly wing flap, causing a nice storm in the rest of blender.
Now all dependencies should point ok again. CMakers, do double-test.
2011-02-21 12:35:04 +00:00