Age | Commit message (Collapse) | Author |
|
- use NULL rather than 0 when used as pointers.
|
|
|
|
inspecting the exception for the path assumed utf8.
|
|
wasnt making paths absolute (abs paths are made relative when converting the other way).
|
|
returning an operator set/flag.
|
|
useless, re-raise a more comprehensive error which includes the operator name.
|
|
|
|
& correct some bad comments.
|
|
|
|
-Wdouble-promotion), went over render module and use float constants, gives small but consistent speedup - approx 3%.
|
|
in the newly loaded file.
|
|
- 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).
|
|
|
|
|
|
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.
|
|
would have made previous fix a lot easier to find.
also remove unused argument from RNA_property_array_check.
|
|
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).
|
|
operator list (containing over 1000 items) for each button draw.
gives small speedup for UI drawing and overall startup time.
|
|
|
|
this is only used for doc generation and it makes _every_ blender/python instance 4 bytes bigger - vertex/bezier point/object/scene/group etc.
|
|
method, gives small speedup drawing buttons since every layout.prop/col/operator/menu etc creates and throws away one of these.
|
|
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.
|
|
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.
|
|
|
|
__all__ to some modules which were missing it.
|
|
some other minor corrections.
|
|
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.
|
|
[#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).
|
|
with FBX, BVH import/export which are very sensitive to changes in matrix rotation.
|
|
from Scott Giese (sgiese)
|
|
|
|
- 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.
|
|
|
|
remove missing includes and use more strict formatting.
|
|
|
|
|
|
mathutils and double checked the're correct.
|
|
|
|
|
|
also made repr function nicer.
|
|
- 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
|
|
|
|
|
|
present
|
|
|
|
|
|
- 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.
|
|
|
|
|
|
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.
|