Campbell Barton
3a75e84376
Draw Manager: edit-mode 3d text drawing
...
Draw cursor and selection, also support for fast-display.
2017-04-21 17:58:18 +10:00
Campbell Barton
2b9738b7f8
Merge branch 'master' into 28
2017-04-21 17:14:13 +10:00
Campbell Barton
13ee5ba467
Store edit-font select-box length
...
A little awkward to calculate when drawing.
2017-04-21 17:12:43 +10:00
Stefan Werner
aeda1a16f3
D2607: Switch eye dropper to use linear color space internally
...
This switches the internal color representation of the eye dropper from display space to linear. Any time a linear color is requested and the color is picked from a linear object, the result is now precise to the bit as the color gets patched through directly. Color space conversion now only happens when a color is picked from non-linear display space objects or when the color is requested to be returned in non-linear space.
In addition, this patch changes the DifferenceMatte node to interpret a tolerance of 0.0 to accept colors that are identical bit by bit, as apposed to simply refusing all colors.
2017-04-20 22:41:26 +02:00
Stefan Werner
b628f765b0
D2608: Allow HDR picking from Compositor background
...
Replaced some STREQ(snode->tree_idname, ...) calls with ED_node_is_*() calls for improved readability, fixed one case where the STREQ was used the wrong way
2017-04-20 22:32:00 +02:00
Campbell Barton
c4780ee459
Cleanup: redundant struct qualifier & long lines
2017-04-21 04:40:44 +10:00
Campbell Barton
d21a4407dc
Cleanup: rename & change order of declaration
2017-04-21 04:29:33 +10:00
Campbell Barton
677aa36632
Curve: draw curve/surface/text geometry
...
Note that displists will be removed, but this wont be hard to replace.
Signed-off-by: Campbell Barton <ideasman42@gmail.com >
2017-04-21 04:23:28 +10:00
Luca Rood
ca958642fa
Fix Surface Deform not unbinding if target is removed
2017-04-20 17:49:45 +02:00
Dalai Felinto
9d1421c069
RNA: depsgraph.objects
...
Iterator to return the objects evaluated from depsgraph. The
iterator itself will change once CoW is implemented.
This reproduces the behaviour of DEG_OBJECT_ITER but for Python.
2017-04-20 17:21:06 +02:00
Dalai Felinto
f2a2adc910
RNA: bpy.context.depsgraph
2017-04-20 17:20:56 +02:00
Sergey Sharybin
74023d46ce
Implement DAG_get_scene_layer
...
Even though this will have to change once we get workspaces, we will
still have a depsgraph for the Scene.
This is required for the upcoming depsgraph.objects RNA iterator.
2017-04-20 17:18:31 +02:00
Sybren A. Stüvel
52295dd480
Alembic export: don't show warning for every exported frame
...
The warning about not having a UV map is now only shown once per hair
system.
2017-04-20 15:30:13 +02:00
Luca Rood
ee3faddfaa
Fix T45350: Cache not being recomputed with "Bake All Dynamics"
2017-04-20 15:01:21 +02:00
Campbell Barton
66377b89da
Fix T51251: Armature/Normal-button scaled twice
2017-04-20 22:12:08 +10:00
Campbell Barton
afc885cd13
Draw Manager: round vertex size up
...
Without this assigning `gl_PointSize = sizeVertex`
made vertices too small.
2017-04-20 21:16:37 +10:00
Campbell Barton
84c464a4b8
Use theme vertex size for lattice & curve vertices
2017-04-20 21:16:37 +10:00
Clément Foucault
3d17ece539
Eevee: Start Implementation of Cascaded Shadow Maps
2017-04-20 13:07:51 +02:00
Clément Foucault
b386828671
Eevee: Do shadow cube render in one pass.
2017-04-20 13:07:51 +02:00
Clément Foucault
3fa665f56d
Draw Manager: Fix Gradient Background
2017-04-20 13:07:51 +02:00
Campbell Barton
6028ff2736
Correct error drawing curve normals
2017-04-20 21:01:23 +10:00
Sybren A. Stüvel
aa4102a441
Merge branch 'master' into blender2.8
...
Disabled a unittest, to be re-enabled when T51261 is fixed.
# Conflicts:
# source/blender/alembic/intern/alembic_capi.cc
2017-04-20 12:50:20 +02:00
Sybren A. Stüvel
ae79eb2105
Alembic import: select imported objects
...
When the Alembic import is finished, all imported objects are selected.
2017-04-20 12:01:31 +02:00
Dalai Felinto
913472165b
Fix T51215: depsgraph evaluation of collection properties (overrides)
2017-04-20 11:00:32 +02:00
Dalai Felinto
3cb0e8e1af
IDProperty: New util function to merge groups recursively
2017-04-20 11:00:32 +02:00
Sergey Sharybin
b5b0fc9c94
Cleanup: Use explicit unsigned int type
...
This is as per our code style states ans as majority of the team
prefers types to be used.
2017-04-20 10:56:08 +02:00
Campbell Barton
09bf8f4a69
Use reflect for calculating second normal
2017-04-20 18:56:53 +10:00
Alexander Romanov
31c644b657
Fix T51198: Crash with new Datablock ID Properties
2017-04-20 11:40:31 +03:00
Campbell Barton
d8bf090090
Merge branch 'master' into 28
2017-04-20 18:16:01 +10:00
Campbell Barton
6da53e46c9
Use reflect for calculating second normal
2017-04-20 18:08:05 +10:00
Campbell Barton
9bb8e46460
Docs: move note (was mixed up)
2017-04-20 17:11:12 +10:00
Campbell Barton
462d9e37ea
Cleanup: remove type prefix from render-data vars
...
Render data is never mixed with other object types,
no need to make a distinction.
2017-04-20 16:25:20 +10:00
Brecht Van Lommel
6c26911c3d
Fix T51248: user preferences window size not adapted to DPI.
2017-04-20 01:19:47 +02:00
Bastien Montagne
c7c162e2e0
Fix merge of master (no more base...).
2017-04-19 22:13:57 +02:00
Bastien Montagne
6a5b53fe6f
Merge branch 'master' into blender2.8
2017-04-19 22:11:53 +02:00
Bastien Montagne
1873ea337c
Fix T51243: Delete Globally won't work with Datablock ID Properties.
...
That's a quick hack to address that specific case, new pointer IDProp
actually enlights a generic problem - datablocks using themselves - which
is not really handled by current code, would consider this not-so-urgent
TODO though.
2017-04-19 22:07:57 +02:00
Campbell Barton
a738e985c6
Fix update drawing curve editmode
2017-04-20 05:55:48 +10:00
Bastien Montagne
1c28e12414
Fix (unreported) missing handling of GPencil Layer's parent Object pointer in BKE_library_query.
...
Grrrr... still finding missing pointers here... :/
2017-04-19 21:47:01 +02:00
Campbell Barton
72efee07ff
Draw Manager: draw curve normals
2017-04-20 05:33:52 +10:00
Campbell Barton
896d62d1c2
Fix error disabling curve handles
2017-04-20 04:53:55 +10:00
Campbell Barton
43a273616b
No need for while-loop counting curve-normals
2017-04-20 03:01:13 +10:00
Campbell Barton
e28a92bacb
Cleanup: put overlay & wire in own structs
2017-04-20 02:53:33 +10:00
Sybren A. Stüvel
307059ed61
Alembic import: correctly linking objects to scene layer.
...
The import is always performed on the active LayerCollection. If there
is none, a new one is created.
2017-04-19 17:30:06 +02:00
Sergey Sharybin
248946542d
Fix alpha overlay for sculpt/paint when using core profile
...
Same fundamental problem as fonts -- there is no longer GL_ALPHA format.
2017-04-19 16:57:44 +02:00
Sergey Sharybin
e708f45eab
Cleanup: Remove executable flag from GLSL shaders
2017-04-19 16:57:44 +02:00
Sergey Sharybin
553d820b80
Remove basic shader from paint cursor overlay
...
Immediate mode built-in shader is used for this drawing already.
So there is no reason to try building basic shader which is not
supported in the core profile.
2017-04-19 16:57:44 +02:00
Luca Rood
4bee5b80d4
Convert direct usages of base defines
...
This replaces all direct usage of:
- FIRSTBASE
- LASTBASE
- BASACT
- OBACT
Some usages still remain in legacy utility functions which are called
all over the place.
2017-04-19 16:52:27 +02:00
Luca Rood
2f2420709c
Remove local view toggle operator
2017-04-19 16:52:27 +02:00
Campbell Barton
1427765ec5
Cleanup: remove redundant assignments
...
Return the 'Batch' instead of assigning a variable.
2017-04-20 00:52:53 +10:00
Campbell Barton
cdba73c8fa
Draw Manager: curve support
...
Draws the curve centerline and editmode verts/handles.
Handle theme colors, and normal display still need adding.
2017-04-20 00:38:44 +10:00