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-10merged the master branchsoc-2017-vertex_paintDarshan Kadu
2017-02-04Remove flag: `SNAP_OBJECT_USE_CACHE` from snap_contextGermano Cavalcante
Since the cache is created in one way or another, this flag is not really making a difference More details here: D2496
2016-12-08Fix T49872: 3D cursor places with camera shift in ortographic modeJulian Eisel
2016-08-29GPencil: Replace strcpy by BLI_strncpyAntonioya
2016-08-17GPencil: Change ruler line thickness to make it thickerAntonioya
2016-08-16Fix T49097: GP ruler data reinstances GP_Palette ColorAntonioya
If the ruler is saved, a new color was created for each ruler. With the change, a color is created for the first instance, and it reused in the following instances. The default color is the current default color for GP.
2016-08-04Cleanup: Use BKE_gpencil prefixJulian Eisel
This is a good point to change this as grease-pencil-v2 branch was just merged, so I hope merge conflicts with other branches are minimal.
2016-08-04Grease Pencil v2 BranchAntonio Vazquez
Improve current Grease Pencil in order to get a better 2D animation tool. More info in WIKI pages: https://wiki.blender.org/index.php/User:Antoniov Reviewed By: Severin, aligorith, campbellbarton Patch by @antoniov, with edits by @Severin. Differential Revision: https://developer.blender.org/D2115
2016-06-16Fix ruler crash using stale snap-contextCampbell Barton
Since ruler allows other operators to run (such as mode-switching). Only cache snap-context while dragging.
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-14Fix T48426: Use same length for all header message strings.Bastien Montagne
Some languages like Chinese or Japanese take three or four bytes per char... Also fixed some missing translation markers for UI header messages.
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-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.
2015-11-24View3D: move snapping functions out of rulerCampbell Barton
2015-05-04Correct own error in recent quad-view ruler fixCampbell Barton
2015-04-27Fix T44011: Ruler/Knife/Loop-cut fail in quad-viewCampbell Barton
This is a kind of sloppy-focus, resolving long standing bug with loop-cut/knife/ruler /w quad-view. Where activating a tool would lock onto one of quad-views, especially problematic when activating from the toolbar or menus.
2014-11-21Cleanup: typoCampbell Barton
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-11-02Fix for 3D Ruler crash maximizing viewCampbell Barton
2014-10-20Fix T42313: Ruler always measures 0.0Campbell Barton
Passing 'ar' to snapObjectsRayEx would apply a ray-offset.
2014-06-18Revert "Fix flickering when transform snapping in edit mode and cursor is"Antony Riakiotakis
Looks like the cleanest way to handle this is to no do bounding box collision for edit mode at all. But this is easy to enforce This reverts commit 7b5fe4f316234022a0ab761b694cd459ce98db2d. Conflicts: source/blender/editors/transform/transform_snap.c
2014-06-12Fix flickering when transform snapping in edit mode and cursor isAntony Riakiotakis
slightly outside the mesh. Reported by Thomas Beck on irc. Issue here is that the mesh bounding box changes as we are transforming the vertices. Solution is to collide against the initial bounding box. Unfortunately the snapping functions are made in a way that a lot of code needed to be tweaked here, but the change should be straightforward and harmless (famous last words, I know). Ideally we might want to even increase the size of the bounding box a little (as seen in screen space) to allow snapping even in cases where, cursor is slightly outside the bounding box, but since this is not so straightforward to do for all cases, at least for me, leaving this as a TODO.
2014-04-27Code cleanup: const args and arraysCampbell Barton
2014-04-11Code cleanup: use boolCampbell Barton
2014-02-07ListBase API: add utility api funcs for clearing and checking emptyCampbell Barton
2013-12-02Blender Font (BLF): add length argument to string width/height functionsCampbell Barton
This also fixes a crash editing buttons longer then UI_MAX_DRAW_STR
2013-11-25Code Cleanup: rename vars for detecting change to be more consistentCampbell Barton
rename change/is_change/is_changed/modified -> changed also use bools over int/short/char and once accidental float.
2013-10-31remove return argument from wmOperatorType->cancel, was only ever returning ↵Campbell Barton
OPERATOR_CANCELLED.
2013-09-07rename cursor setting functions to make modal set/restore more clearly ↵Campbell Barton
related functions.
2013-07-13fix for missing break statements in switch, some key shortcuts and notifiers ↵Campbell Barton
were falling through when its obviously incorrect to do so.
2013-04-29avoid calling BKE_brush_alpha_get() when project painting onto each pixel,Campbell Barton
also increase the epsilon for ruler thickness offset.
2013-04-25ruler tweak: don't, snap to edit-object, because it didnt work well when ↵Campbell Barton
modifiers are applied in editmode.
2013-04-25ruler snappingCampbell Barton
- draw snap circle to make it more obvious when snapping succeeds. - when not in wire-view, snap to the surface when adding new rulers.
2013-04-25ruler snap adjustmentsCampbell Barton
- when in wireframe mode: don't snap to faces, instead snap to the closest edge/vertex. - when not in wireframe mode: snap to the front-most element (was a problem that it could snap to an edge/vert behind the face) - reduce the distance for selecting ruler points, was too easy to accidentally drag a ruler.
2013-04-24rna api function scene.ray_cast now returns the object and its matrix ↵Campbell Barton
(incase its a dupli).
2013-04-23fix [#34894] Ruler/Protractor: While it's active, one can open the file ↵Campbell Barton
browser for file saving + Crash
2013-04-23fix for issues with rulerCampbell Barton
- disabling ruler snap wasn't setting the points depth back to its previous value before snapping. - adding a new ruler uses the depth of the previous active ruler (fallback to view center as before) - deleting the ruler now sets the prev/next ruler active.
2013-04-18remove snapping for first point added to the ruler.Campbell Barton
its often nice but you can accidentally snap onto far-off objects too which is annoying.
2013-04-14modify snapObjectsRayEx() to use a pointer to 'ray_dist' rather then passing ↵Campbell Barton
the dist, this is to better support multiple calls to ray-cast where only closer distances are accepted.
2013-04-13code cleanup: remove unused string formatting in bli_adddirstrings(), also ↵Campbell Barton
remove unused initializations and comment unused vars.
2013-04-11make scene.ray_cast() behave like object.ray_cast(), add distance arg to ↵Campbell Barton
snapObjectsRayEx().
2013-04-04code cleanup: use bools in UI and WM code, quiet some shadow warnings, ↵Campbell Barton
remove unused function uiEmboss()
2013-04-03new ruler option to be able to interactively measure surface thichness as ↵Campbell Barton
you drag the ruler about. Request from Bart Veldhuizen. Access with Shift+Drag
2013-04-03pass snap arguments so the ruler doesn't have to temp overwrite scene vars.Campbell Barton
also expose snapObjectsRayEx() for more convenient ray-casting about the scene.
2013-04-03use floats for transform snapping distance comparisonsCampbell Barton
2013-03-26replace view3d_get_view_aligned_coordinate with ED_view3d_win_to_3d_int()Campbell Barton
2013-03-21code cleanup: remove double call to BKE_node_instance_key(), rename ruler ↵Campbell Barton
(lots of tools are 3d :)), and redundant assignment.
2013-03-16code cleanup: shadowingCampbell Barton
2013-03-13code cleanup: use const events for modal and invoke operators.Campbell Barton
2013-03-12ruler: disable rotate with ruler drawing, was drawing too pixelated and hard ↵Campbell Barton
to read.