Commit Graph

60547 Commits

Author SHA1 Message Date
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
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
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
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
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
Jeroen Bakker
c392f2448c Merge branch 'blender2.8' of git.blender.org:blender into blender2.8 2018-04-25 13:44:45 +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
Campbell Barton
d7d20b483a Revert "Fix (unreported) broken 'get system path' in some cases."
This reverts commit f1bc0aedde.
2018-04-25 12:48:51 +02:00
Dalai Felinto
1d7bdbd273 Edit Mesh: multi-object extrude_region
Technically this is the following operator:
bpy.ops.view3d.edit_mesh_extrude_move_normal

But this is a Python operator that in turns calls:
MESH_OT_extrude_region_move

Which in turns calls:
* MESH_OT_extrude_region
* TRANSFORM_OT_translate
2018-04-25 12:37:10 +02:00
Campbell Barton
7958a2b40e Docs: correct debug help message 2018-04-25 12:30:11 +02:00
Campbell Barton
2de00f495d Merge branch 'master' into blender2.8 2018-04-25 12:26:26 +02:00
Campbell Barton
9a7f963a02 Cleanup: comments 2018-04-25 12:25:47 +02:00
Jeroen Bakker
fca3dbdba5 Fixed wrong merge 2018-04-25 12:23:44 +02:00
Jeroen Bakker
336abd6fac Merge branch 'blender2.8' into blender2.8-workbench 2018-04-25 12:20:45 +02:00
Jeroen Bakker
3315963f0a Merge branch 'blender2.8' of git.blender.org:blender into blender2.8 2018-04-25 12:06:03 +02:00
Jeroen Bakker
e236b2977c Overlay: Codestyle
removed unused code
2018-04-25 12:03:27 +02:00
Campbell Barton
c115021f8b Cleanup: unused vars 2018-04-25 11:59:52 +02:00
Jeroen Bakker
8f76d05fa5 Workbench: GLSL performance + code style
- store normal in vec2
 - use rgba_8 for colorBuffer
2018-04-25 11:54:02 +02:00
Jeroen Bakker
83528feeed Merge branch 'blender2.8' of git.blender.org:blender into blender2.8 2018-04-25 11:31:03 +02:00
Jeroen Bakker
f938ff1010 Workbench: Dither background color/gradient 2018-04-25 11:30:38 +02:00