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-01-18Merge remote-tracking branch 'origin/blender2.8' into render-layersDalai Felinto
Manual fix: collection.c layer.c
2017-01-16Cleanup/refactor: Add new BLI_string_util.Bastien Montagne
Things like `BLI_uniquename` had nothing, but really nothing to do in BLI_path_util files! Also, got rid of length limitation in `BLI_uniquename_cb`, we can use alloca here to avoid overhead of malloc while keeping free size (within reasonable limits of course).
2017-01-10Add new objects and some Base > ObjectBase convertionDalai Felinto
New objects are properly added to the correct collection, and are synced into the correct collections.
2016-12-28Revert particle system and point cache removal in blender2.8 branch.Lukas Tönne
This reverts commit 5aa19be91263a249ffae75573e3b32f24269d890 and b4a721af694817fa921b119df83d33ede7d7fed0. Due to postponement of particle system rewrite it was decided to put particle code back into the 2.8 branch for the time being.
2016-06-13Merge branch 'master' into blender2.8Campbell Barton
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-16Removed remaining uses of the particle edit mode flag.Lukas Tönne
2015-12-23Fix issue w/ transform orientation & vert selectionCampbell Barton
Accessing selected verts as an array failed when only some of the selected verts were in the selection-history.
2015-12-23Add BM_vert_edge_pair utility functionCampbell Barton
2015-12-01Cleanup: use more logical names for View3D.aroundCampbell Barton
D1651 (own patch)
2015-09-08Error in last commitCampbell Barton
Had warnings disabled.
2015-09-08Fix T46003: Scale w/ script ignores axis-alignCampbell Barton
2015-08-18Refactor translation code out of blenfontCampbell Barton
- Add blentranslation `BLT_*` module. - moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`). - moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.
2015-08-13Fix T45775: Bad 'Normal' transform space for edge of non-uniformed scaled ↵Bastien Montagne
object. Non-uniform scaled obmat will lead to transformation not preserving angles, so we must ensure our normal is orthogonal to the edge **after** applying obmat.
2015-02-17Fix T43708: Wrong manipulator in individual originCampbell Barton
Manipulator and actual behavior were out-of-sync with a single edge selected.
2014-12-12cleanup: disallow NULL arg to uvedit_aspectCampbell Barton
also some typo's
2014-11-28Cleanup: unused headersCampbell Barton
2014-11-16Cleanup: use BLI_listbase_*** prefix for count,sort,sort_rCampbell Barton
2014-09-12Cleanup & remove redundant checkCampbell Barton
2014-09-11Fix non-deterministic editmesh normal orientationsCampbell Barton
- selecting a boundary edge would randomly point in/outside the face (now point away). - selecting 3 verts would use the first selected edge as the tangent (now use longest). - selecting 1 vert betweem edges, uses the edges to define the tangent.
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-05-09Metaball transform, support active-only optionCampbell Barton
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-11Code cleanup: use boolCampbell Barton
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-03-29Code cleanup: replace dot with len_squared and is_zero checksCampbell Barton
2014-03-19Code cleanup: unreachable break/returnCampbell Barton
2014-02-12Transform: better logic to calculate manipulator normal orientation.Campbell Barton
Use Z axis for the edge direction for edges and vertex pairs. Issue raised in T38592, now edge select and vert-pairs share logic for calculating orientation and the active vertex determines direction.
2014-01-27Curves: save active point to fileKevin Mackay
Changed curve active point from pointer to index. Allows curve active point to be saved to file and retained between modes for free. Also some small optimisations by removing pointer look up code. - Made active point access functions into BKE API calls. - Fixes operators where curve de-selection resulted in unsel-active point. - Split curve delete into 2 functions
2013-12-03Code Cleanup: use BLI_strncpy when copying into fixed sized buffersCampbell Barton
2013-11-28Transform: improve normal orientationCampbell Barton
- when 3 verts are selected ensure the normal is flipped on the side of existing vert normals. also use the most distant 2 verts to define the tangent. - when 2 vertices are selected, the normal wasn't aligned with the vert normal.
2013-11-26fix for error in own recent commit, removing orientations.Campbell Barton
2013-11-25Transform: old todo, removing an orientation now checks all screens.Campbell Barton
also fix for using uninitialized matrix when an out-of-range index is set for custom orientations.
2013-11-25Transform: internal changes for orientations calculations.Campbell Barton
- use (const char *) for the 'name' - use bool where possible. - remove unused return value for initTransInfo
2013-10-01make the manipulator work with curve handle selections with normal ↵Campbell Barton
orientation and individual origins.
2013-07-25adjust createSpaceNormalTangent so it can take values from a matrix without ↵Campbell Barton
having to negate the plane first. also add ED_armature_ebone_to_mat3/4 since there were quite a few places that did this inline.
2013-07-25fix [#36278] X,Y Direction wrong after bpy.ops.view3d.viewnumpadCampbell Barton
the cause of the problem was the orientation from the active object was inconstant. copying the obmat directly gave a different result then getting the normal,tangent from getTransformOrientation and passing to createSpaceNormalTangent.
2013-07-25optimization: manipulator was looping over all objects on redraw when the ↵Campbell Barton
active object was being used and it didn't need to.
2013-07-24- add individual origin support for curves and improve the orientation ↵Campbell Barton
calculations for curve handles, - add support for using the active point's orientation. - add support for creating new custom orientations from curves. - fix error where only the last selected curve handle was taken into account for manipulator orientations.
2013-07-21code cleanup: add break statements in switch ()'s, (even at the last case).Campbell Barton
2013-07-15replace strncpy with BLI_strncpy for cases we expect the string to be NULL ↵Campbell Barton
terminated.
2013-05-28fix [#35509] MedianPoint choice has bad normalsCampbell Barton
2013-05-12Fix for [#35238] Blender does not save custom orientations from "view"Bastien Montagne
Actually more a feature request... Now create orientations operator has an additional option, use_view, when this one is enabled it will use current view instead of active object to create the new space. Also made some cleanup (made some funcs static).
2013-05-12Fix for [#35224] Transform Orientation - order inconsistencyBastien Montagne
Fix turned out to remove as much "manual UI" from 3D view header as possible. Mode selector and all transform manipulators/orientations stuff are now RNA-based UI (leaving basically only edit mesh select modes with custom handlers, as they have some quite specific features). To achieve this, four main modifications were done: * enum-operator-generated menus are now MENU (i.e. dropdown lists) in headers too. * All bit-flag enums expanded in ROW buttons now have a handling consistent with e.g. layers, or what we already have for transform manipulators, i.e. clicking select only one element, shift-click to select multiple ones. * Consequently, the three RNA booleans manipulators flags are merged into a single bit-flag enum (yes, this is also an API change, though I doubt many scripts use it). * Now the width of enum-based dropdown lists is computed from longest item name in enum, no more from a dummy place holder string (when no label/name is given). All this allows to remove some code from 3DView/transform areas, that was actually mostly duplicating RNA/operator one. Also done a few optimizations here and there (among others, do not pass &numitems to RNA_property_enum_items() when you do not need it, saves at least an iteration over enum items to count them). Many thanks to Brecht for the reviews!
2013-04-16code cleanup: use BKE naming conventions for functions in BKE_editmesh.h and ↵Campbell Barton
BKE_editmesh_bvh.h
2013-04-14code cleanup: rename BKE_tessmesh -> BKE_editmesh, rename ↵Campbell Barton
EditDerivedBMesh.tc -> em. ('tc' is odd name which isn't used elsewhere).
2013-04-04fix [#34802] Individual Transformation Confusing in Edit ModeCampbell Barton
Individual transformation now works in editmode mesh faces/edge, armature bones and metaballs.
2013-03-25More new data names translation (most cases should be covered now).Bastien Montagne
Also done a few cleanup here and there...
2013-03-21code cleanup: use bool where values are true/false, for view3d and related ↵Campbell Barton
functions.
2013-03-14use BLI_strncpy_rlen() rather then BLI_snprintf() when no formatting is needed.Campbell Barton
also replace sprintf with strcpy when no formatting is done.