Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-04-01Real fix for T44127: Python does not guarantee to free all objects on exit...Bastien Montagne
All kudos to Campbell for the head-up and patch!
2015-03-24BGE: Fix T43592: World GLSLThomas Szepe
This patch will fix the world GLSL (mist, background, ambient) update for the BGE. Reviewers: moguri, brecht Reviewed By: moguri, brecht Subscribers: panzergame Differential Revision: https://developer.blender.org/D151
2015-03-18Fix crash using removed data as function argumentsCampbell Barton
2015-03-16PyAPI: bpy.ops enum error was cut shortCampbell Barton
2015-03-08BMesh Py API: calc_edge_angle functionsCampbell Barton
Make consistent with calc_edge_angle, take an optional fallback arg for non-manifold edges otherwise raise an exception.
2015-03-06PyAPI: clarify fallback docstringCampbell Barton
2015-03-06Fix T43904: calc_vert_angle returns wrong valueCampbell Barton
This was mis-named, rename to `calc_edge_angle` and allow a fallback value in the case when the vert doesn't have 2-edges.
2015-03-02cleanup: whitespaceCampbell Barton
2015-02-28Py Enum props definition: 'default' parameter cleanup/fix.Bastien Montagne
* There was no real default value for this parameter (neither "" nor None would work the same as not specifying that parameter). Now, 'None' is considered as default value, and you get exact same behavior with this value and if not specifying it. This is important at least for consistency, and potentially too in some esoteric cases (like generated code or so). * Add a warning about the fact that 'default' parameter shall not be psecified when items are given a callback function.
2015-02-23Fix mismatch (missing 'const' to mactch funcs declarations).Bastien Montagne
Was breaking windows compile, reported by bdancer over IRC, thanks. Also, quite some annoying 'unused vars' warnings (debug-only vars).
2015-02-20Fix T43739: bad documentation for bmesh py `intersect_face_point()`Bastien Montagne
Previous text could make think this func was checking whether a point was inside and on the face, while it actually checks whether the projection of that point onto the face is inside its boundary...
2015-02-18CMake: indent & missing headerCampbell Barton
2015-02-18Include SDL information in system info text.Sybren A. Stüvel
Adds bpy.app.sdl to expose SDL version information. When SDL is not available on a Linux system, certain Blender features are silently disabled (like joystick support in the BGE). This change is the first step towards making it more obvious why something isn't working. SDL information is exposed to Python via bpy.app.sdl, in the same way as OCIO and OIIO information is exposed. Generated system-info.txt contains SDL loading method (linked or dynamically loaded by Blender) and SDL version number. Reviewed by: sergey, campbellbarton Differential Revision: https://developer.blender.org/D1112
2015-02-15missed this second last commitCampbell Barton
2015-02-15mathutils: Implement __hash__() functionsCampbell Barton
- all mathutils types - only works on frozen data (so vectors can be used in sets/dict keys) - uses same method as CPython, (matches hashing a tuple) D1104 by @juicyfruit with own modifications
2015-02-15mathutils: add freeze() method, is_frozen attrCampbell Barton
This allows you to make any mathutils object immutable.
2015-02-15mathutils: remove redundant read callbackCampbell Barton
2015-02-15mathutils: avoid extra alloc for Vector.lerpCampbell Barton
2015-02-15Fix crash setting Euler.order to a non-stringCampbell Barton
2015-02-13cleanupCampbell Barton
2015-02-11BPY RNA: add `is_property_readonly()`.Bastien Montagne
This property may be defined dynamically, so mere access to static flag value through `bl_rna.properties[...].is_readonly` is not enough.
2015-02-01Documentation: updated mathutils documentationSybren A. Stüvel
Added descriptions of the constructors, and improved the module-level documentation.
2015-02-01mathutils: added exponential map to QuaternionSybren A. Stüvel
Added conversion to and from exponential map representation. This representation is useful for interpolation of > 2 quaternions, or in PD controllers. Implementation in C functions quat_to_expmap, quat_normalized_to_expmap, and expmap_to_quat with Python API, unit tests and documentation. Added Quaternion.to_exponential_map() and Quaternion(3-vector) to Python API. Reviewers: campbellbarton Projects: #bf_blender Differential Revision: https://developer.blender.org/D1049
2015-02-01Fix: correctly describing Quaternion.normalize()Sybren A. Stüvel
The original comment seems to suggest that only the rotation vector is normalized, leaving the rotation angle alone. This is not what happens, though. The new comment matches the actual implementation, and the implementation matches what is commonly understood as quaternion normalization.
2015-01-29Fix T43473: mathtutils.geometry.interpolate_bezier returns only 2d coordinatesBastien Montagne
Fixed/enhanced a few usages of `mathutils_array_parse()` in this file actually...
2015-01-29Revert "mathutils: let Vector.normalize() return the original length."Campbell Barton
Please discuss changes to core mathutils functions first. Changes like this should be considered and applied to all areas of the API (or not at all). Missed quaternion, matrix normalize for eg.
2015-01-29mathutils: let Vector.normalize() return the original length.Sybren A. Stüvel
The length has to be calculated for normalization anyway, and it is already returned by normalize_vn(vec, size).
2015-01-26Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).Bastien Montagne
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)' and 'strcmp(foo, bar) == 0' in several places...
2015-01-23PyAPI: Replace importlib.reload, not 'imp'Campbell Barton
2015-01-21Added new debug flag which can be used to lazy-init the SimDebug drawing.Lukas Tönne
A development addon can be used now to enable the debug drawing, without the need to add UI code for this in the release files. The SimDebug feature should also get an overall build flag and use function stubs unless enabled. That way any possibility of overhead in releases is eliminated.
2015-01-20Properly register the `mathutils.interpolate` submodule.Lukas Tönne
2015-01-20New python submodule `mathutils.interpolate` for various mesh interpolation ↵Lukas Tönne
and weighting methods. This module will contain mirrored functions for calculating and applying weights for points on a mesh. This includes barycentric and UV weighting and possibly more advanced global weighting such as harmonic weights. The naming should follow this scheme: <type>_{2d,3d}_{calc,apply} e.g. poly_2d_calc poly_2d_apply uv_3d_calc ... Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D939
2015-01-18Fix `mathutils.barycentric_transform()`Bastien Montagne
Dummy typo, we need a 3D vector here...
2015-01-06Correct args from recent mathutils refactorCampbell Barton
2015-01-06PyAPI: add PyList_APPENDCampbell Barton
This appends while giving ownership to the list, avoiding temp assignment. This matches PyList_SET_ITEM which bypasses refcount's Note, this also reduce code-size, Py_DECREF is a rather heavy macro.
2015-01-06PyAPI: add utilities PyTuple_SET_ITEMS, Py_INCREF_RETCampbell Barton
Setting all values of a tuple is such a common operation that it deserves its own macro. Also added Py_INCREF_RET to avoid confusing use of comma operator.
2015-01-04Fix T43119: mathutils.intersect_point_line always returns a 2D vector as ↵Bastien Montagne
first value. Trivial, safe for final 2.73.
2015-01-04mathutils: refactor instantiationCampbell Barton
remove 'type' argument, very few mathutils objects are wrapped, add new function for creating wrapped objects. also fixes unlikely memory leak if the data-array can't be allocated.
2015-01-02cleanup: styleCampbell Barton
2015-01-01cleanup: redundant casts & const cast correctnessCampbell Barton
2014-12-30PyAPI: geometry.normal, support polygonsCampbell Barton
Previously this only supported tri/quads, now arbitrary size poly lines are supported.
2014-12-30PyAPI: allow non-vector args for geometry moduleCampbell Barton
Previously only vector args were accepted, now allow generic sequence of numbers. Was annoying to create vectors just to pass in args.
2014-12-28cleanup: avoid ref-counting None for a new matrixCampbell Barton
2014-12-27Fix a very stupid memleak in own bpy_app_translations.c code...Bastien Montagne
Safe for 2.73.
2014-12-25Refactor 'immediate search' featureBastien Montagne
Currently, code just checks whether a text-edited button uses a given icon (VIEWZOOM) to decide to apply changes on each typed char. This patch adds a propper button flag (UI_BUT_TEXTEDIT_UPDATE) and a dedicated RNA flag (PROP_TEXTEDIT_UPDATE) for that. It's also now usable not only for text buttons, but also for example for num buttons when in 'text edit' mode, etc. It also fixes an actual bug, which is for text properties, in 'immediate' mode, hitting escape would not restore org value, because `ui_apply_but_TEX()` would set its orgstr to NULL on first call (giving it to `but->rename_orig` instead of copying it). Note no change in behavior is expected from user POV. Update for addons using that 'VIEWZOOM' icon 'feature' will follow (if any). Reviewers: campbellbarton Reviewed By: campbellbarton Projects: #user_interface, #bf_blender:_next Differential Revision: https://developer.blender.org/D938
2014-12-18Fix mathutils docstring typos.Tamito Kajiyama
2014-12-18correct recent cleanup for id-property typesCampbell Barton
2014-12-13Fix T42885: We still had a few wrong doc in mathutils about methods returningBastien Montagne
instance of self while actually returning None...
2014-12-08BMesh: ensure iterator macros assign to valid typesCampbell Barton
note, this is for C++ code which expects a cast, (will be added later) also add a macro for nop-expressions (EXPR_NOP), when we never want an expression to be evaluated, but it should still be valid.
2014-12-01Python: add 'render_write' callbackCampbell Barton
This is useful for addons which intend to write data next to the rendered image/movie, but not for preview renders.