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
2018-03-23Cleanup: stray tabsCampbell Barton
Tabs in middle of code (mostly for no reason / by accident).
2018-03-19Cleanup: split lattice into own libraryCampbell Barton
Was mixed with object functionality.
2018-03-11Cleanup: long linesCampbell Barton
2018-03-08Cleanup: Rename view3d context set functionCampbell Barton
Use common prefix so adding related functions share the prefix.
2018-03-08Cleanup: set the view-context onceCampbell Barton
2018-02-28Cleanup: comment for depth picking code, const argsCampbell Barton
Note that setting `glDepthFunc` isn't important, since 2.8 branch changes this value it might seem like an error however it's harmless in this case - so better make note of this.
2018-02-27Cleanup: remove unused duplicate codeCampbell Barton
2018-02-18Cleanup: add 2d suffix to BLI filesCampbell Barton
Some of these API's can have 3D versions, explicitly name them 2D.
2017-11-19Cleanup: remove BKE_utildefinesCampbell Barton
This was meant to be used for less general macros but was never used. Rename BKE_BIT_TEST_SET to SET_FLAG_FROM_TEST
2017-10-18Cleanup: Use const for RNA EnumPropertyItem argsCampbell Barton
Practically all access to enum data is read-only.
2017-10-16WM: refactor gestures for use as toolsCampbell Barton
Border and circle select wait for input by default. This commit uses bool properties on the operators instead of magic number (called "gesture_mode"). Keymaps that define 'deselect' for border/circle select begin immediately, exiting when on button release.
2017-10-16Cleanup: modal operator border callback namesCampbell Barton
Use same convention as all others. Remove 'select' since these are used for zoom as well.
2017-10-16WM: Don't save mouse-paths to operator historyCampbell Barton
In preparation for modal operators storing their properties, no need to keep mouse-paths around. Also use generic function for lasso properties.
2017-10-16WM: remove hard-coded circle radius memoryCampbell Barton
Replace with operator type 'last_properties'. Also use generic function for circle gesture properties.
2017-03-093D View: wrap GPU_select cache callsCampbell Barton
Avoids including GPU_select and makes it more clear that the cache is needed for view3d_opengl_select calls. Also use typed enum for select mode.
2017-03-093D View: use cache for armature selectCampbell Barton
2017-03-083D View: new nethod of opengl selectionCampbell Barton
Intended to replace legacy GL_SELECT, without the limitations of sample queries which can't access depth information. This commit adds VIEW3D_SELECT_PICK_NEAREST and VIEW3D_SELECT_PICK_ALL which access the depth buffers to detect whats under the pointer, so initial selection is always the closest item. The performance of this method depends a lot on the OpenGL implementations glReadPixels. Since reading depth can be slow, buffers are cached for object picking so selecting re-uses depth data, performing 1 draw instead of 3 (for 24, 18, 10 px regions, picking with many items under the pointer). Occlusion queries draw twice when picking nearest, so worst case 6x draw calls per selection. Even with these improvements occlusion queries is faster on AMD hardware. Depth selection is disabled by default, toggle option under select method. May enable by default if this works well on different hardware. Reviewed as D2543
2017-03-08Cleanup: replace short -> int for selection hitsCampbell Barton
2017-03-08Rename BLI_rct*_init_pt_size -> radiusCampbell Barton
2016-08-24Fix T49148: Blender Crash With B select on Skeleton SketchingSergey Sharybin
2016-06-25GPU: move select index code out of WMCampbell Barton
This avoids bad-level calls.
2016-04-26Minor cleanup in object select codeCampbell Barton
- break when object in hit-buffer. - don't measure distance to object centers that can't be projected. - take pixelsize into account for distance pixel distance limit.
2016-04-26Fix T48203: Pose-Mode overrides Alt-RMB menu selectCampbell Barton
Now always use menu-select when using Alt-RMB
2016-02-06Fix T47204: selection failing directly after disabling multisample in user ↵Brecht Van Lommel
prefs. Now store the multisample setting each window was created with.
2015-11-25Fix T46867: Face-Mask hiding failed on mode switchCampbell Barton
Since GPU refactor, hidden faces are cached. However this needs to be re-calculated when state of hidden faces changes.
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-09-23Fix T46222: Eyedrop picking objects inconsistentlyCampbell Barton
2015-07-11Add WM_framebuffer_to_index_arrayCampbell Barton
Convert buffer to index in one loop, also minor cleanup to backbuf/selection functions. - Use IMB_rectcpy instead of inline pixel copy. - Redundant WM_framebuffer_to_index call.
2015-04-20Cleanup: use ED_view3d_backbuf_* prefixCampbell Barton
2015-04-20Cleanup: use bool /w flag checksCampbell Barton
2015-02-24Fix T43785 crash with border select.Antony Riakiotakis
Naming here is slightly misleading. We have: * Number of elements (objects) that can be picked * Buffer size * Number of integers in buffer. Interestingly enough, bufsize in OpenGL (as far as I could find in examples on the web) and in most of the code refers to the latter and actual buffer size is only used whenever we do allocations on the heap. Added an extra defines here to make things a bit clearer: * MAXPICKELEMS refers to the number of objects that can be picked * MAXPICKBUF refers to the number of integers in the selection buffer Also made all buffers use MAXPICKBUF where some used MAXPICKBUF * 4. That means that some parts of blender will use less space for selection now. MAXPICKBUF is set to 10000 for 2500 object selection, which can be changed at any time, but I think 10000 integers on the stack touches the borders of uglyland anyway.
2014-11-28Cleanup: unused headersCampbell 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-10-21Cleanup: styleCampbell Barton
2014-10-20Fix T42189Antony Riakiotakis
Own mistake - not copying enough data.
2014-09-29Fix T41995: Box selection - Edit mode - Header not updated.Bastien Montagne
2014-09-24gooseberry request:Antony Riakiotakis
Attempt to select closest bones when possible. Occlusion query selection does't support this well because we can't really derive depth information from occlusion tests. May be possible to improve this somewhat in the future.
2014-09-23Fix possible buffer overflow in selection code. We want to copy theAntony Riakiotakis
number of selected data since the offset, not the offset!
2014-07-23Occlusion Query based selection.Antony Riakiotakis
This patch creates an interface for selection mechanisms in opengl. This makes it possible to switch between occlusion query based or select rendermode based selection transparently. This is really useful on graphics drivers that do not accelerate the select rendermode path (some ATI cards are notorious for this, and the new path is used by default there), since occlusion queries are always hardware accelerated due to their use in games. The option can be found under system - selection. Auto just enables occlusion queries for ATI users while the rest of the options enforce one of the two methods always. There is just one known change, previous code enforced nearest bone to always get selected, even when mouse selecting near the same position, I couldn't replicate the behaviour though. patch by me with edits and review by Campbell. Thanks!
2014-07-11WM: add WM_operator_properties_create_ptrCampbell Barton
Call operator types directly and avoid a lookup when their known.
2014-06-23Add ED_paint.h, split out ED_sculpt.hCampbell Barton
also rename some functions to match our convention
2014-06-22WM: set circle select minimum radius to 1Campbell Barton
2014-05-29Add notifiers and reuse update calls for flood fill operatorsAntony Riakiotakis
2014-05-05Stop all dynamic enums using translations (from blend file data)Campbell 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-26Code cleanup: use 'const' for arrays (editors)Campbell Barton
2014-04-11Code cleanup: use boolCampbell Barton
2014-03-12Fix T39123: Border select without "extend" does nor clear selection of ↵Sergey Sharybin
bezier nodes in 3D view This is a regression introduced in fbc7ab30f and caused by the wrong object being passed to the function. Not sure passing editnurb as an argument is a good thing to do..
2014-03-113D Text: textbox selection while in editmodeCampbell Barton
D395 from Henrik Aarnio with some improvements.
2014-03-11View3d: take pixelsize into account for selection distanceCampbell Barton