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-04-11Bring snapping back (Base / BaseLegacy)Dalai Felinto
2017-04-07OpenGL: use PRIM instead of GL enum for immBeginMike Erwin
Getting ready for a Gawain API change... Part of T49043
2017-04-06Gawain: VertexFormat_add_attrib (function name change)Mike Erwin
See intern/gawain for the API change. Other files are updated to use the new name. Also updated every call site to the recommended style: unsigned int foo = VertexFormat_add_attrib(format, "foo", COMP_ ... )
2017-02-22Cleanup: StyleJulian Eisel
2017-02-08Merge branch 'master' into blender2.8Sybren A. Stüvel
# Conflicts: # source/blender/blenloader/intern/writefile.c
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-10-13immediate mode: use new ThemeColor functionsDalai Felinto
2016-09-20immediate mode refactor: walk navigation crossDalai Felinto
2016-08-18NDOF: compile 3D mouse code only if WITH_INPUT_NDOFMike Erwin
When WITH_INPUT_NDOF is disabled, 3D mouse handling code is removed from: - GHOST (was mostly done, finished the job) - window manager - various editors - RNA - keymaps The input tab of user prefs does not show 3D mouse settings. Key map editor does not show NDOF mappings. DNA does not change. On my Mac the compiled binary is 42KB smaller after this change. It runs fine WITH_INPUT_NDOF on or off.
2016-07-08Cleanup: use normalize_v#_lengthCampbell Barton
2016-07-06Replace of (id->lib != NULL) check by meaningful macro.Bastien Montagne
Idea is to replace hard-to-track (id->lib != NULL) 'is linked datablock' check everywhere in Blender by a macro doing the same thing. This will allow to easily spot those checks in future, and more importantly, to easily change it (see work done in asset-engine branch). Note: did not touch to readfile.c, since there most of the time 'id->lib' check actually concerns the pointer, and not a check whether ID is linked or not. Will have a closer look at it later. Reviewers: campbellbarton, brecht, sergey Differential Revision: https://developer.blender.org/D2082
2016-06-03Workaround MSVC errorCampbell 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-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.
2016-04-21Cleanup: math lib use w/ walk modeCampbell Barton
2016-03-28Fix T47958: Crash in Walk or Fly Navigation in Camera mode when invoking ↵Bastien Montagne
from non-3DView region
2016-01-12Fix T47164: [Scene.raycast] - True result when it should be False.Bastien Montagne
We cannot use FLT_MAX as initi distance for raycast... Renamed TRANSFORM_DIST_MAX_RAY to BVH_RAYCAST_DIST_MAX, moved it into BLI_kdopbvh, and use in RNA raycast callbacks (and all other places using that API).
2015-12-02Transform Snap: add optional face index argCampbell Barton
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-10-22BLI_math: axis_angle_to_quat_singleCampbell Barton
Useful to avoid defining a vector for an axis-aligned rotation. Matches axis_angle_to_mat3_single behavior.
2015-09-08typo in last commitCampbell Barton
2015-09-08Fix T45771: Walk mode fails on OSXCampbell Barton
2015-08-25Fix walk navigation: scene unit used even when unit not setDalai Felinto
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-07-21Fix T45361: Camera does not rotate in walk modeCampbell Barton
2015-07-03Walk mode: Add modal shortcuts in UI (header help message).Bastien Montagne
2015-06-01Fix T40621: Tablet in walk mode failsCampbell Barton
Add support for walk mode /w absolute pointing devices.
2015-04-21BLI_string: add BLI_snprintf_rlenCampbell Barton
use when the length of the destination string is needed.
2015-04-07Cleanup: brace placement /w structsCampbell Barton
2014-11-28Cleanup: unused headersCampbell Barton
2014-10-31View3d - walk: expose gravity toggle to keymapDalai Felinto
2014-09-24Cleanup: use float versions of functions when in/output are floatsCampbell Barton
2014-08-13SpellingCampbell Barton
2014-07-11View3D Walk: Use scene gravity instead of hardcoded value (fix T40921)Dalai Felinto
Differential Revision: https://developer.blender.org/D636
2014-07-11View3D Walk: Rename gravity by gravity_state (cleanup)Dalai Felinto
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-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-30Code cleanup: remove redundant CTX callsCampbell Barton
2014-04-12Walk Navigation: no one should fall through the floor ever again (fix #T39561)Dalai Felinto
This could go in 2.70a
2014-03-17UI: Add theme color for viewport overlayCampbell Barton
Was using wire or black in many places, this color is used for cursor, camera guides, transform helper lines. So its possible to have a dark background with light overlay color. Patch D331 by Brita, with some edits.
2014-03-17Code cleanup: comments and typosCampbell Barton
2014-02-22NDOF: fix for view3d ignoring lens values when panningCampbell Barton
image, mce, view2d and view3d now have matching pan speed.
2014-02-19Code cleanup: de-duplicate ndof controls for walk/fly modeCampbell Barton
2014-02-18fix - T38561: Fly mode vs. Walk Mode Navigation Keyboard ControlsDalai Felinto
* QE as up/down to Fly Navigator * Alt as slow modifier to Fly Navigator * Update on Walk header info Note: I left the original RF/Ctrl shortcuts working for fly navigator but they are no longer visible in the header info. So old users will still be using what they were used to, while new ones get used to what walk navigation is using.
2014-02-18NDOF: Fix for fly/walk mode ignoring axis invert optionsCampbell Barton
2014-02-17NDOF: remove bias for translationCampbell Barton
Was noticeable (and annoying) that different axis had different speed, if we want to have axis bias better do as a user preference.
2014-02-12Add header info for the Walk Navigation operatorDalai Felinto
2014-02-12View3d Walk: enable rotation for ndof by defaultCampbell Barton