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-10-18Cleanup: Use const for RNA EnumPropertyItem argsCampbell Barton
Practically all access to enum data is read-only.
2017-10-14Edit Mesh/Curve: Median center for click extrudeCampbell Barton
Was using bound-box center which depends on rotation.
2017-10-14Correct bezier curve assertCampbell Barton
Bezier curves should have v-points zero'd.
2017-09-213D Text: Make Ctrl Backspace/Del delete wordsCampbell Barton
Matches text-editor, console & text-button.
2017-09-21Fix T52860: 3D Text crashes w/ Ctrl BackspaceCampbell Barton
2017-08-05View3D: expose normal from depth publiclyCampbell Barton
2017-06-02Cleanup: styleCampbell Barton
2017-04-29Curve Fitting: minor change to re-fitting methodCampbell Barton
Avoid calculating a new split-index when re-fitting. While checking if a knot can be removed, the index with the highest error can be used as a candidate to replace the knot (in the case it can't be removed).
2017-04-15Fix T51149: Joining curves allows 2D curves in 3DCampbell Barton
2017-02-22Fix T50745: Shape key editing on bezier objects broken with Rendered ↵Bastien Montagne
Viewport Shading So... Curve+shapekey was even more broken than it looked, this report was actually a nice crasher (immediate crash in an ASAN build when trying to edit a curve shapekey with some viewport rendering enabled). There were actually two different issues here. I) The less critical: rB6f1493f68fe was not fully fixing issues from T50614. More specifically, if you updated obdata from editnurb *without* freeing editnurb afterwards, you had a 'restored' (to original curve) editnurb, without the edited shapekey modifications anymore. This was fixed by tweaking again `calc_shapeKeys()` behavior in `ED_curve_editnurb_load()`. II) The crasher: in `ED_curve_editnurb_make()`, the call to `init_editNurb_keyIndex()` was directly storing pointers of obdata nurbs. Since those get freed every time `ED_curve_editnurb_load()` is executed, it easily ended up being pointers to freed memory. This was fixed by copying those data, which implied more complex handling code for editnurbs->keyindex, and some reshuffling of a few functions to avoid duplicating things between editor's editcurve.c and BKE's curve.c Note that the separation of functions between editors and BKE area for curve could use a serious update, it's currently messy to say the least. Then again, that area is due to rework since a long time now... :/ Finally, aligned 'for_render' curve evaluation to mesh one - now editing a shapekey will show in rendered viewports, if it does have some weight (exactly as with shapekeys of meshes).
2017-02-22Cleanup: remove unused orig_nu from keyIndex ghash of editcurves.Bastien Montagne
2017-02-17Fix T50614: Curve doesn't restore initial form after deleting all its shapekeysBastien Montagne
Logic of handling shapekeys when entering and leaving edit mode for curves was... utterly broken. Was leaving actual curve data with edited shapekey applied to it.
2016-12-08Fix T49872: 3D cursor places with camera shift in ortographic modeJulian Eisel
2016-09-19UI Messages: Consistent spelling of term "data-block"Julian Eisel
Was using a bunch of different spellings, mostly "data-block" though, so went with that one (would have been my #1 choice anyway ;) )
2016-07-25Curve Drawing: use more closely spaced samplesCampbell Barton
Re-fitting makes better use of more samples.
2016-07-25Curve Drawing: Use cyclic for stroke with near start/end pointsCampbell Barton
2016-07-25Curve Drawing: Add option to use new refit methodCampbell Barton
2016-07-25Curve Fitting: Add alternate 'refit' methodCampbell Barton
This is an alternative method for fitting a curve which incrementally simplifies the curve, then re-fits. Generally gives better results, also improves corner detection.
2016-07-22use bool consistently, fix redundant conditionalMike Erwin
Redundant conditional (line 939) found with PVS-Studio T48917 There’s still a lot of true/false, 1/0, SELECT/DESELECT usage nearby. Not a problem, just confusing to read.
2016-07-21Cleanup: spellingCampbell Barton
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-07-04Fix a few compiler warnings on OS X / clang.Brecht Van Lommel
Two were actual bugs, though they existed only in unused code: * In Freestyle it was unintentionally copying a scene rather than referencing it. * In BLI_array_store_is_valid there was use of uninitialized memory.
2016-06-13Curve Fitting: add high-quality flagCampbell Barton
When this flag is set - even when the curve error is under the threshold, keep attempting a better fit. Enable this for freehand drawing, since it gives nicer results and isn't noticeably slower.
2016-06-083D Text: Use BLI_array_store for undo storageCampbell Barton
2016-06-083D Text: Store separate arrays for undo dataCampbell Barton
Don't store maximum length of text per undo step, or attempt to pack all data in a single array. Was storing 32766 characters per undo step, irrespective of actual text length.
2016-06-083D Text: move undo into its own fileCampbell Barton
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-08Cleanup: warningsCampbell Barton
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-04Curve Draw: option to apply absolute offsetCampbell Barton
Offset used curve radius, which isn't useful drawing without any bevel radius.
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-30Fix for typo comparing double eventsCampbell Barton
Also remove doubles when filling the final array.
2016-04-25UI messages fixes - no final point ;)Bastien Montagne
2016-04-22Fix curve snap to surface w/ offset & taperCampbell Barton
Adjusting the pressure wasn't re-adjusting the offset.
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-22Cleanup: warnings (double promote, string format)Campbell Barton
2016-04-15Curve draw fix w/ surface offset + only-first enabledCampbell Barton
In this case the initial offset needs to be applied to the rest of the stroke.
2016-04-15New freehand curve drawing toolCampbell Barton
- Access with Shift-LMB or from the 'Create' toolbar tab. - Uses curve fitting for bezier curves, with error and corner angle options. - Optional tablet pressure to curve radius mapping. - Depth can use the cursor or optionally draw onto the surface, for the entire stroke or using the stroke start. - Stroke plane can optionally be perpendicular to, or aligned to the surface normal. - Optional radius tapering and for start/end points. - Supports operator redo and calling from Python.
2016-04-12Cleanup: use boolCampbell Barton
2016-04-04Fix curve editmode adding 3D primitives w/ 2D curvesCampbell 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.
2016-03-28Fix T47969: Select Random always uses same seedCampbell Barton
Increment the seed on each use, otherwise calling again selects the same order, unless you manually adjust the seed.
2016-02-12Fix: OSX - Cmd + A doesn't work for Font objects editingDalai Felinto
Since Cmd + A works elsewhere, it should work during font objects editing as well. There is still a mysterious issue with Cmd + Z not working for UNDO the edited text in OSX (probably GHOST related).
2016-02-12Integrate font objects copy/paste with system clipboardDalai Felinto
When pasting text, the style (bold, material, ...) is maintained, if it was originally copied from Blender. This fixes the issue of missing copy/paste options for font objects (they were present back in Blender 2.49) Reviewers: Severin, campbellbarton, brecht