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
path: root/tests
AgeCommit message (Collapse)Author
2018-02-27Merge branch 'master' into blender2.8Gaia Clary
2018-02-27Collada: Added tests for Animation exportGaia Clary
2018-02-27merge from masterGaia Clary
2018-02-26optimized the output of the collada test script for better readingGaia Clary
2018-02-25merged collada rework from master into blender 2.8Gaia Clary
2018-02-24T45687: Rework the Export/Import of AnimationsGaia Clary
This started with a fix for an animated Object Hierarchy. Then i decided to cleanup and optimize a bit. But at the end this has become a more or less full rewrite of the Animation Exporter. All of this happened in a separate local branch and i have retained all my local commits to better see what i have done. Brief description: * I fixed a few issues with exporting keyframed animations of object hierarchies where the objects have parent inverse matrices which differ from the Identity matrix. * I added the option to export sampled animations with a user defined sampling rate (new user interface option) * I briefly tested Object Animations and Rig Animations. What is still needed: * Cleanup the code * Optimize the user interface * Do the Documentation Reviewers: mont29 Reviewed By: mont29 Differential Revision: https://developer.blender.org/D3070
2018-02-22Fix T54136: Crash when deleting an object that is in an instanced groupDalai Felinto
We were not cleaning up groups after deleting objects, leaving groups with Bases that had no object. It includes a unittest. Reviewers: mont29
2018-02-18Merge branch 'master' into blender2.8Campbell Barton
2018-02-18Cleanup: add 2d suffix to BLI filesCampbell Barton
Some of these API's can have 3D versions, explicitly name them 2D.
2018-02-17Merge branch 'master' into blender2.8Brecht Van Lommel
2018-02-16Code cleanup: deduplicate code for running Python scripts outside Blender.Brecht Van Lommel
2018-02-16Tests: add OpenGL UI drawing tests.Brecht Van Lommel
This reuses the Cycles regression test code to also work for OpenGL UI drawing. We launch Blender with a bunch of .blend files, take a screenshot and compare it with a reference screenshot, and generate a HMTL report showing the failed tests and their differences. For Cycles we keep small reference renders to compare to in svn, but for OpenGL developers currently have to generate the references manually. How to use: * WITH_OPENGL_DRAW_TESTS=ON in CMake * BLENDER_TEST_UPDATE=1 ctest -R opengl_draw * .. make code changes .. * ctest -R opengl_draw * open build_dir/tests/opengl_draw/report.html Differential Revision: https://developer.blender.org/D3064
2018-02-16Tests: split off render report test code from Cycles tests.Brecht Van Lommel
This renames test environment variables from CYCLESTEST_* to BLENDER_TEST_*. Differential Revision: https://developer.blender.org/D3064
2018-02-15Merge branch 'master' into blender2.8Sergey Sharybin
2018-02-15Cleanup: use '_len' instead of '_size' w/ BLI APICampbell Barton
- When returning the number of items in a collection use BLI_*_len() - Keep _size() for size in bytes. - Keep _count() for data structures that don't store length (hint this isn't a simple getter). See P611 to apply instead of manually resolving conflicts.
2018-02-14Merge branch 'master' into blender2.8Campbell Barton
2018-02-14Cleanup: use prefix for testsCampbell Barton
Allows for running all `bmesh_*` or `object_*` tests.
2018-02-13Merge branch 'master' into blender2.8Campbell Barton
2018-02-12Add boolean regression test.Howard Trickey
2018-02-09Fix collection syncing when creating new collections from the outlinerDalai Felinto
We were not passing a scene collection parent to the BKE_collection_add function, which in turn made syncing not work. Right now we: * Explicitly pass the master collection in this case * Fallback to the master collection in other cases With unittest.
2018-02-08Merge branch 'master' into blender2.8Tamito Kajiyama
Conflicts: intern/cycles/blender/addon/ui.py
2018-02-08Cycles tests: separate directory for sss tests.Brecht Van Lommel
2018-01-31Make layers unittest pass after filter cleanupDalai Felinto
Update your svn lib. Unittests broken since 76289613910073.
2018-01-28Merge branch 'master' into blender2.8Campbell Barton
2018-01-26Tests: replace os.system w/ subprocess.callCampbell Barton
Saves on process creation and avoids being tripped up by command line parsing. Based on D2967 by @ldo with edits.
2018-01-19Fix collections names no longer unique when moved aroundDalai Felinto
We were not checking for uniqueness after moving. And in some cases the new siblings of our collection may have conflicting names.
2018-01-19Merge branch 'master' into blender2.8Campbell Barton
2018-01-19Cleanup: typosCampbell Barton
2018-01-18Merge branch 'master' into blender2.8Brecht Van Lommel
2018-01-17Memory: add MEM_malloc_arrayN() function to protect against overflow.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3002
2018-01-16Fix collection visibility evaluationDalai Felinto
Collection A [disabled] -> Collection B -> Collection C -> object Object should be invisible, but it is not. Reported by Antonio Vazquez. Bug introduced on: 1f5106de610b
2018-01-04tests: limit public API in view_layer_commonCampbell Barton
2018-01-04tests: replace boiler-plate with util functionCampbell Barton
This crept back in somehow!
2018-01-04Fix FOREACH_SCENE_COLLECTION/FOREACH_SCENE_OBJECT for nested collectionsDalai Felinto
This fixes any function that relied on these iterators such as: * Outliner Same Type * Metaballs * scene.objects We were not considering the collections when there was collections nested to the collections nested to the master collection. It includes a unittest.
2018-01-02Layers/Collections: Fix crash when deleting collectionDalai Felinto
If the collection to be deleted has a nested collection that is directly linked to a view layer, we were getting a crash.
2018-01-02Layers: Fix operator_context unittestDalai Felinto
This was broken since 70cdc8412c478b when we changed the requirement for context scene collection to be part of context view layer.
2018-01-02Layers: Fix collection_rename unittestDalai Felinto
This was broken since c9cb5dc3dab0af when we supported same name for non-sibling collections.
2017-12-27 Fix T53638: View layer renaming crashes 2/2Dalai Felinto
This fixes renaming the view layer via Python. This bug was introduced originally in 3a95bdfc65d. Although I suspect it was around for longer, since this commit didn't touch this part of the code. But basically we need the id of the RNA property to be the one that owns the data (view layer).
2017-12-19Merge branch 'master' into blender2.8Sergey Sharybin
2017-12-19Cycles tests: Enable texture space testsSergey Sharybin
2017-12-15Group collection viewport/render options and remove collection visibilityDalai Felinto
Users can change the group collection visibility in the outliner when looking at groups. Regular collections on the other hand don't have any special visibility control, if you need a collection to be invisible during render, either don't link it into the view layer used for F12, or disable it. This includes: * Updated unittests - update your lib/tests/layers folder. * Subversion bump - branches be aware of that. Note: Although we are using eval_ctx to determine the visibility of a group collection when rendering, the depsgraph is still using the same depsgraph for the viewport and the render engine, so at the moment the render visibility is ignored. Following next is a workaround for this separately to tag the groups before and after rendering to tackle that.
2017-12-01unittests: Update (fix) unittests after workspace API changeDalai Felinto
Tests were broken since e8c15e0ed15f8369d. We now get view_layer from window, not workspace, since the same workspace can have a different view_layer depending on the window scene.
2017-12-01Groups and collection: create group from collectionDalai Felinto
You could still create groups as before, with Ctl + G. This will create a group with a single visible collection. However you can also create a group from an existing collection. Just go to the menu you get in the outliner when clicking in a collection and pick "Create Group". Remember to instance the group afterwards, or link it into a new scene or file. The group and the collection are not kept in sync afterwards. You need to manually edit the group for further changes.
2017-11-27Fixing alembic unittest after render layer purgeDalai Felinto
2017-11-24Backgroudn set tests: Correct evaluation orderSergey Sharybin
All depsgraphs are sharing same object state for now, which means doing set scene evaluation after main scene evaluation will override all modifications done by the main scene.
2017-11-24Unittest: Update background set test to test for proper flagDalai Felinto
This test will fail until depsgraph is fixed. But introduced on 87c821ff26be.
2017-11-24Layers Unittest: Background setDalai Felinto
This is an incomplete test since we cannot check for the depsgraph selection value with the current API, nor can we see if the relationship lines are being drawn.
2017-11-23Merge branch 'master' into blender2.8Bastien Montagne
2017-11-23Add a new parallel looper for MemPool items to BLI_task.Bastien Montagne
It merely uses the new thread-safe iterators system of mempool, quite straight forward. Note that to avoid possible confusion with two void pointers as parameters of the callback, a dummy opaque struct pointer is used instead for the second parameter (pointer generated by iteration over mempool), callback functions must explicitely convert it to expected real type. Also added a basic gtest for this new feature.
2017-11-23Rename any instance of scene layer or render layer in code with view layerDalai Felinto
The RenderResult struct still has a listbase of RenderLayer, but that's ok since this is strictly for rendering. * Subversion bump (to 2.80.2) * DNA low level doversion (renames) - only for .blend created since 2.80 started Note: We can't use DNA_struct_elem_find or get file version in init_structDNA, so we are manually iterating over the array of the SDNA elements instead. Note 2: This doversion change with renames can be reverted in a few months. But so far it's required for 2.8 files created between October 2016 and now. Reviewers: campbellbarton, sergey Differential Revision: https://developer.blender.org/D2927