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
2016-07-14PyAPI: minor cleanup with library linkingCampbell Barton
2016-07-14PyAPI: Leak fix caused crash w/ attr swap trickCampbell Barton
Accessing `bpy.app.binary_path_python does search, then swaps its getset with the string it finds. This caused a freed pointer to be stored in bpy.app's dictionary. Fix by using the same string for get/set access.
2016-07-14PyAPI: fix leak linking library dataCampbell Barton
2016-07-14PyAPI: fix memory leaks in dictionary assignmentCampbell Barton
Thanks to Kévin Dietrich for spotting driver leak, checked other uses of PyDict_SetItem and found more.
2016-07-14PyAPI: Use module names on initializatonCampbell Barton
No need to re-convert from C strings to PyUnicode.
2016-07-07Cleanup: spelling, styleCampbell Barton
2016-07-02Fix typo in bgl.Buffer report functionThomas Szepe
A GL_INT buffer was reported as GL_BYTE.
2016-07-02Cleanup: comment blocksCampbell Barton
2016-07-01BMesh: make toolflags optionalCampbell Barton
Saves 8 bytes per vert/edge/face. Gives overall ~20-25% memory saving for dyntopo sculpting and modifiers that use BMesh.
2016-06-27Fix T48717: Modal operators called from Py omit reports from the UICampbell Barton
2016-06-22Cleanup: use proper RNA struct type for ListBase typeBastien Montagne
(otherwise all code using RNA has to link DNA_listbase.h, not clean at all!).
2016-06-12bmesh py api: expose BM_face_calc_tangent_*Campbell Barton
D1988 by @wisaac, with own edits and improvements. This improves on existing tangent calculation functions too. - BM_face_calc_tangent_auto: Chooses method based on number of sides, used by manipulator (not exposed to Python). - BM_face_calc_tangent_edge: from longest edge. - BM_face_calc_tangent_edge_pair: from longest edge-pair (most useful with quads). - BM_face_calc_tangent_edge_diagonal: edge farthest from any vertex. - BM_face_calc_tangent_vert_diagonal: vert farthest from any vertex. Also optimize BM_vert_tri_calc_tangent_edge* functions to avoid sqrt.
2016-05-31Cleanup: parenthesize definesCampbell Barton
2016-05-28PyRNA: Fix repr used /w arraysCampbell Barton
RNA arrays now display their index, with support for multi-dimensional arrays.
2016-05-21Python API: add material to uniforms from gpu.export_shader.Sebastian Ullrich
Reviewed By: brecht Differential Revision: https://developer.blender.org/D1457
2016-05-17C99/C++11: replace deprecated finite() by isfinite().Brecht Van Lommel
2016-05-11Cleanup: unused win32 headersCampbell Barton
2016-05-11Fix incorrect FLT_MIN useCampbell Barton
2016-04-29Fix T48290: Hook fails after deleting geometryCampbell Barton
Now CD_SHAPEKEY_INDEX customdata is stored in edit-mode when hooks and vertex parents are used. This also fixes a bug where undo would loose key-index data. Move to structs for BM_mesh_bm_to/from_me to avoid passing many argument, which mostly aren't used.
2016-04-25Refactor BKE_blender into separate headersCampbell Barton
- BKE_blender_version.h (only version defines & versionstr). - BKE_blender_copybuffer.h (currently only used for view3d copy/paste). - BKE_blender_undo.h (global undo functions). - BKE_blendfile.h (high level blend file read/write API).
2016-04-25Recent pydriver update missed setting 'curval'Campbell Barton
Using PyObject's for drivers (82b0a9e36) still needs to set the 'current value' for debug info to display in the UI. Resolves T48251
2016-04-25Docs: note that BMesh loops are accessed via facesCampbell Barton
Resolves T48258
2016-04-23PyAPI: support writing compressed library blendsCampbell Barton
2016-04-22BLF: use float vector passing color argsCampbell Barton
2016-04-19Fix T48193: Incorrect keyframe_insert docsCampbell Barton
2016-04-12Cleanup: use boolCampbell Barton
2016-04-05PyDriver support for all RNA property typesCampbell Barton
Support for driver variables that don't resolve to numbers, eg: objects, bones, curves... etc. Without this, Python expressions to access this data needed to use an absolute path from `bpy.data`, however this is inconvenient, breaks easily (based on naming) and wouldn't set the dependencies correctly.
2016-04-01Update stub for recent BPY APICampbell Barton
2016-04-01Generic check for string being a Py keywordCampbell Barton
Driver code used incomplete list of Py keywords
2016-03-30Fix T47993: noise_vector ignores random seedCampbell Barton
Replace hard coded values with offsets derived from the random seed.
2016-03-24Rework library_query foreach looper - add optional recursivity.Bastien Montagne
This commit: * Fixes bad handling of 'stop iteration' (by adding a status flag, so that we can actually stop in helper functions too, and jumping to a finalize label instead of raw return, to allow propper clean up). * Adds optional recursion into 'ID tree' - callback can also decide to exclude current id_pp from recursion. Note that this implies 'readonly', modifying IDs while recursing is not something we want to support! * Changes callback signature/expected behavior: return behavior is now handled through flags, and 'parent' ID of id_pp is also passed (since it may not always be root id anymore). Reviewers: sergey, campbellbarton Differential Revision: https://developer.blender.org/D1869
2016-03-19mathutils.bvhtree: Add find_nearest_range API callCampbell Barton
Returns all elements within a radius. Similar to kdtree.find_range
2016-03-14Fix T47784: BMesh.from_object broken keyword argsCampbell Barton
2016-03-13Keyframing: Added ToolSetting for choosing default keyframe typeJoshua Leung
To make it easier for animators working in a multipass pose-to-pose workflow when inserting breakdown keyframes and so forth, it is now possible to specify the "type" of keyframe being created (i.e. the colour of the keyframe, when drawn in the Dope Sheet). Usage: 1) Choose the type of keyframe ("Keyframe", "Breakdown", "Extreme", etc.) from the new dropdown located between the AutoKeying and KeyingSet widgets on the timeline header. 2) Insert keyframes 3) Rejoyce that your newly created keyframes have now been coloured for you already in the DopeSheet. Todo: * Look into a way of using the actual keyframe colours (from the theme) for the icons of these types.
2016-03-08Correct recent RNA array slicing commitCampbell Barton
Broke slice assignment when used on an item from a multi-dimensional array, eg: `array[i][:] = data`
2016-03-08PyAPI: Support multi-dimensional RNA slice assignmentCampbell Barton
This was already supported for getting slices.
2016-03-08Fix Py API array assignment not clamping valuesCampbell Barton
2016-03-07Correct docstringsCampbell Barton
2016-03-05Cleanup: quiet -Wcomma, cast to void where neededCampbell Barton
2016-03-04Cleanup: suspicious use of commasCampbell Barton
2016-03-03Use IOError exception failing to write blend fileCampbell Barton
2016-03-03PyAPI: API for selectively writing data-blocksCampbell Barton
Useful for writing asset-libraries to a file, eg. `bpy.data.libraries.write(filepath, datablocks, relative_remap=False, fake_user=False)`
2016-03-01Py (addons) i18n: fix memleak, enhance msgid lookup.Bastien Montagne
Probably did not happen yet (since nobody uses addons translations...), but there was an nice memleak during creation of translation ghash in case a same msgid/msgctx would be added more than once. Also, no need to allocate (and free) a temp key each time we lookup a msgid, we can use given const strings directly here!
2016-02-29PyAPI: correct function name w/ arg parsingCampbell Barton
2016-02-25Correct commentsCampbell Barton
2016-02-23Fix warnings reported by MSVCSergey Sharybin
Mainly it's related on a bad practice in SDL to force-define __SSE__ and __SSE2__ flags which generates quite some warnings and causes too much noise. There are some other warnings fixed. Should be no functional changes. NeXyon, please check the changes in audaspace :)
2016-02-15Cleanup: reorganize BKE ID tagging functions.Bastien Montagne
BKE_main_id_tag_/BKE_main_id_flag_ were horrible naming now that we split those into flags (for presistent one) and tags (for runtime ones). Got rid of previous 'tag_' functions behavior (those who were dedicated shortcuts to set/clear LIB_TAG_DOIT), so now '_tag_' functions affect tags, and '_flag_' functions affect flags.
2016-02-12Fix crash in bvhtree.FromPolygonsCampbell Barton
2016-02-08Fix T47337: BVHTree.find_nearest missingCampbell Barton
Method wasn't named as documented.
2016-02-03Imbuf: remove libredcodeCampbell Barton
D1751, remove this library since its quite a specific - only supports an older version of this codec. Also ffmpeg has added support for recent versions of the codec.