Blender Git Commit Log

All Blender Git commits.

Page: 2059 / 8462

November 15, 2019, 14:14 (GMT)
Blendfile-loading test class

To test some functionality of the USD exporter, I want to be able to load a blend file and run parts of the exporter. Up to now this wasn't possible from a GTest test. Of course a Python test could run the USD exporter, but testing the result would require writing a parser for USD files, which I want to avoid.

This new test class minimally sets up Blender so that it can load blend files and construct a depsgraph without crashing. Note that I haven't tested this on very complex blend files, so it may still crash when the loaded blend file references/requires uninitialised data structures.

The test will certainly crash with Blend files created with Blender 2.80, as the versioning code requires space types to be registered. This is normally done by initialising the window manager, which is not done in this test. The WM requires Python to run, which in turn requires that Blender finds the release directory in the same directory that contains the running executable, which is not the case for GTest tests (they are written to `bin/tests/executablename`.

This patch requires the functionality from {D6236}.

Differential Revision: https://developer.blender.org/D6246
November 15, 2019, 14:14 (GMT)
FIXUP for EXTRA_CLI
November 15, 2019, 14:14 (GMT)
CMake/GTest: allow defining CLI arguments for GTEST tests

For USD tests I need to load a blend file from a GTest test, and in order to do that properly it needs to get the location of the lib/tests directory. The easiest way to do this is to pass it on the CLI.

To make it possible to extend the `BLENDER_SRC_GTEST_EX()` without adding yet more macros, it now accepts keyword arguments.

Differential Revision: https://developer.blender.org/D6236
November 15, 2019, 14:13 (GMT)
Fix crash when freeing Blender after GTests

This only frees brush_rng and random_tex_array when they were actually
previously allocated.

In a unit test (see D6246) I want to be able to partially start Blender
so that I can load a blend file. To prevent memory leaks, I also want to
be able to release memory, which currently requires calling
`BKE_blender_free()`. This unconditionally calls `RE_texture_rng_exit()`
and `BKE_brush_system_exit()`, which now crash on freeing `NULL`. This
patch fixes that.

Allocation (`BKE_brush_system_init()`) and freeing
(`BKE_brush_system_exit()`) are done asymmetrically. The allocation
functions are called from `main()` in the creator module, but the
freeing is done by `BKE_blender_free()` the Window Manager. Ideally we
symmetrise this and initialise Blender from outside the window manager
(so that the initialisation can be done without WM and Python too), but
for now I'm happy when things don't crash.

Reviewed by: sergey via pair programming
November 15, 2019, 14:06 (GMT)
remove unused code
November 15, 2019, 13:27 (GMT)
GPencil: Change default palette name
November 15, 2019, 12:37 (GMT)
LANPR: Still enable auto update checkbox when no active camera is persent.
November 15, 2019, 12:30 (GMT)
Merge branch 'master' into arcpatch-D5442
November 15, 2019, 12:06 (GMT)
LANPR: Fix asset errors and material marking errors.
November 15, 2019, 12:01 (GMT)
Fix incorrect return value, cleanup return values
November 15, 2019, 10:27 (GMT)
Update branch to include changes from split off patches
November 15, 2019, 09:55 (GMT)
GPencil: Small cleanup in previous commit

Look for brush only once.
November 15, 2019, 09:53 (GMT)
GPencil: Set default draw brush in all templates
November 15, 2019, 09:47 (GMT)
GPencil: Init defaults for all templates
November 15, 2019, 09:26 (GMT)
Merge branch 'master' into greasepencil-object
November 15, 2019, 08:56 (GMT)
undo experiments: actually write at leat one memchunck per ID.

Checked that before, but missed the fact that the flush was done after a
whole ID type process in the main saving loop, now we actually do it
after every ID when using mem undo file saving.

Besides fixing the stupid issue with lots of unchanged IDs being
detected as changed when reading back the undo step, this should also
help reduce undo memory usage in some cases (although I could not detect
that with some quick test...).
November 15, 2019, 08:23 (GMT)
Merge branch 'master' into undo-experiments
November 15, 2019, 08:22 (GMT)
Undo experiments: remove assert that can only be true in some specific cases.
November 15, 2019, 03:46 (GMT)
LANPR line rendering (summer of code)

LANPR Patch

This is the patch for soc-2019-npr branch. Now modified as containing only LANPR changes

This patch **doesn't include** the following:

- GPencil modifiers.
- Smooth contour modifier.
- SVG.
- Affected UI scripts.
- Freestyle changes.

Those above will be submitted in other diffs.

Differential Revision: https://developer.blender.org/D5442
November 15, 2019, 03:36 (GMT)
Keymap: pressing leader key (Alt) again closes tool prompt

Provides a convenient way to close
if the tool prompt is opened by accident.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021