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
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
2017-11-10Layers Unittest: Hidden flag to quckly update diffsDalai Felinto
This is not the commit you are looking for ... This is not to be used lightly. But sometimes we change the name of the collections, the initial value they have, ... and this helps to quickly update the tests.
2017-11-10Unittest: Layers - include is_disabled for LayerCollectionDalai Felinto
And remove is_folder since it is not being used.
2017-10-31Layers: unittest update after workspace > engine changesDalai Felinto
All tests working again now. Remember to update the svn lib/tests/layers folder.
2017-08-16Depsgraph/Layers: Keep original visibility when doing full scene copyDalai Felinto
Originally we were not respecting the original visibility flags of the collections. However this is required for Copy-on-write (CoW). Remember to update the svn lib tests folder. I had to update some of the json files there. Also adding a new unittest for this particular issue: Test render_layer_scene_copy_f
2017-07-17Fix layers unittest - we cannot use nestted get_pointer callsDalai Felinto
Remember to update your //lib/tests folder as well. Patch by Bastien Montagne(mont29)
2017-07-17Revert "Unittests: Workaround for basact->object.id.name written as DATA"Dalai Felinto
This reverts commit aa578fba534d7d7cab215d8f57c478d641b05db7.
2017-07-17Unittests: Workaround for basact->object.id.name written as DATADalai Felinto
This was introduced on e7fb013a60dd. Although I would love to investigate the issue I'm mostly concerned with gettings the tests working again.
2017-07-17Unittests: Make sure layer tests pass with or without workspaceDalai Felinto
2017-06-30Fix T51877: Deleting a scene uses freed memoryDalai Felinto
At the moment libblock_remap_data_preprocess is using FOREACH_SCENE_OBJECT to iterate over all the objects of the scene and unlink them. However we were storing a reference to the Base of the removed object. Anyways, the loop is now sanitized so that this crash no longer happens. Also now we have an unittest for this.
2017-06-19Cleanup: move copy-paste code into functionCampbell Barton
2017-06-15Layers: Scene copy should copy selection as well.Dalai Felinto
We need this for Depsgraph, otherwise CoW scene will have different selection properties.
2017-06-09Fix failing render-layer tests after workpsace commitJulian Eisel
2017-04-20Corrections for layers unittest based on design changeDalai Felinto
Example, imagine an object Cube in collections 1 and 2 where both collections are nested to A. Now we set a "color" property as follow: ``` Scene -> GREEN -- A -> RED ↳ 1 -> BLUE ↳ 2 -> - ``` In this case the object will be RED, because of A↳ 2. Now if we have: ``` Scene -> GREEN -- A -> RED ↳ 1 -> - ↳ 2 -> PINK 1 -> - -- The object will be PINK because of A↳ 2. Note that the (top level) collection 1 doesn't influence the object color because there are no overrides on it. The scene render settings (GREEN in this case) are only used as fallback if an override is not set at all.
2017-04-19Unittests: Layer render settings evaluationDalai Felinto
More failing unittests to add to the existing ones.
2017-04-13Unittests for depsgraph layer collection render settings evaluationDalai Felinto
Some of the tests are failing at the moment. Those problems were introduced in eba09b1520
2017-04-10Layers unittest: layer_cyncing test was not being calledDalai Felinto
2017-04-10Unitettesting: Force python errors to show as errorDalai Felinto
2017-04-07Simplified some test code in render_layer_common.pySybren A. Stüvel
2017-04-07No more need to alter sys.path in each and every render_layer unit test.Sybren A. Stüvel
I tried the clean way, by setting the PYTHONPATH environment variable for CTest, using SET (CTEST_ENVIRONMENT blablab), but that didn't seem to work.
2017-04-07Tests: import blendfile without modifying sys.pathSybren A. Stüvel
2017-04-06Layer unittesting: pep8 touch up on test_evaluation_selectability_f.pyDalai Felinto
2017-04-03Layer/Depsgraph: Update depsgraph for new objectsDalai Felinto
2017-04-03Layer: Adding unittest for a problem with selectability evaluationDalai Felinto
This is currently failing (and causing the object_delete test to fail). To be fixed separately
2017-04-01Layers / Depsgraph: Unittesting for selection and visibility evaluationDalai Felinto
2017-03-31Layers: Fix scene copying after IDProperty changesDalai Felinto
(also unittest: split scene copy in 4 tests)
2017-03-31Layers unittest: Fix tests breaking since Folded was removedDalai Felinto
2017-03-31Layers unittest: Breaking pep8, but getting tests to work againDalai Felinto
I will investigate this further later. The big problem is that the way I'm running tests if I have any error (e.g., ImportError) the pass still pass.
2017-03-22Layer Unittesting: pep8 2/2Dalai Felinto
Mass replacing the common code of all tests ``` echo "Fixing $1" ed "$1" <<'EOF' 1,/Testing/d i from render_layer_common import * import unittest import os import sys sys.path.append(os.path.dirname(__file__)) . w q EOF ``` Using line-width of 120
2017-03-22Layer Unittesting: pep8 1/2Dalai Felinto
Manual corrections, using line-width of 120
2017-03-20Layers unittesting: update after doversion changesDalai Felinto
Collections now are called "Collection 1", instead of "1"
2017-03-13Outliner/layer: fix users trying to drop a collection into itself (recursion ↵Dalai Felinto
hell)
2017-03-10Layers: fix bug in move layer collection above/belowDalai Felinto
Reported by Julian Eisel (Severin)
2017-03-09Layers: move LayerCollectionDalai Felinto
This is to be used from the Outliner, when dragging and dropping collections from the Active Render Layer It also includes a cleanup on the outliner so it calls the new functions. Note: the outliner still needs fix to allow all the functionality here exposed. But this will be tackled by Julian Eisel later.
2017-03-09Layers: move SceneCollectionDalai Felinto
This is to be used from the Outliner, when dragging and dropping. It does not include moving LayerCollection (from Active Render Layer)
2017-03-02Fixup for layer rename unittest (rB3baa186724)Dalai Felinto
2017-03-02Layers unittest: isolate the depsgraph crash in individual testsDalai Felinto
(and re-order the tests alphabetically)
2017-03-01Add tests for layer renamingJulian Eisel
Could have an own file for each test, but this is good enough. With great help from @dfelinto, thanks!
2017-02-24Fix T50714: Collections: Adding object to scene without an existing collectionDalai Felinto
This was causing blender to segfault. We now add create a new collection and link to the layer before adding the new object (also included unittests, and requires updated lib/tests)
2017-02-24Unittest: split object_add in individual test filesDalai Felinto
(and small cleanup in unittest) This is required to the upcoming unittest + bugfix
2017-02-17Layers: Fix unittest after 65a75e11Dalai Felinto
2017-02-17Layers: Fix visibility evalution + UnittestingDalai Felinto
test_evaluation_visibility_a failed before, but it is now fixed test_evaluation_visibility_b passed before and was used as control to make sure it was not broken
2017-02-15Layer Unittest: use macro for testsDalai Felinto
2017-02-14Layers: Unittesting - make them granularDalai Felinto
Some tests may break Blender, which makes the entire unittest routine to fail. They are now I isolate the tests into individual files Kudos to Sybren Stüvel and Sergey Sharybin for the advice. Note: at the moment test_link.py is failing (since a41bbfb7)