Blender Git Loki

Blender Git commits from all branches.

Page: 1072 / 2888

November 15, 2019, 14:14 (GMT)
Updated for review comments

- Removed link to CMake docs
- EXTRA_CLI ? COMMAND_ARGS
- BlendfileLoadingAbstractTest ? BlendfileLoadingBaseTest
- Moved BlendfileLoadingBaseTest into tests/gtests/blenloader
- Added failure message
- Check C++ string with a C++ string function
- Full stop.
November 15, 2019, 14:14 (GMT)
Updated license blocks
November 15, 2019, 14:14 (GMT)
Added GPL header to each new file
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: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.
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021