57405054b2
Fix T54836: Select sharp edges doesn't flush to faces
2018-04-26 14:32:35 +02:00
34ab90f546
Depsgraph: remove EvaluationContext, pass Depsgraph instead.
...
The depsgraph was always created within a fixed evaluation context. Passing
both risks the depsgraph and evaluation context not matching, and it
complicates the Python API where we'd have to expose both which is not so
easy to understand.
This also removes the global evaluation context in main, which assumed there
to be a single active scene and view layer.
Differential Revision: https://developer.blender.org/D3152
2018-04-16 19:55:33 +02:00
292a2802ad
Cleanup: indentation
...
Indent lines for multi object editing, no functional changes.
Also strip trailing space from indented regions.
2018-04-16 17:58:26 +02:00
bfc9d426bb
Multi-Object Editing
...
This adds initial multi-object editing support.
- Selected objects are used when entering edit & pose modes.
- Selection & tools work on all objects however many tools need porting
See: T54641 for remaining tasks.
Indentation will be done separately.
See patch: D3101
2018-04-16 17:56:50 +02:00
1c24c04e60
Remove workspace object mode, reverts changes w/ 2.8
...
This caused too many problems syncing object modes
with multiple objects/windows/workspaces, see: D3130 for details.
2018-04-05 18:21:14 +02:00
48eaddfae0
Missed in last merge
2018-04-03 18:22:05 +02:00
9009622b54
Merge branch 'master' into blender2.8
2018-03-14 18:10:31 +01:00
342593f124
Cleanup: rename BLI_array_count -> len
...
Match naming convention used everywhere else.
Count should only be used when this isn't directly accessible.
2018-03-15 01:53:20 +11:00
d430d12123
Merge branch 'master' into blender2.8
2018-03-14 18:08:37 +11:00
8803c5ca5d
Cleanup: use sections for editmesh tools/select
2018-03-14 17:54:45 +11:00
585208e0e9
Merge branch 'master' into blender2.8
2018-03-14 02:15:37 +11:00
be25a0faa7
Cleanup: pass selectmode directly
...
Pass instead of editmesh or toolsettings.
Needed for multi edit-mode
2018-03-14 02:08:29 +11:00
9342f55d12
Merge branch 'master' into blender2.8
2018-03-08 17:54:52 +11:00
ecab7bef69
Cleanup: Rename view3d context set function
...
Use common prefix so adding related functions share the prefix.
2018-03-08 17:30:24 +11:00
d59627d361
Merge branch 'master' into blender2.8
2018-03-08 02:03:36 +11:00
118fb9f1f7
EditMesh: pass object data to notifiers
...
Both were being passed in different parts of the code,
use object data for consistency.
2018-03-08 01:49:30 +11:00
5db950e860
Cleanup: use workspace for object_mode when possible
2018-02-09 22:14:39 +11:00
c7fecab2ef
Object Mode: Use eval_ctx mode for drawing, paint & modifiers
2018-02-06 18:03:28 +11:00
6734bb1faf
Merge branch 'master' into blender2.8
...
# Conflicts:
# source/blender/editors/mesh/editmesh_select.c
2017-12-05 11:19:47 -02:00
70c2d8a1a2
Fix T53469: Make sure that edges are drawn in the backbuff whenever you are looking for the nearest edge
...
Caused by rB9f5bf19
2017-12-05 11:13:53 -02:00
3b3e612752
Merge branch 'master' into blender2.8
2017-12-04 15:15:23 +01:00
9f5bf197a0
Edit Mesh Selection: Draw the backbuff of edge selection only when requested
...
And make sure the width is 1
2017-12-04 12:05:06 -02:00
27ab054bad
Merge branch 'master' into blender2.8
2017-10-19 16:30:20 +11:00
3859f5ec28
Docs: correct descriptions
2017-10-19 11:09:27 +11:00
ec2bbc90e7
Merge branch 'master' into blender2.8
2017-10-18 17:09:41 +11:00
ab7ebf2b10
Cleanup: Use const for RNA EnumPropertyItem args
...
Practically all access to enum data is read-only.
2017-10-18 16:04:07 +11:00
1b462e5a51
Pass EvaluationContext instead of bContext
...
2.8x branch added bContext arg in many places,
pass eval-context instead since its not simple to reason about what
what nested functions do when they can access and change almost anything.
Also use const to prevent unexpected modifications.
This fixes crash loading files with shadows,
since off-screen buffers use a NULL context for rendering.
2017-08-16 12:46:04 +10:00
1c4c288727
Pass EvaluationContext argument everywhere
...
Note that some little parts of code have been dissabled because eval_ctx
was not available there. This should be resolved once DerivedMesh is
replaced.
2017-07-21 14:47:26 +02:00
c425653f16
Set face-map to active when selecting
...
It was annoying have to use select operator to know which facemap
applies to the active face. This behavior follows materials.
2017-07-21 15:50:58 +10:00
86b7698a3e
Merge branch 'master' into blender2.8
2017-07-13 17:21:11 +10:00
d3f7b04f04
Fix T51100: Vertex pick fails after extrude
2017-07-13 14:13:59 +10:00
3c703df327
Correct select-similar end value
2017-06-01 19:41:19 +10:00
8cf5eaa2ba
Add Face-Map to select similar
...
Handy for setting up face-maps,
also allows selecting all faces with no assigned map.
2017-06-01 16:42:14 +10:00
7a9ad029dd
Remove TexFace, per-face images
...
TexFace complicates the now more popular shading pipeline by having
per-face images, see: T51382 for details.
To keep the ability to select a per-material edit-image
(used with UV-mapping workflow), the material now stores an image
which will be set when changing images in edit-mode.
This is used as a bake-target when not using Cycles too.
2017-05-24 23:38:15 +10:00
8125271ddb
Cleanup: rename functions in BLI_bitmap_draw_2d
2016-10-26 23:24:19 +11:00
3e36cbb3de
Cleanup: move bitmap drawing into its own module
...
Bitmap drawing is out-of-scope for a general math API,
move to BLI_bitmap_draw_2d.
2016-10-26 20:11:09 +11:00
0a026033ae
BMesh: make toolflags optional
...
Saves 8 bytes per vert/edge/face.
Gives overall ~20-25% memory saving for dyntopo sculpting
and modifiers that use BMesh.
2016-07-01 19:29:22 +10:00
935998312c
Fix T48085: Select linked w/ seam delimit gives random results
...
This changes behavior so seams aren't used for the bmesh walker.
2016-04-25 18:44:11 +10:00
28ca3ebc5f
Fix T47969: Select Random always uses same seed
...
Increment the seed on each use,
otherwise calling again selects the same order, unless you manually adjust the seed.
2016-03-29 01:24:57 +11:00
e830334357
Math Lib: use x-span for fill_poly_v2i_n callback
...
Instead of running the callback per-pixel,
pass the x-span to the callback.
2016-01-08 23:35:34 +11:00
eed28a1db8
Select mirror multiple axis support
...
Previously you could only select mirror on X axis,
now support mirroring on multiple axis as well as more than one
(for mesh and lattice data).
2016-01-07 20:57:03 +11:00
193b38cc47
Remove select-next-loop operator
...
Taken from original bmesh-branch but doesn't give useful results
(misses selection flushing).
2016-01-04 15:03:18 +11:00
c6e8353462
Fix possible invalid-index use /w link/path select
2015-12-28 21:26:02 +11:00
d020b4ca91
BMesh: extract int/bmesh element access funcs.
...
Support getting an vert/edge/face from a single index, useful for operator redo.
2015-12-27 18:05:34 +11:00
f820c45534
WM: add checker_interval utility functions
2015-12-27 18:01:11 +11:00
b3e94791d3
Typo in last commit
2015-12-23 15:11:54 +11:00
21b91bc764
Select Linked: only use seam delimit for faces
...
Delimiting on seams was only ever intended for face selection,
Previously this option didn't work for vertices,
now it's fixed the defaults aren't right for vertex/edge select-linked.
Add a workaround that bypasses operator-defaults - since this is such a rare case.
2015-12-23 15:08:58 +11:00
532c8be974
Fix error in shadowing cleanup (wrong pointer free)
2015-11-26 08:46:38 +11:00
48b1656a6c
Cleanup: shadowing (editors)
2015-11-23 17:40:50 +11:00
676d790d29
Cleanup: use rna_enum_ prefix for RNA enums
...
Definitions could shadow local vars.
2015-11-23 17:40:09 +11:00