Age | Commit message (Collapse) | Author |
|
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
|
|
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.
|
|
And remove is_folder since it is not being used.
|
|
All tests working again now.
Remember to update the svn lib/tests/layers folder.
|
|
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
|
|
Remember to update your //lib/tests folder as well.
Patch by Bastien Montagne(mont29)
|
|
This reverts commit aa578fba534d7d7cab215d8f57c478d641b05db7.
|
|
This was introduced on e7fb013a60dd. Although I would love to investigate the
issue I'm mostly concerned with gettings the tests working again.
|
|
|
|
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.
|
|
|
|
We need this for Depsgraph, otherwise CoW scene will have different selection properties.
|
|
|
|
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.
|
|
More failing unittests to add to the existing ones.
|
|
Some of the tests are failing at the moment.
Those problems were introduced in eba09b1520
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
This is currently failing (and causing the object_delete test to fail). To be fixed separately
|
|
|
|
(also unittest: split scene copy in 4 tests)
|
|
|
|
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.
|
|
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
|
|
Manual corrections, using line-width of 120
|
|
Collections now are called "Collection 1", instead of "1"
|
|
hell)
|
|
Reported by Julian Eisel (Severin)
|
|
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.
|
|
This is to be used from the Outliner, when dragging and dropping.
It does not include moving LayerCollection (from Active Render Layer)
|
|
|
|
(and re-order the tests alphabetically)
|
|
Could have an own file for each test, but this is good enough.
With great help from @dfelinto, thanks!
|
|
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)
|
|
(and small cleanup in unittest)
This is required to the upcoming unittest + bugfix
|
|
|
|
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
|
|
|
|
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)
|