Bastien Montagne
346964eb3f
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/editors/gpencil/drawgpencil.c
2017-04-10 16:53:12 +02:00
Jacques Lucke
73a9ff0d2d
PyAPI: Fast buffer access to id property arrays
...
Support Python's buffer protocol for ID-properties.
2017-04-10 21:12:02 +10:00
Dalai Felinto
b6ba507c1b
Layers unittest: layer_cyncing test was not being called
2017-04-10 10:08:29 +02:00
Dalai Felinto
90b2b99505
Unitettesting: Force python errors to show as error
2017-04-10 10:03:02 +02:00
Campbell Barton
c800ee6bfe
Merge branch 'master' into blender2.8
2017-04-09 16:09:12 +10:00
Sergey Sharybin
8c22a974d6
Tests: Compare vectors with epsilon
...
SOlves the test false-positively failing in 32 bit environment.
2017-04-07 18:28:38 +02:00
Sybren A. Stüvel
31c272e840
Simplified some test code in render_layer_common.py
2017-04-07 17:51:23 +02:00
Sybren A. Stüvel
ad60283bc8
No more need to alter sys.path in each and every render_layer unit test.
...
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-07 17:50:47 +02:00
Sybren A. Stüvel
6cf3fa9ff0
Tests: import blendfile without modifying sys.path
2017-04-07 17:29:14 +02:00
Sybren A. Stüvel
063bae4fcc
Merge branch 'master' into blender2.8
...
# Conflicts:
# source/blender/alembic/intern/abc_exporter.h
# source/blender/alembic/intern/abc_util.cc
2017-04-07 17:28:22 +02:00
Bastien Montagne
102966b12e
Fix building alembic gtest with buildinfo...
2017-04-07 10:44:13 +02:00
Sybren A. Stüvel
fa827374a7
Alembic: rotation mode issue in copy_m44_axis_swap, and added unit tests.
2017-04-06 16:47:01 +02:00
Sybren A. Stüvel
b6775cd684
Added float[][] comparison macros to testing.h
...
I've moved EXPECT_M3_NEAR from abc_matrix_test.cc to testing.h, as that's
a more suitable location.
2017-04-06 16:47:01 +02:00
Sybren A. Stüvel
c2fec0f1b0
Alembic: Renamed create_rotation_matrix to create_swapped_rotation_matrix and more:
...
Also replaced the bool param "to_yup" with "AbcAxisSwapMode mode", so that
it's more explicit that axes are swapped.
Also added unittests for create_swapped_rotation_matrix.
2017-04-06 16:47:01 +02:00
Dalai Felinto
967b04cb07
Layer unittesting: pep8 touch up on test_evaluation_selectability_f.py
2017-04-06 12:22:21 +02:00
Dalai Felinto
a78e97b206
Layer/Depsgraph: Update depsgraph for new objects
2017-04-03 18:47:50 +02:00
Dalai Felinto
db6b4639fc
Layer: Adding unittest for a problem with selectability evaluation
...
This is currently failing (and causing the object_delete test to fail). To be fixed separately
2017-04-03 17:46:03 +02:00
Dalai Felinto
97b9afda37
Layers / Depsgraph: Unittesting for selection and visibility evaluation
2017-04-01 01:22:39 +02:00
Dalai Felinto
b0998df608
Layers: Fix scene copying after IDProperty changes
...
(also unittest: split scene copy in 4 tests)
2017-03-31 17:37:52 +02:00
Dalai Felinto
d9b89ca0d0
Layers unittest: Fix tests breaking since Folded was removed
2017-03-31 17:37:49 +02:00
Dalai Felinto
1f17b72efe
Layers unittest: Breaking pep8, but getting tests to work again
...
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-31 17:37:45 +02:00
Campbell Barton
2be098a1a0
Merge branch 'master' into blender2.8
2017-03-29 20:20:53 +11:00
Campbell Barton
c2d3bb7090
Remove non-bmesh case from test
2017-03-29 20:11:54 +11:00
Campbell Barton
6332e0e1f7
Use 'empty' option for clearing factory settings
2017-03-29 20:11:54 +11:00
Campbell Barton
0c93bc2b63
Merge branch 'master' into blender2.8
2017-03-25 13:39:47 +11:00
Campbell Barton
bc0b5d611c
Cleanup: minor edits to path test
...
No need for redundant ID's and correct arg order
2017-03-24 17:48:22 +11:00
Campbell Barton
50f9fc7a53
BLI_path_util: Add BLI_path_join
...
There weren't any convenient ways to join multiple paths in C
that accounted for corner cases.
2017-03-24 17:40:35 +11:00
Dalai Felinto
505cc694b3
Layer Unittesting: pep8 2/2
...
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-22 15:27:47 +01:00
Dalai Felinto
6883a983e6
Layer Unittesting: pep8 1/2
...
Manual corrections, using line-width of 120
2017-03-22 15:27:20 +01:00
Campbell Barton
d0253b2ea4
BLI_path_util: add BLI_path_name_at_index
...
Utility to get a file/dir in the path by index,
supporting negative indices to start from the end of the path.
Without this it wasn't straightforward to get
the a files parent directory name from a filepath.
2017-03-22 19:34:43 +11:00
Dalai Felinto
a6d4ac28f5
Layers unittesting: update after doversion changes
...
Collections now are called "Collection 1", instead of "1"
2017-03-20 10:30:19 +01:00
Campbell Barton
3f818c7898
Merge branch 'master' into blender2.8
2017-03-20 09:32:40 +11:00
Jacques Lucke
56d3cc9341
PyAPI: ID Property tests
2017-03-19 03:57:40 +11:00
Dalai Felinto
ddedcf7ada
Outliner/layer: fix users trying to drop a collection into itself (recursion hell)
2017-03-13 17:38:37 +01:00
Dalai Felinto
1100ddeaa9
Layers: fix bug in move layer collection above/below
...
Reported by Julian Eisel (Severin)
2017-03-10 16:48:09 +01:00
Dalai Felinto
d9f42e5fab
Layers: move LayerCollection
...
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-08 23:35:54 +01:00
Dalai Felinto
3a1748146b
Layers: move SceneCollection
...
This is to be used from the Outliner, when dragging and dropping.
It does not include moving LayerCollection (from Active Render Layer)
2017-03-08 23:35:54 +01:00
Dalai Felinto
007fcfc193
Fixup for layer rename unittest (rB3baa186724)
2017-03-02 09:52:33 +01:00
Dalai Felinto
a65af5d0cf
Layers unittest: isolate the depsgraph crash in individual tests
...
(and re-order the tests alphabetically)
2017-03-02 09:40:17 +01:00
Julian Eisel
3baa186724
Add tests for layer renaming
...
Could have an own file for each test, but this is good enough.
With great help from @dfelinto, thanks!
2017-03-01 20:14:20 +01:00
Luca Rood
6ab9af0083
Merge branch 'master' into blender2.8
2017-02-27 16:08:25 -03:00
Campbell Barton
f7d67835e9
Cleanup: typo in struct name
2017-02-28 00:38:33 +11:00
Dalai Felinto
2f9a0dfe64
Fix T50714: Collections: Adding object to scene without an existing collection
...
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-24 10:10:24 +01:00
Dalai Felinto
8261a84ffb
Unittest: split object_add in individual test files
...
(and small cleanup in unittest)
This is required to the upcoming unittest + bugfix
2017-02-24 10:10:24 +01:00
Bastien Montagne
322b1d3187
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/editors/animation/anim_draw.c
2017-02-17 20:03:55 +01:00
Dalai Felinto
7868c0aa8b
Layers: Fix unittest after 65a75e11
2017-02-17 18:27:32 +01:00
Dalai Felinto
9cb44cbba1
Layers: Fix visibility evalution + Unittesting
...
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-17 14:08:31 +01:00
Sergey Sharybin
26c8d559fe
Register test for mesh.split_faces()
2017-02-16 15:36:00 +01:00
Sergey Sharybin
5cbaf56b26
Cyctes tests: Commit blender.git side changes
2017-02-16 10:36:22 +01:00
Dalai Felinto
e30bc6f517
Layer Unittest: use macro for tests
2017-02-15 12:12:59 +01:00