Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-05-16Dependency graph API changesSergey Sharybin
Main goal here is to make it obvious and predictable about what is going on. Summary of changes. - Access to dependency graph is now only possible to a fully evaluated graph. This is now done via context.evaluated_depsgraph_get(). The call will ensure both relations and datablocks are updated. This way we don't allow access to some known bad state of the graph, and also making explicit that getting update dependency graph is not cheap. - Access to evaluated ID is now possible via id.evaluated_get(). It was already possible to get evaluated ID via dependency graph, but that was a bit confusing why access to original is done via ID and to evaluated via depsgraph. If datablock is not covered by dependency graph it will be returned as-is. - Similarly, request for original from an ID which is not evaluated will return ID as-is. - Removed scene.update(). This is very expensive to update all the view layers. - Added depsgraph.update(). Now when temporary changes to objects are to be done, this is to happen on original object and then dependency graph is to be updated. - Changed object.to_mesh() to behave the following way: * When is used for original object modifiers are ignored. For meshes this acts similar to mesh-copy, not very useful but allows to keep code paths similar (i.e. for exporter which has Apply Modifiers option it's only matter choosing between original and evaluated object, the to_mesh() part can stay the same). For curves this gives a mesh which is constructed from displist without taking own modifiers and modifiers of bevel/taper objects into account. For metaballs this gives empty mesh. Polygonization of metaball is not possible from a single object. * When is used for evaluated object modifiers are always applied. In fact, no evaluation is happening, the mesh is either copied as-is, or constructed from current state of curve cache. Arguments to apply modifiers and calculate original coordinates (ORCO, aka undeformed coordinates) are removed. The ORCO is to be calculated as part of dependency graph evaluation. File used to regression-test (a packed Python script into .blend): {F7033464} Patch to make addons tests to pass: {F7033466} NOTE: I've included changes to FBX exporter, and those are addressing report T63689. NOTE: All the enabled-by-default addons are to be ported still, but first want to have agreement on this part of changes. NOTE: Also need to work on documentation for Python API, but, again, better be done after having agreement on this work. Reviewers: brecht, campbellbarton, mont29 Differential Revision: https://developer.blender.org/D4834
2019-05-15Objects: new 3D cursor alignment option when adding objectsHans Goudey
The choices are now World, View and 3D Cursor. This breaks Python API compatibility, add-ons that add objects with this parameter will need to be updated. Differential Revision: https://developer.blender.org/D4706
2019-05-13Tests: disable DoF in Eevee tests for now, it adds blurring with default valuesBrecht Van Lommel
2019-05-11Tests: speed up render tests by running multiple in the same processBrecht Van Lommel
Blender startup time and shader compilation is a big factor when running hundreds of tests, so now all renders in the same ctest run in the same process. If a test crashes, the remaining tests in the same category will be marked as skipped. Benchmarked on a quad core with ctest -j8. cycles: 118.1s -> 94.3s eevee: 66.2s -> 29.2s workbench: 31.7s -> 8.6s
2019-05-11Tests: fix eevee and workbench using Cycles in a few testsBrecht Van Lommel
2019-05-10Tests: Be more explicit about the required location of the tests folder.Ray Molenkamp
2019-05-10Fix failing tests when Cycles is enabledBrecht Van Lommel
The --env-system-scripts hack does not work with it, it can't find the cycles Python module then when importing add-ons.
2019-05-09Tests: add tests/report.html that links to all HTML test reportsBrecht Van Lommel
Currently this is for Cycles, Eevee and workbench tests.
2019-05-07Tests: add Cycles image texture colorspace testsBrecht Van Lommel
2019-05-06Tests: add Eevee reference images, and add workbench testsBrecht Van Lommel
Being able to compare Eevee reference images is useful for refactoring I'm working on so might as well add them now, even if we can still improve them. Workbench tests are just rendering the same files as Cycles and Eevee. This doesn't really tests many workbench settings until we add tests specifically for them, but does cover how it it handles the different object types.
2019-05-06Fix error running Eevee render testsBrecht Van Lommel
2019-04-18PyTests: do not load addons in load_py_modules test.Bastien Montagne
It makes no sense to load add-ons here, we already do that (in a more complete way) in load_addons test, this is only adding overhead and doubling code to maintain). Also do not try to load-as-modules add-ons that are not 2.8-ready, and some other misc fix. load_py_modules test should be passing again now. Thanks to @sergey who did part of the work here as well.
2019-04-18PyTests: do not try to load non-2.8-ready add-ons.Bastien Montagne
2019-04-18Cleanup: remove last bits of WITH_LEGACY_DEPSGRAPH CMake option.Bastien Montagne
Legacy depsgraph has been removed from Blender since several months already...
2019-04-17Tests: Fix Alembic regression testSergey Sharybin
2019-04-17Tests: Fix ID properties testSergey Sharybin
Simply adjust to Python API changes done in 2.8.
2019-04-17Cleanup: use 2 space indentation for CMakeCampbell Barton
2019-04-04Fix ply import tests.Howard Trickey
The function for clearing out objects in the startup file needed updating for 2.8 collections api.
2019-04-03Fix export_obj_cube test.Howard Trickey
Verified that current export files for all_quads.blend are good, then updated expected MD5 hash to match current files.
2019-03-17Merge branch 'blender2.7'Brecht Van Lommel
2019-03-17Fix bl_pyapi_idprop unit test.Howard Trickey
Scenes can now have a 'cycles' key when starting, so account for that.
2019-03-17Cleanup: unused variablesCampbell Barton
2019-03-17Cleanup: unused importsCampbell Barton
2019-03-15Tests: remove unnecessary _test postfix on test names.Brecht Van Lommel
2019-02-20Merge branch 'blender2.7'Brecht Van Lommel
2019-02-20Tests: only run OpenGL draw tests on lib/tests/opengl, support symlinks.Brecht Van Lommel
To keep running these tests relatively fast and practical to run often, running it on all .blend files is a bit much. So now we only run it on files from this directory. Additionally this adds supports for following symlinks, so that you can easily symlinks to other directories if you want to tests extra files which may have linked libraries.
2019-02-11Merge branch 'blender2.7'Brecht Van Lommel
2019-02-11Cycles: add animation denoising test, fix operator to work with single frames.Brecht Van Lommel
2019-02-05Cleanup: remove contributors for CMake filesCampbell Barton
Following removal from C source code. See: 8c68ed6df16d8893
2019-01-23Fix T54834: VSE can't import OGG Theora videoSergey Sharybin
2018-12-21RNA: naming, user-preferences -> preferencesCampbell Barton
2018-12-03Fix T58556: Some remaining 'dupli_types' in pycode after renaming.Bastien Montagne
2018-11-26Cleanup: unused vars, importsCampbell Barton
2018-11-20Cleanup: move keymap hierarchy into own fileCampbell Barton
2018-11-20WM: remove interaction presetsCampbell Barton
These only exposed a few options, which didn't end up helping much to make Blender's key-map fit the behavior of other applications.
2018-11-12Update test, missed when changing Object.select_set()Campbell Barton
2018-11-11Fix T57776: Error when adding a Torus to the scene.Bastien Montagne
Not all Object.select_set() cases had been updated to new API... Tsst. ;)
2018-11-08RNA: Object.select_set use boolean, only selectCampbell Barton
- Was setting active state, making it necessary to backup/restore active object in cases where this isn't needed. Existing scripts are explicitly setting the active object when needed. - Use a boolean select arg (toggle selection wasn't used anywhere). - Add an optional view layer argument since scripts should be able to operate outside the user context.
2018-10-09Merge branch 'master' into blender2.8Campbell Barton
2018-10-08Cleanup: styleCampbell Barton
2018-10-06Tests: Support parallel execution of render testsLukas Stockner
Previously, parallel tests would overwrite each others temporary outputs.
2018-10-03Keymap: expose tool keymaps in the preferencesCampbell Barton
Currently some modes share tool keymaps, we might want to disable this since it's confusing editing one thing in multiple places. However this should be resolved in the tool definitions.
2018-09-28Merge branch 'master' into blender2.8Sergey Sharybin
2018-09-28Tests: recurse into directories for finding OpenGL draw test .blends.Brecht Van Lommel
2018-09-27Merge branch 'master' into blender2.8Sergey Sharybin
2018-09-27Tests: add --no-window-focus to open window without focus.Brecht Van Lommel
This is useful to run OpenGL tests while continuing to do other tasks without windows constantly popping up in the foreground.
2018-09-19Merge branch 'master' into blender2.8Brecht Van Lommel
2018-09-19Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3700
2018-09-06UI / Python: rename X-Ray to In Front, Draw to Display.Brecht Van Lommel
See T56648.
2018-08-10Python: Add support for @ infix operator matrix multiplicationAndrew Hale
This differential revision implements the code for T56276 Reviewers: campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D3587