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-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.
2014-11-29Cleanup: unused headersCampbell Barton
2014-11-29Cleanup: unused headersCampbell Barton
2014-11-28Cleanup: unused headersCampbell Barton
2014-11-28Cleanup: duplicate headersCampbell Barton
2014-11-24SCons: correct include for win, also minor cleanupCampbell Barton
2014-11-23Refactor: BLI_path_util (part 2)Campbell Barton
Use BKE_appdir/tempdir naming prefix for functions extracted from BLI_path_util
2014-11-23Refactor: BLI_path_util (split out app directory access)Campbell Barton
This module is intended for path manipulation functions but had utility functions added to access various directories.
2014-11-20mathutils.kdtree: fix docstringsCampbell Barton
2014-11-16Fix T42581: Add 'icon_value' feature to UI Py/RNA's operator button and ↵Bastien Montagne
items of enums. Rather straightforward, allows for 'DATA' icons (like mat or tex 'previews') to be used as icon for operator button or items of an enum. Patch by Simon Lušenc, with minor cleanup by self.
2014-11-16Cleanup: use BLI_listbase_*** prefix for count,sort,sort_rCampbell Barton
2014-11-14Fix T42593: Rigify crash when I press "Generate" - corrupted IDGroup's ↵Bastien Montagne
listbase of children Nothing related to rigify actually, recent hack in py handling of IDProp (rB3346ab03) was breaking integrity of IDGroup's listbase of children IDProps... Took me hours to nail this down, should have bisected for once. :/
2014-11-10Fix/workaround T37073: Crash updating custom props visible in the UICampbell Barton
2014-11-03Fix T42233: Python property ignores 'PROPORTIONAL'Campbell Barton
2014-10-29Cleanup: warnings, typosCampbell Barton
2014-10-28WM: unneeded alloc the operator-type iteratorCampbell Barton
2014-10-28BMesh Py API: Fast index lookups for vert/edge/facesCampbell Barton
This changes the Py API to use array lookup table. Previously this could be very slow since it would loop over all elements. Now the python script is responsible for creating the internal lookup table (as with C code). This will break some scripts.
2014-10-13Fix T42005: Reset py-handlers could crashCampbell Barton
Wasn't acquiring the GIL.
2014-10-08Fix Python ray-cast failing to check hit directionCampbell Barton
2014-10-08Ghost Context RefactorJason Wilkins
https://developer.blender.org/D643 Separates graphics context creation from window code in Ghost so that they can vary separately.
2014-10-01Fix T41971: BMesh mapping slot arg errorCampbell Barton
2014-09-29Cleanup: spellingCampbell Barton
2014-09-25Fix previous commit rB34abb614f1344a6, which broke addons translations.Bastien Montagne
Ghash comp callbacks must return false in case a & b are equal! Also slightly cleaned up gash code using those comp func, since those return booleans now, let's compare tham against booleans!
2014-09-25Fix ghash comparator used by translationSergey Sharybin
It now need to return bool whether element matched or not.
2014-09-24Cleanup: use float versions of functions when in/output are floatsCampbell Barton
2014-09-17Cleanup: pep8Campbell Barton
2014-09-12Fix T41788: bmesh.utils.loop_separate, face_vert_separate() always return NoneCampbell Barton
2014-09-09remove invalid commentsCampbell Barton
2014-09-08Fix building as Python module (manpage-generation)Campbell Barton
2014-09-06Py Mathutils: add `invert_safe()` and `inverted_safe()` to `Matrix`.Bastien Montagne
Those two mimic our BLI invert_m4_m4_safe - they add a small offset to diagonal values, in case org matrix is degenerated, and if still non-invertible, return identity matrix. Org patch by me, final enhanced version by ideasman42, many thanks!
2014-09-06Math Lib: Add copy_m2_m2, unit_m2, zero_m2Campbell Barton
2014-08-29Add callback for starting a render-jobCampbell Barton
We had complete/cancel, but no matching init for rendering, render_pre/post callbacks aren't always usable.