Clément Foucault
3e4b9d2b5a
Eevee: Initial implementation of planar reflections.
...
Still pretty barebone: No roughness support, No normal distortion support.
2017-06-19 10:47:56 +02:00
Clément Foucault
5c67ac2236
Eevee: Add special shader for depth prespass.
...
This way we can extend it to output more data (like motion vectors).
Add a variation that uses clip distances.
2017-06-19 10:47:56 +02:00
Clément Foucault
539225db81
DrwManager: Remove the need for buffers to be available.
...
This way we can just avoid binding a texture by setting it's ref to NULL.
2017-06-19 10:47:56 +02:00
Clément Foucault
6dbe2b0385
DrwManager: Remove unnecessary ifs.
2017-06-19 10:47:56 +02:00
Clément Foucault
83a001267a
Probe: Add planar type.
2017-06-19 10:47:56 +02:00
Clément Foucault
9a5cb2e6f8
DrwManager: Add support for Custom Clipping Planes
2017-06-19 10:47:56 +02:00
Clément Foucault
9a040fa3d4
DrwManager: Add the possibility to invert backfacing.
...
This is done in order to support planar reflection rendering.
2017-06-19 10:47:56 +02:00
Clément Foucault
8a10fa1c53
GPUFramebuffer: Add support to attach individual texture layer.
2017-06-19 10:47:56 +02:00
Campbell Barton
7b14065729
Manipulator: de-duplicate flags and scale option
2017-06-19 17:52:26 +10:00
Campbell Barton
9649c6bef5
Merge branch 'master' into blender2.8
2017-06-19 15:06:48 +10:00
Campbell Barton
72c9141a7a
Cleanup: doxygen comments
...
Also remove duplicate & mismatching comments from grease-pencil header.
Keep comments close to implementation to avoid getting out of sync.
2017-06-19 10:04:30 +10:00
Bastien Montagne
3190eaf109
Fix T51774: Children particles hair interpolation not correct with textures or dp.
...
Children where always getting at least one segment of fixed length...
Now fully hidden ones (zero length) get no segment at all.
Note that even very short ones keep getting one 'unit' length segment - would
rather avoid changing that at this point, given how complex children
particles 'length' can get with all kind of modifiers... Think we can
live with that for now anyway.
2017-06-19 00:03:36 +02:00
Thomas Beck
f158a206f2
Fix T51840: UI redraw in node editor header missing on pointcache bake
...
Missing a notifier handler in the node editor
2017-06-18 16:31:59 +02:00
Lukas Stockner
cd8c46627f
Fix unreported: Copy-pasting nodes crashes when they have an undefined type
2017-06-18 05:14:26 +02:00
Campbell Barton
cf7447dacb
Manipulator: comments
2017-06-18 09:08:30 +10:00
Campbell Barton
f860369ebf
Manipulator: use matrix for manipulator direction
...
Remove type-specific axis functions.
2017-06-18 08:37:50 +10:00
Campbell Barton
49be79693c
Manipulator: use matrix instead of origin
...
This avoids having to use manipulator-type specific functions
to set the orientation.
And will make it simpler to access transformation from Python.
Currently the matrix is still used as an offset in places.
Also per-type orientation values still need to be removed.
2017-06-18 05:38:10 +10:00
Campbell Barton
1ec987f73c
Add Cone: tip soft-min should be zero
...
Default value should be included in range.
2017-06-18 02:07:22 +10:00
Campbell Barton
83c28ff96a
Merge branch 'master' into blender2.8
2017-06-18 01:44:08 +10:00
Campbell Barton
54f0f87a4b
Cleanup: use uint
2017-06-18 01:34:41 +10:00
Campbell Barton
a56de26704
Manipulator: draw options for dial
...
- Option to start helper angle lines based on a vector
instead of the initial mouse coords (useful for bisect & spin).
- Option to show 2x helper lines
useful when dial is used to rotate an axis value.
2017-06-17 15:32:47 +10:00
Campbell Barton
865bf8ecbc
Manipulator: correct dial angle
...
Calculation was done in screen-space giving inaccuracy,
making the angle incorrect for tool code.
Cast mouse coords onto the dial plane to calculate the angle instead.
2017-06-17 14:34:23 +10:00
Campbell Barton
57c9bc9bb0
Manipulator: fix general purpose dial use
...
Wasn't checking own location when checking if flip is needed.
2017-06-17 11:55:53 +10:00
Campbell Barton
03f67fd5b0
Cleanup: unused code
2017-06-17 11:32:30 +10:00
Campbell Barton
608cabe2a1
Manipulator: Ignore zoom-level for on-screen widgets
2017-06-17 11:24:26 +10:00
Campbell Barton
41e22cccee
Camera widget only drew 3 sides
2017-06-17 11:09:08 +10:00
Campbell Barton
aeeebacd6a
Cleanup: minor consistency tweak for type name
2017-06-17 10:04:48 +10:00
Campbell Barton
8c22d31dcc
Manipulator: remove type specific 'new' functions
...
Instead use generic 'WM_manipulator_new', adding a new 'setup'
callback (like wmManipulatorGroup.setup) used to initialize type vars.
This moves conventions closer to wmOperator and simplifies exposing to
Python.
2017-06-17 10:02:54 +10:00
Campbell Barton
71b70b23b3
Manipulator: initial manipulator for spin operator
2017-06-17 06:38:51 +10:00
Campbell Barton
df017f7867
Manipulator: New grab preset, use for bisect
2017-06-17 06:14:29 +10:00
Campbell Barton
2b8d599b3a
Manipulator: add array get/set functions
2017-06-17 02:38:49 +10:00
Aaron Carlisle
ed6d88f06a
PyAPI: Fix warning about indent
2017-06-16 12:30:18 -04:00
Dalai Felinto
946bc4d3c1
Fix object selection doversion issue since Workspace
...
Workspace commit (7f564d74f9 ) made
selection to not be carried away from 2.7x files into 2.8.
2017-06-16 18:12:22 +02:00
Bastien Montagne
34389999b2
Usual i18n/UI messages fixes.
...
Please do not add useless tooltips! We have enough messages to translate
already...
2017-06-16 12:50:24 +02:00
Campbell Barton
e306499a41
Missed last commit
2017-06-16 08:52:42 +10:00
Campbell Barton
637fa5f670
Cleanup: rename manipulator files
2017-06-16 08:51:14 +10:00
Campbell Barton
65905a76c2
Add bisect manipulator
...
Example that uses library widgets to control an operator,
the API hasn't been reviewed yet so this can be seen as a test.
2017-06-16 08:25:24 +10:00
Campbell Barton
400d3f85e1
Add support for delayed manipulator removal
...
This is needed so manipulators can tag themselves for removal
without causing problems from freeing data within a callback.
Also use properties within the dial manipulator and fix an error where
removing a wmManipulatorGroupType didn't remove its keymap.
2017-06-16 08:20:27 +10:00
Campbell Barton
4054914813
UV manipulator from custom widgets branch
...
This isn't advanced, just adding to get custom
manipulator branch from being too much out of sync with 2.8.
2017-06-16 07:34:23 +10:00
Dalai Felinto
cd21236ea1
Fix duplication of scene, it was missing duplication of layer properties
2017-06-15 18:37:02 +02:00
Campbell Barton
51404724cc
Merge branch 'master' into blender2.8
2017-06-16 01:29:20 +10:00
Campbell Barton
1d966ca7a1
Math Lib: add angle_on_axis_v3v3_v3
...
Use for calculating the angle between 2 directions on an axis.
Also signed version and normalized plane projection,
use when input is normalized.
2017-06-16 01:27:58 +10:00
Bastien Montagne
60c5b3f76f
Merge branch 'master' into blender2.8
2017-06-15 16:37:10 +02:00
Bastien Montagne
3d03616772
Cleanup: do not use BKE_libblock_free_ex() unless needed!
2017-06-15 16:20:51 +02:00
Bastien Montagne
a35e733ff1
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/collada/MeshImporter.cpp
source/blender/editors/object/object_add.c
source/blender/editors/screen/screen_edit.c
2017-06-15 15:54:11 +02:00
Bastien Montagne
880e96dd66
Fix/workaround 'convert object' messing up linked data.
...
'Convert To...' Object operation has very weird effect of actually
working at obdata level, not object level, which means *all* objects
(even unselected/hidden/in other scenes/...) using same obdata will be
converted to new selected type.
IMHO this is very bad behavior, but... not a bug really, so do not
change this for now.
But at least, do not do that when working on some linked data, else it
leaves Blend file in invalid (incoherent) state until next reload.
So workaround for now is to enforce the 'Keep Original' option when some
linked object/obdata is affected by the operation.
Also fixed somewhat broken usercount handling in Curve->Mesh part.
2017-06-15 15:47:16 +02:00
Dalai Felinto
60a36f2028
Eevee: Use PROP_NONE for probe grid resolution
...
It makes no sense to use PROP_PIXEL as unit here.
2017-06-15 15:02:32 +02:00
Dalai Felinto
32cd8ac710
Layers: Scene copy should copy selection as well.
...
We need this for Depsgraph, otherwise CoW scene will have different selection properties.
2017-06-15 13:47:14 +02:00
Bastien Montagne
9e0a253ea1
Cleanup: make Group Unlink outliner action use `BKE_libblock_delete() too.
...
Same as in rB2bd51474a44...
2017-06-15 13:06:31 +02:00
Bastien Montagne
ddb8330571
Cleanup: remove useless call to BKE_screen_free() in screen deletion.
...
`BKE_libblock_free()` will call it itself.
2017-06-15 13:00:11 +02:00