Campbell Barton
7721886ead
Fix T53544: Crash drawing scene w/o world
2018-12-18 13:56:26 +11:00
Campbell Barton
ac80ceae77
Correct missing NULL check in recent commit
2018-12-18 13:49:09 +11:00
Campbell Barton
7e9f76944c
Fix T59461: Follow active quad asserts
2018-12-18 13:35:43 +11:00
Campbell Barton
08f15433ba
GPencil: Cancel w/ RMB click
...
RMB is used to cancel almost everywhere in blender, not confirm.
2018-12-18 13:03:34 +11:00
Campbell Barton
7eaa0b1797
Fix T59366: gpencil eraser shows w/ shape tool
2018-12-18 13:00:57 +11:00
Clément Foucault
a68edaf11d
Mesh Batch Cache: Port vertex paint surface to batch request
2018-12-18 02:19:52 +01:00
Clément Foucault
bcf390a6c3
Mesh Batch Cache: Port weight paint surface to batch request
2018-12-18 02:19:52 +01:00
Clément Foucault
8ded149bfc
DRW: Polygon Offset: Also offset lines and points
2018-12-18 02:19:52 +01:00
Clément Foucault
6a1315d6e7
Weight Paint Overlay: Refactor wire drawing
...
This reduce the number of batch/data needed. Stores a select/visiblee
flag inside the vert/loop normals.
2018-12-18 02:19:52 +01:00
Campbell Barton
4fceaf3848
Fix gizmos showing for non-visible objects
...
Active object gizmos were showing even when the object wasn't visible
(local view or with their object type disabled).
2018-12-18 11:59:29 +11:00
Campbell Barton
7aeb24e037
Fix multi-object state on load
...
D4091 by @zazizizou
2018-12-18 10:22:42 +11:00
Campbell Barton
879c966598
Transform: option to use incremental snapping
...
This resolves this issue where users would enable a snapping mode
besides incremental (vertex for eg), then notice strange behavior w/
rotate and scale.
While this ability can be useful, it's quite an obscure use case.
Now changing snap-modes keeps rotate and scale using incremental snap,
with the option for these modes to be affected by other snapping modes.
D4022 by @kioku w/ own minor edits.
2018-12-18 10:08:23 +11:00
William Reynish
779e252298
UI: use icons for text edit copy/paste
2018-12-18 08:41:06 +11:00
William Reynish
7312e48ae4
UI: Extend context menu to check current selection
...
- This extends context menus, checking the selection in some cases
to conditionally show operators.
- When nothing is selected, add, paste .. etc are added to the menu.
- Use columns when mixed mesh modes are used (vert/edge/face).
- Move armature naming operators into sub-menu.
See D4043
2018-12-18 08:12:11 +11:00
Campbell Barton
54f9e142df
RNA: Add Mesh.count_selected_items()
...
Needed for context menu checks.
2018-12-18 07:36:29 +11:00
Sebastian Parborg
1eafa91f64
Fix T59424: color wheel snaps to center, losing hue when value is zero.
...
Differential Revision: https://developer.blender.org/D4090
2018-12-17 19:18:16 +01:00
Antonioya
f6a77a759b
Fix error when Blender starts - variable not initializated
2018-12-17 19:09:27 +01:00
Antonioya
08e6948da5
GP: Change order of primitive buttons
...
Group them in a more logic way.
2018-12-17 19:03:46 +01:00
Clément Foucault
144178bacf
DRW: Fix vertex paint using original object for batch cache
2018-12-17 17:11:45 +01:00
Clément Foucault
4cd558b711
Mesh Batch Cache: Port Texture paint wires to new batch request
2018-12-17 17:11:45 +01:00
Clément Foucault
7ac49a07c6
Mesh Batch Cache: Port Texture paint batches to new batch request
2018-12-17 17:05:57 +01:00
Clément Foucault
9bb70e59b8
Curve Batch Cache: Fix issue with cd_used
...
cd_used needs to be the combination of generated data.
2018-12-17 17:05:57 +01:00
Clément Foucault
36cc42e796
Mesh Batch Cache: Optimization & Refactor shaded surface support
...
This now only upload data per loops to the GPU, making use of index buffer
to draw polygon. This make use of the vertex cache, speed up renders
and saves a lot of vram.
Update performance is also slightly faster and can even be improved further
by updating only uvs or vcol independently.
This commits breaks texture paint batches. It will be added back in another
commit.
2018-12-17 17:05:57 +01:00
Clément Foucault
bc74e48680
Fix T59373: Background Colors don't match in Workbench renderer
2018-12-17 17:05:57 +01:00
Clément Foucault
29877fb1a4
Workbench: Fix srgb texture not being color managed in texture color mode
2018-12-17 17:05:57 +01:00
Sergey Sharybin
0d511e05d3
Cleanup: Fix typo in comment
2018-12-17 16:34:08 +01:00
Antonioya
4f220cd1cd
GP: Change Primitive manipulator to secondary Gizmo color
2018-12-17 16:26:25 +01:00
Philipp Oeser
37d09827c6
Fix T59112: bone pinning error
...
Reviewers: angavrilov, brecht
Maniphest Tasks: T59112
Differential Revision: https://developer.blender.org/D4057
2018-12-17 15:13:29 +01:00
Jacques Lucke
6dcf788d12
Fix T59493: view selected in GP edit mode does not take obmat into account
2018-12-17 15:03:20 +01:00
Antonioya
9b80c70fc5
GP: Change Primitive manipulator color
2018-12-17 14:48:10 +01:00
Jacques Lucke
bb58354232
Fix T59490: wrong curve handle lines
2018-12-17 14:34:32 +01:00
Bastien Montagne
ce3d00b9b7
Fix T59404: Mistake in recent EdgeHash refactor broke edge generations in mesh validate code.
2018-12-17 14:28:29 +01:00
Sergey Sharybin
60a5559b6c
Correct modifier stack validation
2018-12-17 12:44:48 +01:00
Philipp Oeser
86e6901662
Fix T59172: Blender 2.7x keymap error when setting pivot point
...
- only call pivot/orientation pies in non-legacy mode (had duplicate
entries)
- space_data.pivot_point > tool_settings.transform_pivot_point
Reviewers: brecht
Maniphest Tasks: T59172
Differential Revision: https://developer.blender.org/D4088
2018-12-17 12:42:47 +01:00
Sergey Sharybin
a84c823b89
Fix T58652: Crash editing shape keys weirdness with instances
...
This is a second attempt to get the crash fixed. The original fix
worked, but it was reverted by d3e0d7f082 .
Now the logic goes as:
- All pointers which we can not have shared (the ones which are
owned by the runtime) are cleared.
- The rest of runtime stays untouched.
This seems to be enough to keep particles happy.
2018-12-17 12:33:37 +01:00
Sergey Sharybin
dcc11360c6
Remove some files restored in Game Engine
...
Most likely was caused by bad resolution of recent merge conflict.
2018-12-17 11:53:54 +01:00
Antonioya
7d36a2a775
Fix T59483: Grease Pencil Additive Drawing mode doesn't work with shapes
2018-12-17 11:34:50 +01:00
Clément Foucault
b253fe4d1b
Eevee: Change Bent normal calculation
...
This changes the bent normal effect to be a bit more subtle.
I also tuned down the bent normal blending factor so mesh faceted look may
appear more in occluded regions. this is to increase the fidelity of the
indirect lighting. This blending might be a parameter in the future.
Based the calculation on "Bent Normals and Cones in Screen-space"
by O. Klehm, T. Ritschel, E. Eisemann, H.-P. Seidel
2018-12-17 09:54:24 +01:00
Clément Foucault
99457dd981
GPU: Add Intel HD Graphics 530 to the list of buggy intel gpus
2018-12-17 08:56:38 +01:00
Clément Foucault
30a0f1a2bf
Workbench: Use int to fix compilation issues on certain platform
2018-12-17 08:47:37 +01:00
Campbell Barton
b322ce0847
Context: add objects_in_mode(_unique_data)
...
Needed for Python to easily support multi-object edit/pose modes.
2018-12-17 17:55:18 +11:00
Campbell Barton
8ec7429a70
Merge branch 'master' into blender2.8
2018-12-17 17:32:42 +11:00
Campbell Barton
42b9df5907
Cleanup: use 'tool_settings' name everywhere in UI scripts
2018-12-17 17:22:50 +11:00
Campbell Barton
7fac1bfc20
Context: remove active_gpencil_brush
...
We don't have this for other painting modes,
no need for a special case here.
2018-12-17 17:17:43 +11:00
Campbell Barton
c73958a100
Theme: use grey for blender_light inactive menu text
...
There wasn't enough difference between labels and menu item text which
could be selected.
2018-12-17 16:52:06 +11:00
Campbell Barton
a2a39bada2
Theme: use black for blender_light view-overlay
...
Cursor axes & transform guide contrasting w/ background was too low.
2018-12-17 14:55:19 +11:00
Campbell Barton
21c1c3c59c
3D View: empty image option to show front/back
...
Only back was possible.
2018-12-17 14:49:16 +11:00
Campbell Barton
365ef09815
Correct error in last commit
2018-12-17 14:46:18 +11:00
Campbell Barton
d72d2d4133
DNA: clear / remove deprecated flags
...
- Clear deprecated flags for ID's:
Scene, Sequence, World, Object & Mesh.
- Clear deprecated flags for Spaces: outliner, 3D view & image.
- Remove unused `Mesh.drawflag`
- Remove unused `USER_ALLWINCODECS`, `USER_MMB_PASTE`.
- Remove `V3D_SOLID_TEX` & `V3D_ZBUF_SELECT` - used in a few areas.
- Flip `Object.empty_image_visibility_flag`
(avoids do-version on each new flag)
- Rename 'Backside' -> 'Back' in context of drawing - showing 'Back'
makes sense.
2018-12-17 13:55:06 +11:00
Campbell Barton
9149e89421
Merge branch 'master' into blende2.8
2018-12-17 10:25:40 +11:00