Clément Foucault
a17bb772a0
Probe: Add object mode volume visualisation
2017-06-09 23:21:55 +02:00
Clément Foucault
85990343f6
Probe: Remove Bounding Box parameter.
...
After using it for like 30 sec, the min max bound box is absolutely not practical. Reverting into using a unit cube with object transform.
This also simplify the code.
In the future of center probes will be implemented using another object matrix (via an object pointer).
2017-06-09 23:21:23 +02:00
Clément Foucault
20572497a4
Eevee: Add parallax correction to probe reflections
2017-06-09 22:30:49 +02:00
Sergey Sharybin
ebb2c1511b
Fix missing updates when changing probe's clipping
...
Probes were completely out of depsgraph, so tagging them could not work at all.
For now using some placeholder operations just to ensure order of updates.
2017-06-09 18:06:10 +02:00
Dalai Felinto
dadb99074c
Fix crash when using sculpt dynamic smooth
2017-06-09 17:32:51 +02:00
Julian Eisel
2bb004e03d
Fix crash when deleting active workspace render-layer
...
Also fixes some failing unit-tests for render-layers.
2017-06-09 17:17:28 +02:00
Dalai Felinto
f35df9a25a
Draw Manager: stop using stack memory!
...
We still do it a few times, but that helps already. Related to T51718.
Note that it also reinforces the idea that any geometry datablock will
have a generated copy-on-write Mesh provided by Depsgraph.
2017-06-09 16:39:36 +02:00
Dalai Felinto
35f8a02496
Implement a new util function to get reference of mesh tex space
2017-06-09 16:39:36 +02:00
Clément Foucault
ccc625ce23
Eevee: Fix crash when saving file / opengl render.
2017-06-09 15:01:32 +02:00
Dalai Felinto
ee93bc806b
Eevee DoF: Use more reasonable UI range for anamorphic bokeh
...
Regular camera lens have a ratio of 1.0. The anamorphic bokeh can be
used freely as an artistic decision, but it's nice to clamp it to 2.0,
to match real cameras.
That end up giving a reference for artistis playing with the
parameters unaware of the more realistic limits.
2017-06-09 11:56:40 +02:00
Dalai Felinto
461ea375ad
Fix T51720: Depth of Field Bug - Black Screen
2017-06-09 11:56:22 +02:00
Campbell Barton
bb773acd5f
Merge branch 'master' into blender2.8
2017-06-09 19:40:47 +10:00
Campbell Barton
d7f33668d6
Math Lib: Add mat3_from_axis_conversion_single
...
Single axis version of mat3_from_axis_conversion,
when the second axis isn't important (orienting an arrow for eg).
2017-06-09 19:31:27 +10:00
Sergey Sharybin
d583af0026
Fix T51756: Fix crash when transforming vertices in edit mode
...
The issue was caused by under-allocation of UV islands calculation.
2017-06-09 10:46:00 +02:00
Sergey Sharybin
16ecd0b79e
Fix T51750: Group selection broken
...
Proper way, no base is involved.
2017-06-09 10:04:12 +02:00
Luca Rood
ab4b7b5368
Fix T51648: Inconsistent edge collapse point depending on orientation
...
Edge collapse was using bounding box center as the point to collapse to.
When collapsing multiple adjacent edges together, this caused
inconsistencies in placement of the collapsed point, depending on the
orientation of the edges in relation to the space axis.
This makes edge collapse use the mean point instead.
2017-06-09 10:03:46 +02:00
Dalai Felinto
3a60b4511e
Revert "Fix T51750: Group selection broken"
...
This reverts commit 484e3527d1 .
2017-06-09 09:42:08 +02:00
Bastien Montagne
58de2164c9
Fix for fix for bplayer (c) :/
2017-06-09 09:23:54 +02:00
Bastien Montagne
03a5da0a63
Fix bplayer building (c)
2017-06-09 09:13:54 +02:00
Clément Foucault
3b9e8b385c
Fix compilation issue
2017-06-09 01:28:43 +02:00
Clément Foucault
67913c603c
Probe: Add influence display and rework UI.
2017-06-09 01:15:17 +02:00
Clément Foucault
e45ebec335
Probes: Add more parameters.
...
Add Min Max for box, and distance for sphere falloff.
Same for parallax.
Add clip distances.
2017-06-09 01:15:17 +02:00
Clément Foucault
974c0cc7b6
Eevee: First commit of Probe support.
2017-06-09 01:15:17 +02:00
Clément Foucault
cadb950490
Draw Manager: Add request redraw method.
...
This is extremly hacky and against notifier design. This must be revisited later.
We might want to mimic external renderer way of requesting redraw.
2017-06-09 01:15:17 +02:00
Clément Foucault
1ee5d08c95
Draw Manager: Add support for temporary matrix override.
...
This allow to specify custom matrices for certain specific passes.
2017-06-09 01:15:17 +02:00
Clément Foucault
4abb3c1bc4
Draw Manager, GPUTexture: Add support for binding individual cubeface to framebuffer.
2017-06-09 01:15:17 +02:00
Clément Foucault
c1009af596
Probe: Add panel and "Add-menu" items.
...
Also revisits defaults.
2017-06-09 01:15:17 +02:00
Clément Foucault
4df449edd5
Probe: Add initial visualisation
2017-06-09 01:15:17 +02:00
Clément Foucault
f6898f9ae5
Probe: fix some missing bits / errors in RNA ...
2017-06-09 01:15:17 +02:00
Clément Foucault
618aef1e58
Eevee: Fix normal orientation on default shader.
2017-06-09 01:15:17 +02:00
Clément Foucault
73949ffbf3
DNA_ID Fix comment
2017-06-09 01:15:17 +02:00
Clément Foucault
cc31d7bb49
Probe: Add new object datablock
...
We went for a new datablock because blending probe functionality with empties was going to be messy.
2017-06-09 01:15:17 +02:00
Campbell Barton
346619159a
Merge branch 'master' into blender2.8
2017-06-09 07:21:43 +10:00
Campbell Barton
8a757bf34a
RNA: remove static strings from registration
...
* Static strings aren't needed anymore, use stack memory.
* Fix obscure leak on failed macro registration.
* Use prefix for wrappers exported from bpy module.
2017-06-09 07:20:25 +10:00
Campbell Barton
46c073e4ac
Cleanup: cmake indentation, missing include
2017-06-09 06:45:21 +10:00
Dalai Felinto
836c3c14cc
Remove unused lay value from Dupli object evaluation context
2017-06-08 19:28:54 +02:00
Dalai Felinto
c5daddbef3
Revert "Fix some groups not showing in the viewport"
...
This reverts commit c19fedf636 .
2017-06-08 19:03:42 +02:00
Dalai Felinto
c19fedf636
Fix some groups not showing in the viewport
...
If the group was freshly created in 2.8 from a new object, this will prevent the object to be shown.
2017-06-08 19:03:38 +02:00
Dalai Felinto
484e3527d1
Fix T51750: Group selection broken
...
This was introduced in 23c93873f4 .
This could be moved to deg_flush_base_flags_and_settings but since we
only need this for duplis I think it's fine to be handled separately.
2017-06-08 19:00:30 +02:00
Sergey Sharybin
9bcc44d505
Depsgraph: Avoid over-documentation
...
The comment adds zero information.
2017-06-08 16:12:04 +02:00
Sergey Sharybin
2335bfeaa0
Avoid allocation of evaluation context for iterator
...
Use stack-allocated context when possible.
2017-06-08 16:11:14 +02:00
Bastien Montagne
c71e160c02
Fix T51733: 3d print toolbox checks report false positives.
...
Colinear vertices in a same face would not be handled correctly.
2017-06-08 14:05:36 +02:00
Sergey Sharybin
2f9cfda459
Fix compilation error after recent depsgraph cleanup
2017-06-08 10:59:33 +02:00
Sergey Sharybin
23c93873f4
Remove selection color from the base
...
Use indirect access to it via object.
It was already flushing from base to object, now we can avoid such flushing.
Still weird to have selection color filled in by dependency graph, but now
there is no synchronization going on at least.
2017-06-08 10:46:45 +02:00
Luca Rood
d675415eef
Replace all old DAG calls with direct calls to new DEG and remove BKE_depsgraph.h
...
This removes BKE_depsgraph.h and depsgraph.c
2017-06-08 10:17:04 +02:00
Bastien Montagne
ff6b249046
Simplify Array modifier 'relative offset' handling.
...
Was looping three times over the source mesh's vertices to get min/max
along all three axes... Nothing critical, but still!
2017-06-08 09:17:08 +02:00
Campbell Barton
7f480352ca
WM: move manipulator library into editors
...
As with operators, the window-manager has the API for defining,
the editor can implement and register its own manipulators.
This exposes wmManipulator, keeping it opaque isn't
practical if editors and Python are to implement their own.
2017-06-08 07:42:17 +10:00
Mike Erwin
a5242d08fb
cleanup floating point literals
2017-06-07 16:20:37 -04:00
Campbell Barton
575db256db
WM: add wmManipulatorType, from wmManipulator
...
Having the type in mixed in with each instance
made it hard to expose types to RNA/Python.
2017-06-08 05:30:21 +10:00
Joshua Leung
d25ab3fcc4
Fix: GP Clone brush was not correcting color references for pasted strokes either
2017-06-08 03:23:31 +12:00