Bastien Montagne
2ecab4c8a6
LibOverride: Optimize deletion of overrides in liboverride delete.
2020-11-10 16:14:16 +01:00
Bastien Montagne
de8d7003bc
Cleanup/Update comments in liboverride code.
2020-11-10 16:14:16 +01:00
Sybren A. Stüvel
feb71f1d71
Animation: Expand unit tests for BKE_fcurve_active_keyframe_index()
...
Expand unit test for `BKE_fcurve_active_keyframe_index()` to test edge
cases better.
This also introduces a new test macro `EXPECT_BLI_ASSERT()`, which can be
used to test that an assertion fails successfully.
No functional changes to actual Blender code.
2020-11-10 15:36:21 +01:00
Sergey Sharybin
75a2db5d97
Multires: Cleanup, clarify comment
2020-11-10 15:32:06 +01:00
Bastien Montagne
11c19c24bd
Cleanup/Update comments in liboverride code.
2020-11-10 15:30:36 +01:00
Sybren A. Stüvel
2a2bc09096
Merge remote-tracking branch 'origin/blender-v2.91-release'
2020-11-10 14:02:28 +01:00
Sybren A. Stüvel
4960780d76
Animation: More explicit boundary checks when setting active keyframe
...
Fix unit test failing in debug mode by having more explicit boundary checks
when setting an FCurve's active keyframe.
No functional changes.
2020-11-10 13:44:47 +01:00
Campbell Barton
291473bb3e
Merge branch 'blender-v2.91-release'
2020-11-10 17:50:15 +11:00
Campbell Barton
476a0d2311
Fix T82555: Crash using copied object from Python
...
Also clear `gpd_eval` as this wasn't being copied either.
2020-11-10 17:44:56 +11:00
Campbell Barton
3a764c3e6d
Cleanup: suppress clang-tidy warnings without FFMPEG/AVI/AUDASPACE
2020-11-10 09:40:20 +11:00
Ankit Meel
94b44a5228
Cleanup: Clang-tidy, modernize-use-nullptr.
2020-11-09 21:31:13 +05:30
Brecht Van Lommel
880b0f981d
Cleanup: more renaming in the render/ module for consistency
2020-11-09 16:19:49 +01:00
Jacques Lucke
4f66cf3b8b
Pointclouds: move blenkernel code to c++
2020-11-09 15:47:16 +01:00
Sergey Sharybin
dfe50ef2d8
Fluid: Fix strict compiler warning
...
Proper way to check for DEBUG_PRINT is to do `if defined` check rather
than `if`: this is because in non-debug builds the symbol is not defined.
2020-11-09 15:43:22 +01:00
Sergey Sharybin
1f4062cf6e
Fluid: Fix strict compiler warning
...
Proper way to check for DEBUG_PRINT is to do `if defined` check rather
than `if`: this is because in non-debug builds the symbol is not defined.
2020-11-09 14:35:20 +01:00
Sebastián Barschkis
0c4d12986a
Merge branch 'blender-v2.91-release'
2020-11-09 12:54:26 +01:00
Sebastián Barschkis
0e6820cc5d
Fix T82488: Mantaflow - force fields have very low influence compare to 2.90.1
...
Removed 0.2f factor when setting forces. Why this factor has been used when forces should only be clamped, nobody knows ..
2020-11-09 12:53:27 +01:00
Sybren A. Stüvel
ad85256e71
Animation: move group colors switch to user preferences
...
Move the "Show Group Colors" toggle from a per-editor option to a single
user preference in the Animation preferences. The Grease Pencil
animation channel side panel allows picking a channel color; this now
shows a message when channel colors are disabled.
The old "Show Group Colors" toggle had to be set per editor, and was on
by default. This meant that disabling group colors would require an
action for every file, for every editor. It is very hard to select a
color that works both as bone color in the 3D Viewport (needs to be
bright there) as well as the channel list (needs to be dark there), most
animators turn channel list colors off.
Differential Revision: https://developer.blender.org/D9391
2020-11-09 11:11:05 +01:00
Campbell Barton
71ff935fd6
Revert "Fix T80742: curve bevel fails with zero length handles at end-point"
...
This reverts commit 4987b7d347 .
This introduced a slight change in curve direction at end-points
(while correct), it caused tests to fail.
Keep this change for 2.92, revert for 2.91.
2020-11-09 20:33:27 +11:00
Campbell Barton
8c846cccd6
Cleanup: clang-format
2020-11-09 15:47:08 +11:00
Hans Goudey
b3e71ee098
Cleanup: Remove unused variable
2020-11-06 12:50:03 -06:00
Jacques Lucke
b0dcabdf65
Cleanup: fix naming and remove unnecessary code
2020-11-06 18:41:03 +01:00
Jacques Lucke
992b8f6f5f
Refactor: move Screen .blend data read to blenkernel
...
Ref T76372.
2020-11-06 18:37:52 +01:00
Jacques Lucke
1762d5f43a
Refactor: move Ipo .blend I/O to IDTypeInfo callbacks
2020-11-06 18:33:33 +01:00
Jacques Lucke
638913a3c0
Refactor: move Object .blend I/O to IDTypeInfo callbacks
2020-11-06 18:25:51 +01:00
Sybren A. Stüvel
16732def37
Cleanup: Clang-Tidy modernize-use-nullptr
...
Replace `NULL` with `nullptr` in C++ code.
No functional changes.
2020-11-06 18:08:25 +01:00
Jacques Lucke
2acf01ec62
Refactor: move Pose .blend I/O to blenkernel
...
Ref T76372.
2020-11-06 17:58:25 +01:00
Jacques Lucke
58e9b51f95
Refactor: move Constraint .blend I/O to blenkernel
...
Ref T76372.
2020-11-06 17:45:29 +01:00
Jacques Lucke
37ef37711d
Refactor: move MotionPath .blend I/O to blenkernel
...
Ref T76372.
2020-11-06 17:33:13 +01:00
Philipp Oeser
a3a6443bfd
Merge branch 'blender-v2.91-release' into master
2020-11-06 17:29:18 +01:00
Philipp Oeser
42980abf8d
Fix T81997: Subsurf Optimal Display sticks after object conversion
...
When using Optimal Display, some edges are not flagged `ME_EDGEDRAW` |
`ME_EDGERENDER`.
When the modifier is applied through the UI in the modifier stack this is
not an issue because the `modifyMesh` callback is run with
`MOD_APPLY_TO_BASE_MESH` (this will effectively turn of Optimal
Display).
When converting to mesh though, this will just get an evaluated mesh
(where the edge flags are still the same as with the subdivision
modifier).
Now ensure every edge is flagged to draw after conversion.
Maniphest Tasks: T81997
Differential Revision: https://developer.blender.org/D9331
2020-11-06 17:25:52 +01:00
Jacques Lucke
57414e6d1d
Refactor: move gpencil modifier .blend I/O to blenkernel
...
Ref T76372.
2020-11-06 17:22:20 +01:00
Jacques Lucke
019407810b
Refactor: move modifier .blend I/O to blenkernel
...
Ref T76372.
2020-11-06 17:13:16 +01:00
Jacques Lucke
af24532612
Refactor: move ShaderFx .blend I/O to blenkernel
...
Ref T76372.
2020-11-06 16:42:50 +01:00
Aaron Carlisle
e15076b22f
Cleanup: Render Module: move header files to main directory
...
Move headers files from `render/extern/` to `render/`
Part of T73586
2020-11-06 10:10:41 -05:00
Jacques Lucke
f6524aaa80
Refactor: move ParticleSystem .blend I/O to blenkernel
...
Ref T76372.
2020-11-06 15:58:39 +01:00
Jacques Lucke
958ceaf5bf
Refactor: move Scene .blend expand to IDTypeInfo callback
2020-11-06 15:37:56 +01:00
Jacques Lucke
2f3181d0f2
Refactor: move Scene .blend lib reading to IDTypeInfo callback
2020-11-06 15:21:57 +01:00
Jacques Lucke
6ab0bd4798
Refactor: move Scene .blend data reading to IDTypeInfo callback
2020-11-06 14:57:36 +01:00
Jacques Lucke
140d6cc4a2
Refactor: move Scene .blend writing to IDTypeInfo callback
2020-11-06 14:49:30 +01:00
Jacques Lucke
7dd76329e1
Refactor: move PointCache .blend I/O to blenkernel
...
Ref T76372.
2020-11-06 14:40:54 +01:00
Jacques Lucke
c32a5ce17c
Refactor: move Paint lib linking to blenkernel
...
Ref T76372.
2020-11-06 14:10:31 +01:00
Jacques Lucke
62223e9851
Refactor: move color settings .blend I/O to blenkernel
...
Ref T76372.
2020-11-06 14:10:31 +01:00
Jacques Lucke
da96389dcb
Refactor: move remaining ViewLayer .blend I/O to blenkernel
...
Ref T76372.
2020-11-06 13:22:10 +01:00
Jacques Lucke
9ad2965921
Refactor: move Paint .blend I/O to blenkernel
...
Ref T76372.
2020-11-06 13:16:17 +01:00
Philipp Oeser
37b155420b
Merge branch 'blender-v2.91-release' into master
2020-11-06 12:00:50 +01:00
Philipp Oeser
e6739ed91d
Fix T82407: Negative number input gives syntax error for velocities and
...
accelerations
Caused by rB45dbc38a8b15.
Above commit would place parentheses surrounding a block until the next
operator was found.
For velocities and accelerations though, the '/' in 'm/s' or 'ft/s'
should not be considered an operator.
Maniphest Tasks: T82407
Differential Revision: https://developer.blender.org/D9467
2020-11-06 11:56:57 +01:00
Campbell Barton
d9e7a42640
Cleanup: use 'BKE_' prefix for initialization functions
2020-11-06 16:43:09 +11:00
Campbell Barton
2d803d3f6d
Cleanup: use STR_ELEM macro
2020-11-06 15:42:03 +11:00
Hans Goudey
4f140ec7cc
Cleanup: Use LISTBASE_FOREACH macro
2020-11-05 22:39:30 -06:00