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
2018-02-19Fix T54098: Crash existing /w dyntopo sculptCampbell Barton
Optionally don't remap indices for objects. Checking all objects parent's would reference a freed pointer while freeing all objects. In the case of dynamic topology there is no use in keeping track of hook/vertex-parent indices. Also disable this when creating meshes for undo storage since adding an undo step shouldn't be modifying other objects.
2018-02-15Cleanup: use '_len' instead of '_size' w/ BLI APICampbell Barton
- When returning the number of items in a collection use BLI_*_len() - Keep _size() for size in bytes. - Keep _count() for data structures that don't store length (hint this isn't a simple getter). See P611 to apply instead of manually resolving conflicts.
2018-01-12Fix bmesh.utils.face_join arg parsingCampbell Barton
2017-11-12BMesh Py API: Expose color alphaCampbell Barton
2017-10-24Fix BMesh PyAPI internal flag clearing logicCampbell Barton
Would leave the flag set on raising an exception.
2017-10-23Docs: improve bmesh exception messageCampbell Barton
Suggested in T53131
2017-10-12Docs: add note for bmesh face_split_edgenetCampbell Barton
2017-09-04Cleanup: avoid confusing assignmentCampbell Barton
2017-09-02Correct own error simplifying matrix checksCampbell Barton
2017-08-28Docs: BMesh.from_mesh behavior w/ multiple callsCampbell Barton
2017-08-24Correct error in recent use of PyC_Long_*Campbell Barton
Regression in 46cf33bf0
2017-08-20PyAPI: Make use of PyC_LongAs... APICampbell Barton
Avoids setting exceptions inline, also use Matrix_ParseAny for bmesh.ops. Some inline exceptions are kept because they show useful details.
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