Campbell Barton
7fcdccbb6c
Fix vertex slide regression from multi-edit
...
- Invalid casts.
- Leaked memory on mode switching.
2018-04-26 10:18:03 +02:00
Jeroen Bakker
ba9b01d3c0
Merge branch 'blender2.8-workbench' into blender2.8
2018-04-26 08:47:28 +02:00
Jeroen Bakker
badab5cb7d
Workbench: Hair rendering
2018-04-26 08:46:58 +02:00
Jeroen Bakker
6c608b2f8a
Workbench: Environment Light
...
- Changed defaults
- Updated render panel
2018-04-26 08:31:14 +02:00
Campbell Barton
4afbbb8cf9
UI: correct toolbar w/ text display
...
Missed in tuple to dict refactor.
2018-04-26 08:18:41 +02:00
Campbell Barton
f7d9db5e68
Missed last commit
2018-04-26 08:10:52 +02:00
Campbell Barton
52454f1290
UI: fix toolbar naming collision bug
...
Active tool name needed to be unique from all other tools.
This caused problems since different modes have different tools with the
same name (Armature/Mesh click to extrude for eg).
Tool names now only need to be unique per mode.
2018-04-26 08:09:03 +02:00
Jeroen Bakker
27d837a6ac
Workbench: Shader compilation
2018-04-26 08:06:22 +02:00
Jeroen Bakker
e4ee23f780
Merge branch 'blender2.8' into blender2.8-workbench
2018-04-26 07:52:09 +02:00
Campbell Barton
3e2edb160f
UI: update tool docstring
...
Also assert on invalid tool definitions.
2018-04-26 07:39:15 +02:00
Campbell Barton
37ca6ef7d8
UI: use dict for tool definitions
...
Using tuple was becoming too cryptic - new settings needed to be added
last and the purpose of each wasn't very clear.
2018-04-26 07:31:39 +02:00
Campbell Barton
db68166ed8
UI: update icons from @billreynish
2018-04-25 22:03:47 +02:00
Campbell Barton
c509922605
UI: use a wider minimum menu width
...
Icon only buttons with menus would be too narrow,
especially buttons for selecting tools.
2018-04-25 21:54:29 +02:00
Jeroen Bakker
6c1a121aef
Workbench: normal packing
...
Normal packing. The sign is stored in the A of the color buffer.
if the A == 1.0 the normal should be inverted. before use.
The reason is that packing has more precision for frontfaces, than for
backfaces
2018-04-25 21:33:59 +02:00
Campbell Barton
8430249791
UI: shrink operator menu hold triangle a little
2018-04-25 21:24:55 +02:00
Campbell Barton
7a67bb7018
UI: workaround for text & icon alignment
...
Blender's icons weren't written to draw different sizes.
For now ifdef in a hack to show toolbar icons larger.
2018-04-25 21:02:50 +02:00
Campbell Barton
700012b66e
UI: icon-only hold popup uses region alignment
...
Gives nicer tool popups for icon only buttons.
2018-04-25 20:51:49 +02:00
Campbell Barton
81f19b0c5f
Fix selection with image planes
2018-04-25 19:01:41 +02:00
Joshua Leung
ce7c6e3894
Multi-Pose: Port POSE_OT_select_mirror
2018-04-25 18:35:20 +02:00
Clément Foucault
46bfdb48a1
WM: Add GHOST lazy init for background mode.
...
This allows for background rendering with EEVEE and other opengl render
engine.
I've only tested it on Linux for the moment so I can't say about other
platforms.
We do lazy init because we cannot assume we will need Ghost for rendering
before having parsed all arguments and we cannot know if a script will
trigger rendering. This is also because it currently does not work without
any display server (blender will crash).
2018-04-25 17:43:18 +02:00
Clément Foucault
56fbdd7908
GHOST: Fix missing glXCreatePbuffer initialisation.
...
For some reason this happened if no windows are created before creating an
offscreen context.
2018-04-25 17:43:18 +02:00
Clément Foucault
284dbd56df
GHOST: GLX: Remove old version check.
2018-04-25 17:43:18 +02:00
Clément Foucault
5337f66e81
EEVEE: UI: Add missing separator.
2018-04-25 17:43:18 +02:00
Clément Foucault
d19dc5f891
EEVEE: UI: Merge the custom parallax checkbox with the panel title.
2018-04-25 17:43:18 +02:00
Campbell Barton
0113693129
Merge branch 'master' into blender2.8
2018-04-25 17:27:23 +02:00
Campbell Barton
f69feb4957
UI: optionally pass icon size to widget_draw_icon
...
No functional changes.
2018-04-25 17:26:45 +02:00
Sergey Sharybin
e584f3d8d2
Depsgraph: Don;t use copy actions flag
...
Is useless without main.
2018-04-25 17:00:41 +02:00
Sergey Sharybin
99c5bd0cd9
Merge branch 'master' into blender2.8
2018-04-25 17:00:19 +02:00
Sergey Sharybin
89bcc80c25
Library: Add assert to catch unsupported copy flags combination
...
Thanks Bastien for review!
2018-04-25 16:59:35 +02:00
Jeroen Bakker
fa43886690
Workbench: make normal packing optional
2018-04-25 16:57:18 +02:00
Sergey Sharybin
75e0767849
Merge branch 'master' into blender2.8
2018-04-25 16:35:11 +02:00
Sergey Sharybin
a153acde1d
Depsgraph: Introduce flag top indicate scene is evaluating for a new frame
2018-04-25 16:34:55 +02:00
Sergey Sharybin
e5633114cd
Depsgraph: Preserve CoW ID recalc flags
...
Previously they would have been replaced with flag from original
datablock, which is not what we want.
2018-04-25 16:34:55 +02:00
Sergey Sharybin
29631ff013
Depsgraph: Ensure we only expand scene datablock on evaluation
...
Previously it could have happened on every request to evaluated scene
or view layer.
This commit also removes expansion of view layer and scene from iterator.
Iterator is not to be used before depsgraph is evaluated.
2018-04-25 16:34:55 +02:00
Sergey Sharybin
09da47b67a
Depsgraph: Avoid hash lookup for every evaluated scene query
...
Cache pointer to evaluated scene datablock on relations build time,
that pointer never changes after that.
2018-04-25 16:34:55 +02:00
Sergey Sharybin
331e97bcf3
Depsgraph: Fix missing relations in array modifier
...
Found by Dr. Sybren while working on modifiers port.
2018-04-25 16:34:01 +02:00
Jeroen Bakker
5f97331ffc
Workbench: Added studio lighting to view layer
2018-04-25 15:59:15 +02:00
Brecht Van Lommel
a9d3f9f54d
Revert "UI: fix inconsistency in button rounding when zooming in."
...
This isn't working well when zoomed out in the properties editor,
we should be taking into account properties editor zoom level.
This reverts commit 1ba91ae2c0 .
2018-04-25 15:42:41 +02:00
Campbell Barton
cc7460eaa4
Fix multi-edit mode on file load
...
Setting up the initial object mode would change objects which were
already moved into their mode along with the active object.
2018-04-25 15:29:20 +02:00
Campbell Barton
4b8d7a143e
Merge branch 'master' into blender2.8
2018-04-25 14:54:34 +02:00
Campbell Barton
13b6867d1f
CDDM: correct (disabled) logic in merge verts
2018-04-25 14:53:44 +02:00
Campbell Barton
cdfc4c0d1d
Search local before system path
...
This works in both cases,
where system path would return a path even when it's missing.
2018-04-25 14:13:32 +02:00
Jeroen Bakker
c392f2448c
Merge branch 'blender2.8' of git.blender.org:blender into blender2.8
2018-04-25 13:44:45 +02:00
Sergey Sharybin
a8f114258a
Merge branch 'master' into blender2.8
2018-04-25 13:35:38 +02:00
Dalai Felinto
0357493033
Fix T54806: Editors drawing glitch when using lasso selection
...
We should always reset to default glBlendFunc after done drawing.
2018-04-25 13:08:34 +02:00
Jeroen Bakker
74b0976926
Merge branch 'blender2.8-workbench' into blender2.8
...
Support of hair in workbench
2018-04-25 13:08:02 +02:00
Campbell Barton
fe149da993
Edit Mesh: don't recalc all meshes w/ extrude
2018-04-25 13:06:03 +02:00
Sergey Sharybin
9e3e648a08
Depsgraph: Clarify python API
...
Follow same naming convention as for C:
- Original data is named without any extra prefix/suffix.
- Evaluated data is named with _eval suffix.
2018-04-25 13:04:14 +02:00
Jeroen Bakker
5345f28229
Workbench: Enabled Hair rendering
2018-04-25 13:00:18 +02:00
Campbell Barton
53dc251fd3
Remove developer exception hack
...
This caused too much trouble, also it's possible users run with
'release' in their CWD causing issues.
Developers can symlink "release/" to "bin/2.79".
2018-04-25 12:54:27 +02:00