fd4575b2e3
svn merge -r39493:39664 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-08-24 02:29:45 +00:00
98f87b77f4
svn merge -r39433:39493 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-08-24 01:44:54 +00:00
a937729f38
properly escape chars for pythons bpy objects __repr__
2011-08-22 18:13:37 +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
a0a96a84fe
fix for crash when loading a file from a script, and executing user modules in the newly loaded file.
2011-08-20 13:29:42 +00:00
2c1182664c
minor speedup to python/rna api keyword argument lookups.
...
- dont use hash lookups in this case because converting the string to unicode and doing a hash lookup is slower then looping over the keys and comparing (which avoids creating and throwning away a unicode string).
2011-08-19 10:38:34 +00:00
561b49e925
minor style change
2011-08-19 10:35:47 +00:00
2bd016fe3f
formatting edits, no functional changes.
2011-08-18 12:20:10 +00:00
e98074d327
remove support for deprecated Vector() * Matrix(), eventually this will be added back as row_vector_multiplication bu to avoid confusion for a bit just disable it altogether so script authors get an error on use and update their scripts.
2011-08-16 13:10:46 +00:00
74ca6070b4
svn merge -r39384:39433 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-08-16 06:53:03 +00:00
55a560c0c4
svn merge -r39286:39385 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-08-16 06:30:14 +00:00
540f0c64b5
add in asserts for when array/non array RNA funcions are used incorrectly, would have made previous fix a lot easier to find.
...
also remove unused argument from RNA_property_array_check.
2011-08-14 10:28:18 +00:00
165e6dbc07
Adding a readonly length_squared property to mathutils.Vector. This is simply vector.dot(vector), so nothing new is really added, but it's nice for writing more intent revealing code. In other words:
...
if vec.dot(vec) > some_distance*some_distance:
do_something()
might not be quite as obvious looking as:
if vec.length_squared > some_distance*some_distance:
do_something()
As to why you'd want to use length_squared over length is that length uses a square root, which isn't always necessary for simple distance checks (e.g., closest object, checks like the ones above, ect).
2011-08-11 09:40:14 +00:00
a7663cc377
use ghash for operator and menu types, was doing string lookup in the operator list (containing over 1000 items) for each button draw.
...
gives small speedup for UI drawing and overall startup time.
2011-08-11 06:06:17 +00:00
226e424cb2
svn merge -r39057:39286 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-08-11 04:53:57 +00:00
4262bd2906
fix [ #28196 ] Unwrap tris in lightmap pack
2011-08-09 20:00:53 +00:00
3a82a690ab
ifdef out support for for python owning and freeing BPy_StructRNA because this is only used for doc generation and it makes _every_ blender/python instance 4 bytes bigger - vertex/bezier point/object/scene/group etc.
2011-08-05 16:29:38 +00:00
85fe36ab61
pyrna - add own callable function type rather then using a standard python method, gives small speedup drawing buttons since every layout.prop/col/operator/menu etc creates and throws away one of these.
2011-08-05 16:21:37 +00:00
aa1477cce1
https://svn.blender.org/svnroot/bf-blender/trunk/blender , in sync with trunk now
2011-08-05 08:28:03 +00:00
5c26223106
svn merge -r38804:38971 https://svn.blender.org/svnroot/bf-blender/trunk/blender , manual merge of source/blender/editors/transform/transform.c
2011-08-05 08:02:04 +00:00
f77af0a8ce
change BLO_library_append_begin to take a main argument rather then a context, means the BGE doesnt need to make a new empty context just to pass as an arg.
...
added doxygen description too.
this quiets the print when the BGE does linking.
2011-08-05 05:26:19 +00:00
e5e6f91856
fix [ #28114 ] Render Crash
...
existing check for driver to use GIL was not thread safe and could cause, details in the report.
This bug was caused by a check to avoid hanging, a fix for [#27683 ] that worked in 2.4x because the UI didn't use python to draw while rendering.
Apply a different fix for [#27683 ], when calling an operator, call PyEval_SaveThread(), then PyEval_RestoreThread() so the GIL can be aquired by threads started by the operator - in this case bake starting a thread that evaluates drivers.
2011-08-04 01:56:36 +00:00
de0db6c8da
unit arg for FloatVectorProeprty
2011-08-02 10:56:09 +00:00
f4293067c1
py api: sphinx doc corrections, pep8 cleanup and style edits, also added __all__ to some modules which were missing it.
2011-07-31 03:15:37 +00:00
d163ce5595
bpy fix for crash/assert on running dir() on a non collection property + some other minor corrections.
2011-07-30 13:18:04 +00:00
42b87af8a7
svn merge -r38600:38700 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-26 04:31:59 +00:00
6d5080783e
svn merge -r38500:38600 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-26 04:17:15 +00:00
fc95382a97
svn merge -r38400:38500 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-26 03:55:23 +00:00
ac2dd40991
svn merge -r38300:38400 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-26 03:14:16 +00:00
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
cadfac5a0f
svn merge -r38000:38200 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-25 17:51:30 +00:00
6199276053
svn merge -r37800:37900 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-25 14:54:29 +00:00
2dc6b8f835
svn merge -r37700:37800 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-25 14:34:36 +00:00
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
ced8f1dffc
deprecate multiplication orders:
...
vector * matrix
vector *= matrix
vector * quaternion
vector *= quaternion
Use the reverse order instead, enable WITH_ASSERT_ABORT in cmake to promote the warnings into errors.
2011-07-25 01:44:19 +00:00
b709b52f46
svn merge -r37500:37600 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-24 13:21:54 +00:00
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
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
0ed523a8dd
patch [ #28032 ] Python Mathutils: Matrix Multiplication Error
...
from Scott Giese (sgiese)
2011-07-20 05:57:38 +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
410c5e3cd2
cmake source definitions:
...
remove missing includes and use more strict formatting.
2011-07-16 23:01:14 +00:00
7984e338db
fix for linking on mingw/scons with recent changes to mathutils
2011-07-15 10:10:25 +00:00
3a6158a8bf
move mathutils into its own lib.
2011-07-15 04:01:47 +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