Sybren A. Stüvel
a9ed50514c
Moved function declarations from BKE_mesh.h → BKE_mesh_runtime.h
2018-06-05 16:59:18 +02:00
Campbell Barton
7436fb2ef1
Merge branch 'master' into 28
2018-06-05 16:36:13 +02:00
Bastien Montagne
481cdb08ed
Cleanup: use new accessors to blendfile path (Main.name).
2018-06-05 16:33:46 +02:00
Bastien Montagne
1d97e948d2
Cleanup: add hleper functions to get filepath from Main.
...
This helps making things clearer and cleaner. Func returning filepath of
G.main is separate, so that we can easily track its usages, and
hopefully deprecate it at some point. Though that usage of G.main is
likely the less evil one, you nearly always want current blendfile path
in those cases anyway.
2018-06-05 16:33:46 +02:00
Campbell Barton
d94df18550
Cleanup: doxy grouping for mesh runtime API
2018-06-05 15:55:16 +02:00
Jeroen Bakker
7a612c3799
LookDev: Fix crash when no world
2018-06-05 15:49:54 +02:00
Campbell Barton
2cc6e06bdb
Error in last commit
2018-06-05 15:21:04 +02:00
Sergey Sharybin
b6d920bbd5
Depsgraph: Fix bug with broken tweak of animated node tree settings
...
With single editing context we can have expected and correct evaluation order
of animation and material update.
2018-06-05 15:11:34 +02:00
Campbell Barton
2891fb645b
3D View: disable manipulators & text w/o overlay
...
Manipulators which aren't explicitly activated via tools are now hidden.
Tool manipulators are kept because it doesn't make sense to interact
with a tool with hidden manipulators.
2018-06-05 14:54:52 +02:00
Campbell Barton
24bd483ee1
Object Modes: Flush COW on mode switching
...
Caused glitch w/ sculpt mode not updating.
2018-06-05 12:48:25 +02:00
Sergey Sharybin
09f780c1b0
Preserve unkeyed changes on undo and file open
...
This partially reverts 5975d6581c .
With single editing context it is more predictable what is unkeyed change is.
2018-06-05 12:35:19 +02:00
Brecht Van Lommel
6d7327f607
Cleanup: simplify studiolight/matcap enum code, remove limit.
2018-06-05 12:23:55 +02:00
Jeroen Bakker
0d47a4d2fe
T55291: Matcaps were reset when loading file
2018-06-05 12:21:41 +02:00
Bastien Montagne
df1d319a79
Static Override: Fix order of operations issue in material slots.
...
*Really* not happy with that kind of constraint, but no choice for
now...
2018-06-05 12:08:18 +02:00
Bastien Montagne
856d36e4b8
Static Override: progresses towards full support for material slots.
...
Material slots are a real pain to get working, due to all the black
magic they do to hide object vs. obdata storage of the material...
Currently hitting an order problem - we need to always set 'link' (to
object or obdata) property of the slot first, before we set its
material... *super-sigh*
2018-06-05 12:08:18 +02:00
Sergey Sharybin
cb42ad8c75
Fix compilation error after recent matcap changes
2018-06-05 12:02:08 +02:00
Sergey Sharybin
cd8613c6e7
Fix T55319: Keyframing issues
...
The issue was that keyframing from menu would tag object for animation
update, which was making object to loose unkeyed changes.
2018-06-05 11:56:46 +02:00
Jeroen Bakker
342dd5a771
Workbench: remove the soft limit for the xray_alpha
2018-06-05 11:45:22 +02:00
Jeroen Bakker
a3815f8777
Workbench: Matcaps T55291
...
- users can use their own matcaps
.config/blender/2.80/datafiles/studiolights/matcap/ folder
- upto 100 matcaps can be loaded
- color of the matcap is influenced by the color of the material/single
color etc. To show the plain matcap use single color at 1.0
- chosing a matcap is at lighting level (flat/studio/matcap)
- matcap only possible in solid mode
- also works for X-Ray mode
As the old matcaps are still in used by the clay engine I didn't remove
it yet.
2018-06-05 11:38:33 +02:00
Campbell Barton
ade710500d
UI: set cursor line width
2018-06-05 11:37:30 +02:00
Campbell Barton
f1a3b68e76
Transform: avoid assert in wpaint mode
2018-06-05 11:31:17 +02:00
Bastien Montagne
b9db470636
Fix stupid mistake in previous commit.
2018-06-05 11:22:43 +02:00
Bastien Montagne
0be9d8db65
RNA/Override: Move override-related property flags to own variable.
...
We are already running out of available flags in main, generic int, and
everytime I work on static override I find new special cases that will
need new specific propflag, so...
2018-06-05 11:11:43 +02:00
Bastien Montagne
99dd3b0156
Baby step towards making overridable materials for objects.
...
Naughty Collections RNACollection of objects is still to be tamed, but
for individual objects should work now....
2018-06-05 11:11:42 +02:00
Campbell Barton
5d628c519b
Transform: improve pose trans/rot/scale guessing
...
Switching the mode was being done per object,
where it should first check all pose bones from all objects.
This also removes code that changes the transform mode
from within the counting function.
This was only needed on transform initialization.
2018-06-05 11:04:12 +02:00
Campbell Barton
0941b8b672
Missing from last commit
2018-06-05 10:13:55 +02:00
Campbell Barton
83db7a0070
Transform: revert use of evaluated objects
...
This is no longer needed.
2018-06-05 09:48:38 +02:00
Campbell Barton
1df228a416
UI: context menu for other editor types
...
D3458 by @billreynish w/ edits.
- Context menu for dope-sheet, graph, image & node editors.
- Add type to contenxt menu header.
- Access with W-Key.
- Change UV-editor weld key binding to Shift-W.
2018-06-05 09:18:00 +02:00
Campbell Barton
80d86f303a
UI: support property split for 'prop_search'
2018-06-05 08:56:14 +02:00
Dalai Felinto
17e9870221
DRW: Fix crashes with instanced data
...
Problem introduced on 101c277e3d .
2018-06-04 19:17:29 +02:00
Campbell Barton
6fee105943
Cleanup: correct menu name
2018-06-04 19:09:52 +02:00
Campbell Barton
da53c3f020
Merge branch 'master' into blender2.8
2018-06-04 18:50:14 +02:00
Campbell Barton
58e8c71cbd
Cleanup: strip ghost trailing space
2018-06-04 18:47:57 +02:00
Germano
c8af234f85
Fix T55325: Revert "Always get a reference point when snapping with the projected elements option enabled."
...
This reverts commit 0864a4c1ea .
That way it's best for retopology.
2018-06-04 13:33:19 -03:00
Campbell Barton
84becb870f
Merge branch 'master' into blender2.8
2018-06-04 17:58:07 +02:00
Campbell Barton
747534af00
Particle System: move data creation into RNA update
...
Relying on evaluation to initialize data causes issues w/ 2.8.
2018-06-04 17:55:19 +02:00
Brecht Van Lommel
ce5e9b599c
Fix Python UI error with Eevee and hemi lamps.
2018-06-04 17:36:02 +02:00
Brecht Van Lommel
784a3ccf79
Fix hang rendering with motion blur.
2018-06-04 17:36:02 +02:00
Clément Foucault
101c277e3d
Workbench: Shadows: Fix cap being clipped by far plane.
...
This was the last remaining problem with shadow volumes (that I know of).
Only extrude until we hit the far plane.
2018-06-04 17:33:34 +02:00
Campbell Barton
349d416949
Tool System: refresh tools after undo
2018-06-04 16:41:03 +02:00
Sergey Sharybin
18e8350cd1
Cleanup: Hopefully more clear name
2018-06-04 16:22:36 +02:00
Clément Foucault
bda0175984
DRW: Fix leak from the wireframe drawing.
2018-06-04 16:04:18 +02:00
Clément Foucault
570804882d
Wireframe: Lower line thickness and front color blending.
2018-06-04 16:04:18 +02:00
Campbell Barton
4b5670ac11
Cleanup: redundant headers
2018-06-04 16:03:52 +02:00
Sergey Sharybin
3b4c7a8c9b
Weight paint: Use helper function to get original mesh
...
Makes it one line to get needed mesh, no code duplication. And can easily
update asserts and tighten the nuts.
2018-06-04 15:49:11 +02:00
Sergey Sharybin
0e8edbbc01
Add utility functions to get different "levels" of evaluated/original mesh
2018-06-04 15:48:37 +02:00
Sergey Sharybin
2b22a61152
Depsgraph: Only store original mesh pointer for mesh object
2018-06-04 15:24:41 +02:00
Campbell Barton
52f9023fbf
Fix weight paint crash
...
The PBVH was referencing runtime custom data which was freed on refresh.
2018-06-04 15:18:48 +02:00
Sergey Sharybin
07f0046203
Fix crash when making objects to share same mesh
...
Make it more reliable and predictable way of getting pointer to
an original mesh which came from copy-on-write engine.
Related change: made it (hopefully) more clear name for flags.
2018-06-04 15:17:16 +02:00
Clément Foucault
1dc31f5b98
GPU: Fix missing case of new radeon on xorg.
...
This was causing issue with shader compilation.
2018-06-04 15:15:00 +02:00