Bastien Montagne
594bcf934e
Cleanup: use DEG tag flags, instead of old OB ones.
...
Having those two in parallel is ratehr confusing... :/
2018-06-18 18:43:21 +02:00
Bastien Montagne
4efe8fc806
Fix crash when making static override of an object from a collection.
...
Since we free collection caches when we remap one of their objects, we
also need to tell depsgraph to flush this into the COWs of that
collection, otherwise things like draw code can access freed memory...
2018-06-18 18:43:21 +02:00
Jeroen Bakker
7356cec0c6
Studiolights: Radiance icons were inverted.
2018-06-18 15:45:55 +02:00
Jeroen Bakker
7747d4cecf
Workbench: increased Quality of the diffuse lighting model
...
- implemented Spherical Harmonics L2 for diffuse shading.
TODO: caching the precalculated harmonics so it won't take soo long to
open the popover
2018-06-18 15:32:53 +02:00
Brecht Van Lommel
fec97ec949
Objects: when active object gets hidden, make it inactive.
2018-06-18 15:20:06 +02:00
Brecht Van Lommel
7c836ac30a
Cleanup: simplify some view layer code.
2018-06-18 15:20:06 +02:00
Sergey Sharybin
0365079676
Particles: Remove obsolete code for child particles in edit mode
2018-06-18 15:14:03 +02:00
Sergey Sharybin
d5ec62a0c3
Multires: Remove unused function
...
It uses derived mesh, and relies on scene stored in modifier data.
So port is needed anyway.
2018-06-18 11:14:00 +02:00
Campbell Barton
06a1a66a9b
Merge branch 'master' into blender2.8
2018-06-17 17:10:19 +02:00
Campbell Barton
6fc8a74886
Cleanup: trailing space for blenkernel
2018-06-17 17:05:51 +02:00
Campbell Barton
56173e512c
Merge branch 'master' into blender2.8
2018-06-17 16:18:15 +02:00
Campbell Barton
a0a1fc8938
Cleanup: BLI path extension API
...
Use BLI_path_extension_* prefix.
2018-06-17 16:13:24 +02:00
Campbell Barton
ab20901c9e
Cleanup: codestyle
2018-06-17 12:03:22 +02:00
Clément Foucault
fe98124a98
Custom Hdri: Use same AntiAliasing as Matcaps
2018-06-16 23:28:39 +02:00
Clément Foucault
b503dd7747
StudioLights: Fix preview icon.
...
Use same antialiasing method as the matcaps and fix the normal computation.
2018-06-16 23:28:39 +02:00
Clément Foucault
48adf90367
Matcap: Make matcap preview the same size as the other StudioLights
2018-06-16 23:28:39 +02:00
Clément Foucault
224daf55ac
Matcaps: Add AntiAlias alpha mask to icon preview.
2018-06-16 23:28:39 +02:00
Clément Foucault
0332d338ea
Studio Light: Fix typo
2018-06-16 23:28:39 +02:00
Bastien Montagne
3b7f630a54
Merge branch 'master' into blender2.8
2018-06-16 18:02:50 +02:00
Bastien Montagne
ace8ad861d
Fix T55427: Removing Vertex Group used by Data Transfer Modifier results in crash.
...
Only fixing crash, proper handling (a.k.a remapping) of all
possible cases here, for all possible data layers, is rather involved...
2018-06-16 16:22:00 +02:00
Brecht Van Lommel
01f576e87b
Merge branch 'master' into blender2.8
...
The Eevee AO node supports the new Normal socket, but ignores Distance,
Samples, Inside and Only Local settings.
2018-06-15 23:16:49 +02:00
Lukas Stockner
799779d432
Cycles: change Ambient Occlusion shader to output colors.
...
This means the shader can now be used for procedural texturing. New
settings on the node are Samples, Inside, Local Only and Distance.
Original patch by Lukas with further changes by Brecht.
Differential Revision: https://developer.blender.org/D3479
2018-06-15 22:16:06 +02:00
Campbell Barton
0ff87e3a60
Cleanup: code style
2018-06-15 20:55:37 +02:00
Bastien Montagne
3e4bf31327
Cleanup: G.main removal from 2.8-only code.
2018-06-15 17:33:24 +02:00
Bastien Montagne
5b6ae0523e
Merge branch 'master' into blender2.8
2018-06-15 17:25:41 +02:00
Sergey Sharybin
5ac7068c5f
Hair editing: Multi-thread various parts
...
Currently focused on making parts which are a bottleneck for Spring,
to make things fast as possible. There are surely lots of places
where threading is not currently done, but we can keep doing this,
maybe even with help from the community :)
2018-06-15 17:23:49 +02:00
Bastien Montagne
da9b1b14ed
Cleanup: some more G.main removal/validation...
2018-06-15 17:21:07 +02:00
Sybren A. Stüvel
84c91a87a9
Converted Rigid Body from DerivedMesh to Mesh
2018-06-15 14:33:11 +02:00
Jeroen Bakker
64bfa4b300
T55486: use GPU_R11F_G11F_B10F for Matcaps
2018-06-15 13:02:15 +02:00
Bastien Montagne
995a1815f5
Fix T55408: Double transforms on parents/children.
...
object.base_flag was not synced back from evaluated ID to original one.
Similar thing as copying back to original transform matrix, avoids
having to get data from evaluated one in lots of cases.
2018-06-15 12:17:26 +02:00
Campbell Barton
cbc7ee28d7
WM: 2.8 screen compatibility
...
Without these minor changes loading files from 2.8 will crash.
Manually applied edits from 26786a2b87
2018-06-15 10:24:53 +02:00
Lukas Stockner
525be2f579
Image: Refactor render slots to a dynamic list
...
Previously, render slots were hardcoded to a fixed amount.
With this change, render slots now are stored in a list. Therefore, users can add and/or remove as many slots as they want.
Credit to brecht for the UI part.
Reviewers: brecht, sergey
Differential Revision: https://developer.blender.org/D3474
2018-06-14 22:46:30 +02:00
Campbell Barton
51f1ed8221
Cleanup: style
2018-06-14 22:44:53 +02:00
Campbell Barton
26786a2b87
WM: add support for temporary region data
2018-06-14 22:27:58 +02:00
Brecht Van Lommel
dc25e69c2d
Fix motion paths not updating correctly for bones in some cases.
...
Sometimes the evaluated pose channel pointers can change during depsgraph
evaluation, so we can't store them ahead of time. The object pointer
should be ok since evaluated ID memory is reused.
2018-06-14 20:58:14 +02:00
Jeroen Bakker
17b029d80e
T55406: Flip Matcap
...
- Icon represent the flipped matcap in the shading menu
- Added template_icon to display any icon in scale.
2018-06-14 11:44:36 +02:00
Brecht Van Lommel
711a50c5ea
Merge branch 'master' into blender2.8
...
This includes making Eevee match Cycles behavior of inserting an emission
node when linking colors to closures.
2018-06-13 19:26:52 +02:00
Brecht Van Lommel
3102833962
Fix undo of transform after frame change undoing too much.
...
For grouped undo we should not skip the undo push, rather replace the
previous undo push. This way undo goes back to the state after the last
operation in the group.
2018-06-13 18:39:30 +02:00
Bastien Montagne
4943739b89
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenloader/intern/readfile.c
source/blender/editors/mesh/editmesh_utils.c
source/blenderplayer/bad_level_call_stubs/stubs.c
2018-06-13 16:42:56 +02:00
Bastien Montagne
f61c30f804
Cleanup: get rid of last G.main in BMesh code.
2018-06-13 16:29:12 +02:00
Bastien Montagne
1bcf9217eb
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/BKE_pointcache.h
source/blender/blenkernel/intern/object.c
source/blender/blenkernel/intern/pointcache.c
source/blender/editors/include/ED_particle.h
source/blender/editors/physics/particle_edit.c
source/blender/editors/physics/particle_edit_undo.c
source/blender/editors/physics/particle_object.c
source/blender/editors/physics/physics_intern.h
source/blender/editors/physics/physics_pointcache.c
source/blender/editors/space_time/space_time.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/space_view3d/view3d_edit.c
source/blender/editors/transform/transform_conversions.c
source/blender/editors/transform/transform_generics.c
source/blender/editors/transform/transform_manipulator.c
source/blender/makesrna/intern/rna_object.c
source/blender/makesrna/intern/rna_object_force.c
source/blender/makesrna/intern/rna_sculpt_paint.c
source/blenderplayer/bad_level_call_stubs/stubs.c
2018-06-13 15:36:24 +02:00
Brecht Van Lommel
7a10cfe7fe
UI: preset popover buttons in panel headers.
...
Moves the preset into a menu for the panel header, so it can be changed
without opening the panel and takes up less space. Two remaining issues:
* For long lists the add new preset button can be scrolled off screen.
* We should support showing the name of the chosen preset in the panel
header, but the current preset system does not support detecting which
preset is used.
Differential Revision: https://developer.blender.org/D3366
2018-06-13 15:22:34 +02:00
Bastien Montagne
5ff1d845ea
Cleanup: moar ugly G.main removal...
...
Note that due to RNA get/setters issue, that one may actually add some
G.main usages to the total... But at least it's not hidden anymore in a
very low-level, dark corner of BKE pointcache code!
2018-06-13 14:28:05 +02:00
Dalai Felinto
64ecd3d2e7
Set minimum blender version as 2.80
...
Technically we probably need to do for the current subversion (17).
But the entirely 2.80 series is known to be experimental.
The most important part is to notify people that if they open the 2.80
file in master it will loose data.
2018-06-13 13:01:16 +02:00
Bastien Montagne
1a79c6d360
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/intern/blendfile.c
source/blender/blenkernel/intern/node.c
source/blender/blenkernel/intern/particle.c
2018-06-13 11:02:48 +02:00
Bastien Montagne
67e8c1e1c7
Cleanup: remove more G.main from BKE area.
2018-06-13 10:57:10 +02:00
Brecht Van Lommel
77879ac038
Fix T55376: instanced collection render visibility ignored.
...
For physics simulation it's still fuzzy though, but this needs bigger
design for how it works with view layers and visibility.
2018-06-12 22:36:43 +02:00
Bastien Montagne
9b9b943e0c
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/BKE_anim.h
source/blender/blenkernel/intern/anim.c
source/blender/blenkernel/intern/scene.c
source/blender/editors/armature/pose_edit.c
source/blender/editors/armature/pose_transform.c
source/blender/editors/armature/pose_utils.c
source/blender/editors/include/ED_armature.h
source/blender/editors/object/object_edit.c
source/blender/editors/transform/transform_conversions.c
2018-06-12 18:26:50 +02:00
Bastien Montagne
2788202417
Cleanup: moar G.main removal from BKE area.
2018-06-12 17:57:24 +02:00
Bastien Montagne
f27ecd56ef
Cleanup: BKE_scene_free should not have to worry about cleaning its usages.
...
This is supposed to be handled by calling code! Henceforce, no need to
call BKE_sequencer_clear_scene_in_allseqs() here, and... no need for
that ugly G.main case. ;)
2018-06-12 17:46:16 +02:00