Joshua Leung
54e92bbd29
Fix: View All in Action Editor zoomed in far enough to enter "crazy mode" with a single keyframe
...
Now, when there's just a single keyframe, pressing HomeKey will instead
just center the view instead of trying to do "frame range" + margin.
2018-05-31 14:51:28 +02:00
Sybren A. Stüvel
4e96bff938
Update CoW when adding/removing pose in pose library
2018-05-31 13:53:40 +02:00
Joshua Leung
f56a9fbad5
Depsgraph: Remove the "disable-copy-on-write" option completely
...
After discussion with Sergey and Dalai, we have decided to remove
this option completely. We're getting to the point where it is almost
impossible to really use 2.8 without COW, and keeping the old option
running ends up diverting dev resources away towards tracking down
and fixing problems with a parallel system that will be going away.
2018-05-31 13:43:00 +02:00
Bastien Montagne
9b4e56c091
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/BKE_camera.h
source/blender/blenkernel/BKE_dynamicpaint.h
source/blender/blenkernel/BKE_object.h
source/blender/blenkernel/intern/camera.c
source/blender/blenkernel/intern/dynamicpaint.c
source/blender/blenkernel/intern/object.c
source/blender/blenkernel/intern/smoke.c
source/blender/editors/object/object_transform.c
source/blender/editors/physics/dynamicpaint_ops.c
source/blender/editors/space_view3d/view3d_edit.c
source/blender/editors/space_view3d/view3d_view.c
source/blender/modifiers/intern/MOD_dynamicpaint.c
source/blenderplayer/bad_level_call_stubs/stubs.c
2018-05-31 12:57:24 +02:00
Bastien Montagne
28369f725c
Cleanup: remove G.main from BKE object
...
Had to add some G.main to modifiers, but in 2.8 we do not need that
anymore, so it's not that bad! ;)
2018-05-31 12:27:47 +02:00
Sybren A. Stüvel
23e375a281
Revert "Tag COW when applying pose from pose library"
...
This reverts commit 24b03729ae5ba4561ace8cbfb2d56cdbde781589; committed
too soon.
2018-05-31 12:00:18 +02:00
Sybren A. Stüvel
24b03729ae
Tag COW when applying pose from pose library
...
Related to T55232
2018-05-31 11:59:04 +02:00
Brecht Van Lommel
9948e26e14
Fix depsgrah copying and evaluating hidden collections.
2018-05-31 11:43:29 +02:00
Sergey Sharybin
46cfa605c3
Cleanup: Reduce indentation level
2018-05-31 11:17:57 +02:00
Bastien Montagne
17f458ff32
Merge branch 'master' into blender2.8
2018-05-31 11:08:02 +02:00
Bastien Montagne
24d1829243
Cleanup: nuke G.main out of BKE PackedFile code.
2018-05-31 11:07:14 +02:00
Brecht Van Lommel
fcfe1963a6
Fix depsgraph copying and evaluating hidden objects.
2018-05-31 10:37:13 +02:00
Campbell Barton
5cbad89637
Cleanup: unused defines
2018-05-31 10:15:48 +02:00
Campbell Barton
12ab59a2d6
Merge branch 'master' into blender2.8
2018-05-31 10:03:15 +02:00
Campbell Barton
84a9647f22
Cleanup: use doxy sections for space types
...
Also use struct names in enum/define comments.
2018-05-31 09:49:58 +02:00
Campbell Barton
d9324b61d5
Cleanup: return types in stubs
2018-05-31 09:49:44 +02:00
Brecht Van Lommel
e4afccf388
Depsgraph: optimization of driver evaluation with many drivers.
2018-05-31 09:46:21 +02:00
Campbell Barton
e910765ad0
WM: Use tool-system for setting brushes
...
This sets the tool instead of the brush, with cycling support.
2018-05-31 09:04:15 +02:00
Campbell Barton
81bf9a41e1
Tool System: Utility to set the tool by name
...
Wrapper for the Python operator.
2018-05-31 09:02:43 +02:00
Jeroen Bakker
fbd614f1fa
Workbench: Highlights
...
Made the highlights darker (using the defaults of blender 2.7
- sharpness = 50
- spec color = 0.025 (I bumped it to 0.1)
- added a log2 to the frontal camera light to reveal more details of the
mesh
2018-05-30 22:19:10 +02:00
Campbell Barton
264a4a8f97
RNA: add tool index access
...
Needed for changing the active tool from Python.
2018-05-30 22:16:13 +02:00
Campbell Barton
84e5c981dc
UI: toolbars now redraw on tool change
2018-05-30 22:16:13 +02:00
Jeroen Bakker
f5f25b843e
Removed Object color from workbench. Added Highlights to FLAT shading.
2018-05-30 20:34:29 +02:00
Campbell Barton
1f693aefca
Cleanup: style/whitespace
...
Also use 'uint'.
2018-05-30 19:49:33 +02:00
Brecht Van Lommel
0b6603d9b6
Fix selection randomly failing with border render.
...
We no longer user scissor for 3D viewport drawing, and some selection
code assumed it still. This also cleans up unnecessary scissor test
switching, we only have it temporarily enabled now.
2018-05-30 19:34:12 +02:00
Brecht Van Lommel
cce16df10f
Fix Cycles viewport render stuck with curve objects.
...
We should solve this better by making the depsgraph convert all curves to
meshes, for now ensure we don't to depsgraph tags during export.
2018-05-30 18:17:49 +02:00
Brecht Van Lommel
17ce968c59
Depsgraph API: renaming, more granular update information.
...
* depsgraph.ids: all evaluated datablocks in the depsgraph
* depsgraph.objects: all evaluated objects in the depsgraph
* depsgraph.object_instances: all object instances to display or render
* depsgraph.updates: list of updates to datablocks
2018-05-30 18:17:49 +02:00
Brecht Van Lommel
08862b8246
Render API: rename some API functions back to earlier names.
...
Their purpose is the same, no reason to break API compatibility here.
2018-05-30 18:17:49 +02:00
Campbell Barton
9fabe3ef53
Cleanup: quiet warning
2018-05-30 17:38:07 +02:00
Campbell Barton
efd0333a9c
UI: fix property split w/ color buttons & empty text
2018-05-30 17:29:20 +02:00
Joshua Leung
1272936773
Tweak for previous commit: Just group all bone properties under the bone name
...
After more testing, I realised that bendy bone properties should also be grouped,
but probably all other per-bone settings too. Now, just group all of them, since
it's easier for everyone this way.
2018-05-30 17:05:37 +02:00
Sergey Sharybin
7661f8a65b
Modifiers: Bring back custom data referencing logic
...
Brings dependency graph evaluation time to similar time than 2.79
for file reported in T55228.
2018-05-30 17:00:47 +02:00
Sergey Sharybin
41fac4fa76
Modifiers: Make input of modifier stack referencing copied CD layers
...
The idea is to allow modifier stack to reference custom data layers
from copied version of mesh datablock.
2018-05-30 17:00:47 +02:00
Sergey Sharybin
25d4d43491
Modifiers: Restore duplication of referenced layers
...
Was no reason to remove those calls, it was always a plan to bring
referenced layers back eventually.
2018-05-30 17:00:47 +02:00
Joshua Leung
cdfa517760
Insert Keyframe: Change default behaviour for how F-Curves get grouped
...
For many years, animators have been complaining about how keyframing a (transform)
property directly would leave them ungrouped, while keyframing them using a Keying Set
would put them into a group based on the name of the keyingset.
This commit attempts to improve (unify + make consistent) the default behaviour:
* All object transforms now get added to an "Object Transforms" group,
regardless of whether they were added individually via buttons or keyingset
* All bone transforms now get added to a group corresponding to the name of the bone
instead of only the ones added via keyingset
2018-05-30 16:46:12 +02:00
Joshua Leung
23b455a891
Cleanup: Reuse existing scene pointer
2018-05-30 16:46:11 +02:00
Bastien Montagne
92e3b3839b
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/editors/space_outliner/outliner_intern.h
2018-05-30 16:32:49 +02:00
Bastien Montagne
10a2562bc5
Fix missing movieclip ID type in allowed ones for Outliner...
2018-05-30 16:14:55 +02:00
Campbell Barton
f1f1c32849
Object Modes: don't de-select others when activating
2018-05-30 15:51:49 +02:00
Dalai Felinto
5b8fe8324b
Fix render info not working with overlap regions
2018-05-30 15:45:40 +02:00
Campbell Barton
38957c1838
Object Modes: stay in object mode when setting active
...
When activating an object from the 3D view or outliner,
keep the newly selected object in object mode.
2018-05-30 15:33:05 +02:00
Campbell Barton
5954a5c465
Object Modes: pose support for generic mode exit
2018-05-30 15:33:05 +02:00
Campbell Barton
375c1eab65
Cleanup: RNA naming, use highlight as suffux
...
This is whats done already elsewhere.
2018-05-30 15:33:05 +02:00
Campbell Barton
d0d2fc9819
Cleanup: whitespace
2018-05-30 15:26:57 +02:00
Bastien Montagne
30fb455977
Initial 'fix' for Sculpt & COW - shallow copy sculpt data into COWed object.
...
Still a lot to fix here, right now you can get sculpt drawing updating
when you come from Edit mode, not from Object mode... Go figure...
2018-05-30 15:15:35 +02:00
Sergey Sharybin
35a6d9ec55
ID copy: Add flag which allows custom data to reference original datablock
2018-05-30 15:07:59 +02:00
Jeroen Bakker
acaf46db0e
Workbench: Specular Highlights
...
Added specular highlights for:
- Solid studio shading
- Texture studio shading
2018-05-30 14:42:07 +02:00
Sergey Sharybin
29f9a19708
Modifier stack: Avoid roundtrip from mesh to DM back to mesh
...
Saves quite a bit of CPU ticks per mesh update, giving measurable
speedup for file from T55228.
Memory usage goes up a it, most likely due to evaluated mesh having
more custom data layers than corresponding DM does.
2018-05-30 14:29:05 +02:00
Sergey Sharybin
da16cb1511
Eevee: Keep track on whether orco was allocated or not
...
If it's coming from vertex data, we must not free that pointer.
2018-05-30 14:29:05 +02:00
Clément Foucault
f03953ae06
Object Mode: Add Texture space visualization.
2018-05-30 14:27:40 +02:00