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
2017-09-04Docs: BMesh.from_mesh behavior w/ multiple callsCampbell Barton
2016-11-13BMesh: BM_face_exists no longer uses return argCampbell Barton
Just return the face or NULL, like BM_edge_exists(), Also for BM_face_exists_overlap & bm_face_exists_tri_from_loop_vert. No functional changes. Old code did some partial overlap checks where this made some sense, but it's since been removed.
2016-07-31PyAPI: minor optimization for dictionary creationCampbell Barton
Pass size when its known.
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-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-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-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-25Docs: note that BMesh loops are accessed via facesCampbell Barton
Resolves T48258
2016-03-14Fix T47784: BMesh.from_object broken keyword argsCampbell Barton
2016-01-14Cleanup: use BM_mesh_* prefix for BMesh functionsCampbell Barton
2016-01-12Add bmesh.select_history.discardCampbell Barton
Follows convention for set, useful to avoid error handling with remove().
2015-11-25BMesh: raise exception face-split w/ adjacent loopsCampbell Barton
Was raising "internal error".
2015-11-19Cleanup: remove unused bmesh iteratorCampbell Barton
2015-09-18Cleanup: simplify PyBMesh customdata API useCampbell Barton
2015-09-13Cleanup: spellingCampbell Barton
2015-09-01Fix T45976: Crash accessing BMesh customdataCampbell Barton
Layers returned from items() and values() could have an invalid index.
2015-09-01Fix T45939: Crash w/ BMesh.*.sort()Campbell Barton
2015-09-01Use qsort_r for BMesh Py APICampbell Barton
2015-08-04Use PyC_ParseBool to parse boolsCampbell Barton
This could cause problems since they could be any int, then passed directly to internal functions that assume bools.
2015-07-29Optimize PySequence_Fast usageCampbell Barton
Access arrays directly, avoiding type-check every time.
2015-07-29Fix leak in BPy_BMElem_PySeq_As_ArrayCampbell Barton
Also add BPy_BMElem_PySeq_As_Array_FAST
2015-06-14BMesh: use define for stringCampbell Barton
2015-05-03Fix typos.Tamito Kajiyama
2015-05-02BMesh: BM_vert_separate double edge fixCampbell Barton
Splitting edges could give duplicates.
2015-05-02Cleanup: bmesh src/dst order in API argsCampbell Barton
2015-04-30Correct docstringCampbell Barton
2015-04-25Cleanup: use 8 space indent for multi-line argsCampbell Barton
2015-04-23Expose CD_PAINT_MASK to Python APICampbell Barton
D782 by Stanislav Blinov
2015-04-16Cleanup: remove redundant initializersCampbell Barton
2015-04-12BMesh: minor optimization counting adjacent dataCampbell Barton
add BM_***_count_is_over(), _count_is_equal() Useful if we only want to know if the count is a smaller value.
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-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-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-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-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-01cleanup: redundant casts & const cast correctnessCampbell Barton
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-11-29Cleanup: unused headersCampbell Barton
2014-11-29Cleanup: unused headersCampbell Barton
2014-11-28Cleanup: unused headersCampbell Barton
2014-11-16Cleanup: use BLI_listbase_*** prefix for count,sort,sort_rCampbell Barton
2014-10-29Cleanup: warnings, typosCampbell 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-01Fix T41971: BMesh mapping slot arg errorCampbell Barton
2014-09-12Fix T41788: bmesh.utils.loop_separate, face_vert_separate() always return NoneCampbell Barton
2014-07-21bmesh py api: face_split_edgenet missed NULL checkCampbell Barton
2014-07-17bmesh py api: add bmesh.utils.vert_splice(...)Campbell Barton