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-10Cleanup/Refactor: pass Main pointer to all ID copy functions.Bastien Montagne
Also allows us to get rid of a few _copy_ex() versions...
2016-07-09Refactor/enhance BKE_curve_make_local(), and add BKE_curve_copy_ex() that ↵Bastien Montagne
takes a Main as parameter. Now using modern features from libquery/libremap areas. Provides same kind of fixes/improvements as for BKE_object_make_local() (see rBd1a4ae3f395a6).
2016-07-08Mesh/Curve Join: remove edit-mode toggleCampbell Barton
Toggling edit-node after joining objects is redundant as far as I can see - (dates back to first revision). Also caused all edges to be drawn w/ meshes, redundant undo step w/ curves.
2016-06-03Cleanup & simplify snapping functionsGermano Cavalcante
- the name of the enumerator `SNAP_NOT_OBEDIT` was changed to `SNAP_NOT_ACTIVE`. - the parameter `snap_to_flag` was moved to outside `SnapObjectParams`. - the member `use_object_edit` was renamed to `use_object_edit_cage`. - added the arg `params` in `ED_transform_snap_object_project_ray`. - simplifications in the loop of the function `snapObjectsRay`.
2016-05-05Cleanup: styleCampbell Barton
2016-05-05Transform/Snap: EditMesh/BKE_bvhutils API improvementsGermano Cavalcante
Separate the creation of trees from EditMesh from the creation of trees from DerivedMesh. This was meant to simplify the API, but didn't work out so well. `bvhtree_from_mesh_*` actually is working as `bvhtree_from_derivedmesh_*`. This is inconsistent with the trees created from EditMesh. Since for create them does not use the DerivedMesh. In such cases the dm is being used only to cache the tree in the struct DerivedMesh. What is immediately released once bvhtree is being used in functions that change(tag) the DM cleaning the cache. - Use a filter function so users of SnapObjectContext can define how edit-mesh elements are handled. - Remove em_evil. - bvhtree of EditMesh is now really cached in the snap functions. - Code becomes organized and easier to maintain. This is an important patch for future improvements in snapping functions.
2016-05-02Missed setting handles in curve dissolveCampbell Barton
2016-05-02Curve: new dissolve toolCampbell Barton
removes vertices, re-fitting the surrounding handles.
2016-04-22Transform Snap: initial snap context refactorCampbell Barton
This introduces a snap-context that can be re-used for casting rays into the scene (by operators such as walk-mode, ruler and transform code). This can be used to cache data between calls too.
2016-04-12Cleanup: use boolCampbell Barton
2016-04-04Fix curve adding 3D nurbs when 2D is setCampbell Barton
Ctrl-LMB ignored 2D constraint
2016-04-04Fix curve, missing update on Ctrl-LMBCampbell Barton
2016-04-04Fix curve add-vertex w/ 2D curvesCampbell Barton
Project the point onto the 2d place where possible.
2015-12-02Cleanup: transform snap argumentsCampbell Barton
This was getting very hard to follow, - mixing input/output args. - mixing arg order between functions. - arg names (mode, snap_mode) rename to (snap_to, snap_select)
2015-12-01Fix T39935: Duplicate looses active curve splineKevin Mackay
2015-11-23Cleanup: use `rna_enum_` prefix for RNA enumsCampbell Barton
Definitions could shadow local vars.
2015-11-18Cleanup: editor api namingCampbell Barton
- use ED_ prefix for api calls - use ED_*_select_pick for mouse selection (was already done in parts)
2015-11-09Cleanup: avoid incrementing/decrementing id->us outside of BKE_library.Bastien Montagne
We have callbacks for that, they also do some checks and help ensure things are done correctly. Only place where this is assumed not true is blenloader (since here we may affect refcount of library IDs as well...).
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-03Fix buffer overrun lofting nurbsCampbell Barton
2015-08-02parenthisize macro args to avoid errorsCampbell Barton
2015-07-09Curve: change rules wrt active bezierCampbell Barton
Activate the vertex even if only a single handle is selected
2015-07-09Curve selection, de-duplicate & cleanupCampbell Barton
2015-07-08EditCurve: move selection into own fileCampbell Barton
2015-06-21Fix/Cleanup possibility to type insane values in 'add' operators options.Bastien Montagne
Our 'hard limit' values was too often max_int/float here, mis-typing could lead to crash (or infinite hanging) of Blender, see e.g. http://blender.stackexchange.com/questions/32790/blender-forces-computer-to-reboot-after-mistyping-extreme-value-for-resolution-i
2015-05-27Fix T44854: Creating hooks from curve to objects doesn't workSergey Sharybin
The issue was introduced in e529882 by doing wrong range checking.
2015-05-27Use PKey for edit-armature separateCampbell Barton
As used already for mesh & curves. Add confirmation menu for curve & armature, since this isn't such a common operation and undoing leaves object data (long term bug/todo to fix).
2015-05-22Fix second crashing part of T44497, out of bounds access to hookAntony Riakiotakis
modifier data. Unfortunately seems like we also lose the hook mapping by doing this, but this can be fixed later and is probably a separate issue.
2015-05-11GHash: avoid redundant castsCampbell Barton
2015-03-18Select nth option to skip stepsCampbell Barton
Patch T43752 @codemanx, added matching curve option.
2015-03-10Fix crash extruding an empty curveCampbell Barton
2015-02-27cleanup: double promotionCampbell Barton
2015-02-06GHash: no need to malloc iteratorsCampbell Barton
2015-01-26Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).Bastien Montagne
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)' and 'strcmp(foo, bar) == 0' in several places...
2015-01-26Fix T41834: Ctrl+LMB, Extrude Curves 2+ splinesCampbell Barton
Extrude and Ctrl+LMB now support multiple selected vertices. Also maintain active vertices. D964 by Tyler Sliwkanich with own modifications
2015-01-26Curves: BKE_nurb_copy left duplicate arraysCampbell Barton
While callers accounted for this, its quite error prone. Just NULL instead.
2014-11-20Fix T42639, editcurve flags not getting restored on undo.Antony Riakiotakis
Error here could be reproduced by tweaking curve properties such as 2d-3d or fill type and undoing.
2014-11-17ShapeKeys: Add `BKE_keyblock_is_basis` to check whether a given keyblock is ↵Bastien Montagne
used a basis by others. Also fix stupid debug-only error in previous commit.
2014-11-17Cleanup: rename `BKE_key_convert/update` to `BKE_keyblock_convert/update`.Bastien Montagne
We are handling a keyblock here, not a whole key(set). Names are alreay a bit confusing, let's be consistent at least.
2014-11-11UI Refactor T41640Campbell Barton
Make the UI API more consistent and reduce confusion with some naming. mainly: - API function calls - enum values some internal static functions have been left for now
2014-10-28Cleanup: use SELECT flagCampbell Barton
2014-10-28Fix T41041: 'Delete keyframe' removes markers tooCampbell Barton
Operators that trigger UI events (but nothing else) were using 'CANCELLED' making it impossible to tell if an invoke function failed, or opened a menu.
2014-09-01Support more object types scene-scale (on creation)Campbell Barton
- lamp - camera - font - empty & effector Also fix inconsistency with apply transform (modified shape-keys for meshes but not curve/lattice)
2014-08-15Fix T41443: Separate bug with Curves & HooksSergey Sharybin
This solves the crash, but indices might be wrong after the separation. There are loads of other ways to confuse hook indices in both meshes and curves, for now considering this a TODO.
2014-08-01Revert "Fix T41226: Wrong Undo on curves and hooks"Sergey Sharybin
This reverts commit e042c8428f8c0c0a72cdd23d2c058c20ab5745ed. Proper fix will come later, or be declared a TODO.
2014-07-31Fix T41226: Wrong Undo on curves and hooksSergey Sharybin
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-07-18Fix T41039: Hook modifier sometimes fails to retain correct bezier curve ↵Sergey Sharybin
point assignment
2014-07-18Fix wrong index update when removing CV pointsSergey Sharybin
2014-06-26Code cleanup: casts, dead assignment & arg order.Campbell Barton