Campbell Barton
6d5080783e
svn merge -r38500:38600 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-26 04:17:15 +00:00
Campbell Barton
fc95382a97
svn merge -r38400:38500 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-26 03:55:23 +00:00
Campbell Barton
ac2dd40991
svn merge -r38300:38400 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-26 03:14:16 +00:00
Campbell Barton
794f3291fe
svn merge -r38200:38300 https://svn.blender.org/svnroot/bf-blender/trunk/blender , source/blender/gpu/intern/gpu_buffers.c updated from trunk and re-made edits to use getTessFace* functions.
2011-07-26 03:00:55 +00:00
Campbell Barton
cadfac5a0f
svn merge -r38000:38200 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-25 17:51:30 +00:00
Campbell Barton
6199276053
svn merge -r37800:37900 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-25 14:54:29 +00:00
Campbell Barton
2dc6b8f835
svn merge -r37700:37800 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-25 14:34:36 +00:00
Campbell Barton
a7815053ef
svn merge -r37600:37700 https://svn.blender.org/svnroot/bf-blender/trunk/blender
...
manually merged source/blender/editors/uvedit/uvedit_unwrap_ops.c
2011-07-25 12:59:54 +00:00
Campbell Barton
b709b52f46
svn merge -r37500:37600 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-24 13:21:54 +00:00
Campbell Barton
314fdb941e
revert recent matrix multiplication patch:
...
[#28032 ] Python Mathutils: Matrix Multiplication Error
Since they ended up reversing the order we better keep old code unless its proven to be incorrect.
also change Matrix.__repr__ function args to evaluate correctly (need to be inside a tuple).
2011-07-21 02:00:29 +00:00
Campbell Barton
8b5e7f2650
patch [ #28032 ] swapped matrix multiplication order, reverse it back, tested with FBX, BVH import/export which are very sensitive to changes in matrix rotation.
2011-07-20 06:41:51 +00:00
Campbell Barton
0ed523a8dd
patch [ #28032 ] Python Mathutils: Matrix Multiplication Error
...
from Scott Giese (sgiese)
2011-07-20 05:57:38 +00:00
Campbell Barton
35ce13562d
script to report deprecated functions of text and their age in days.
2011-07-18 09:49:26 +00:00
Campbell Barton
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
Campbell Barton
5792bd7cc7
cmake: cleanup include paths, some duplicates and going up some unneeded dirs.
2011-07-17 09:11:13 +00:00
Campbell Barton
410c5e3cd2
cmake source definitions:
...
remove missing includes and use more strict formatting.
2011-07-16 23:01:14 +00:00
Campbell Barton
7984e338db
fix for linking on mingw/scons with recent changes to mathutils
2011-07-15 10:10:25 +00:00
Campbell Barton
3a6158a8bf
move mathutils into its own lib.
2011-07-15 04:01:47 +00:00
Campbell Barton
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
Campbell Barton
4da4943b5c
formatting changes for python mathutils module.
2011-07-14 01:25:05 +00:00
Campbell Barton
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
Campbell Barton
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
Campbell Barton
80eb1eae42
run WM_exit(C) when blender as a python module exits
2011-07-10 18:54:02 +00:00
Campbell Barton
7370ba1839
fix for NULL pointer usages
2011-07-09 19:59:32 +00:00
Campbell Barton
d5984b2d50
fix [ #27683 ] Blender hangs when baking a particle system when a driver is present
2011-07-09 17:41:39 +00:00
Campbell Barton
aa1668c6f8
fix for own error in intersect_line_sphere_2d(), using 3d function on 2d vectors
2011-07-04 08:13:27 +00:00
Campbell Barton
d29d3a89e4
fix for building WITH_PYTHON_MODULE
2011-07-03 19:15:46 +00:00
Campbell Barton
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
Campbell Barton
31f0b6639a
more compact code for recent sphere/line intersection functions.
2011-06-26 17:16:06 +00:00
Campbell Barton
933a65a76f
2d version of line/circle intersec function.
2011-06-26 11:08:12 +00:00
Campbell Barton
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
Campbell Barton
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
Guillermo S. Romero
a03707d408
SVN maintenance.
2011-06-24 23:14:26 +00:00
Campbell Barton
12e02fd474
own patch [ #27752 ] Python Callback (Scriptlink functionality)
...
Python:
* adds bpy.app.handlers which contains lists, each for an event type:
render_pre, render_post, load_pre, load_post, save_pre, save_post
* each list item needs to be a callable object which takes 1 argument (the ID).
* callbacks are cleared on file load.
Example:
def MyFunc(scene): print("Callback:", data)
bpy.app.handlers.render_post.append(MyFunc)
C:
* This patch adds a generic C callback api which is currently only used by python.
* Unlike python callbacks these are not cleared on file load.
2011-06-24 16:54:30 +00:00
Campbell Barton
2023db70a8
cmake option to build without an audio library.
2011-06-23 09:27:56 +00:00
Campbell Barton
eaae38551f
pep8 compliance
2011-06-21 17:17:51 +00:00
Campbell Barton
d33b63c5d8
update cmake checker to ignore file list and add some headers to the source list.
2011-06-21 17:00:34 +00:00
Campbell Barton
a50aa13fac
py api: make all classes __init__ functions in a readonly state, except for operators.
...
In bug [#27701 ], the panels __init__ function (which runs on every draw), was adding new rna properties.
2011-06-21 08:09:42 +00:00
Campbell Barton
ccc112a857
fix for error in swizzle assignment leaving an unhandled exception.
2011-06-21 02:15:07 +00:00
Guillermo S. Romero
31093223cd
SVN maintenance.
2011-06-18 23:22:55 +00:00
Campbell Barton
82216030e9
py-api: store frequently used strings as unicode PyObject's to avoid creating/distroying every time.
...
also fix for cmake warning
2011-06-18 08:45:45 +00:00
Campbell Barton
775ea4de92
fix for memory leak converting an idproperty group into a dict
2011-06-17 05:56:17 +00:00
Campbell Barton
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
Campbell Barton
897b570c1a
ulti line formatting for PyErr_Format calls (no functional change)
2011-06-17 02:26:34 +00:00
Campbell Barton
1356082063
fix [ #27681 ] Python: crash assigning a 'set' to an array
2011-06-17 02:22:38 +00:00
Campbell Barton
f122a74b1e
svn merge -r37078:37335 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-06-09 15:20:29 +00:00
Campbell Barton
e44ae2c2a9
disable the readonly state while rna property callbacks run.
2011-06-07 16:08:49 +00:00
Campbell Barton
9c8cc9fe60
rna option not to save certain properties for redoing later, currently only used by operator presets.
2011-06-07 10:54:57 +00:00
Campbell Barton
617a08162f
update ctest md5sums for import/export to match changes to the scripts, also some minor formatting change for bpy_props.c
2011-06-07 08:47:33 +00:00