Campbell Barton
ce56088bcd
Gizmo: use ED_view3d_win_to_3d_on_plane
2018-09-20 11:38:11 +10:00
Campbell Barton
6a01f62df4
Merge branch 'master' into blender2.8
2018-09-20 11:26:31 +10:00
Campbell Barton
470407ec3b
3D View: point-on-plane from screen location utility
2018-09-20 11:24:13 +10:00
Campbell Barton
2c30922e2c
Fix spin/rotate gizmo not updating view orientation
...
Check for navigation didn't refresh when navigation was completed.
2018-09-20 10:19:59 +10:00
Campbell Barton
83ac16d241
Merge branch 'master' into blender2.8
2018-09-20 10:11:01 +10:00
Campbell Barton
0acc1b4c6c
Cleanup: style
2018-09-20 10:06:59 +10:00
Clément Foucault
5ada6e7540
GPUTexture: Fix HDRI being clamped on OSX
...
Seems like GLEW_ARB_texture_float is not defined in core profile on OSX
even if float textures are part of the 3.3 core spec.
So removing uneeded backup cases.
2018-09-19 23:59:25 +02:00
Antonioya
e620380cc2
GP: Rename eraser brushes
2018-09-19 23:24:52 +02:00
Campbell Barton
87b628db2a
Cleanup: style
2018-09-20 07:15:45 +10:00
Wybren van Keulen
104fb1fb76
Fix T53745: Alembic exported with vertex colors not readable by other software.
...
Most other software expects to read indexed vertex colors, so write indices
along with the colors as we already do for UVs.
Differential Revision: https://developer.blender.org/D3704
2018-09-19 20:17:04 +02:00
Clément Foucault
73ac72fa89
DRW: Fix crash when new shader requires 0 customdata layers
...
It was using last cache->auto_layer_len which led to a buffer overflow.
2018-09-19 20:02:12 +02:00
Clément Foucault
7ad8272952
DRW: Only trash UV and tangent data when using BKE_MESH_BATCH_DIRTY_SHADING
...
This improves the problem encountered when animating materials on static
meshes but does not fix the core issue. See T55326.
2018-09-19 20:02:12 +02:00
Clément Foucault
960ab2ab58
Cleanup: Remove "_new" from GPU_generate_pass_new
...
Not needed anymore since old one has been deleted.
2018-09-19 20:02:12 +02:00
Clément Foucault
9cd4788403
Fix T55059: EEVEE UV not available until you go in and out of edit mode
...
This is a dirty hack that should become irrelevant when depsgraph will
support CD masks.
2018-09-19 20:02:12 +02:00
Brecht Van Lommel
6b433f4eb3
Merge branch 'master' into blender2.8
2018-09-19 18:20:50 +02:00
Brecht Van Lommel
a4f2ebc78d
Spelling fixes in comments and descriptions, patch by luzpaz.
...
Differential Revision: https://developer.blender.org/D3700
2018-09-19 18:18:05 +02:00
Sergey Sharybin
a7d43eb1c6
Depsgraph: Another followup to the previous commit
...
Apparently, only mesh objects has SHADING component.
2018-09-19 18:03:15 +02:00
Sergey Sharybin
e60492b6fb
Fix wrong pointer used in modifier stack
...
Was passing pointer to a pointer of context.
2018-09-19 17:51:14 +02:00
Sergey Sharybin
93d4752dbe
Depsgraph: Correction for the previous commit
2018-09-19 17:49:38 +02:00
Jacques Lucke
3614d9d2a2
Cleanup: Remove some DerivedMesh wrappers for modifiers
...
Specifically the deformVerts_DM, deformMatrices_DM, deformVertsEM_DM and deformMatricesEM_DM functions are not used anymore.
Reviewer: brecht
2018-09-19 17:33:03 +02:00
Antonioya
e81f7f25ac
GP: Verify weight data is correct before assigning
2018-09-19 17:26:09 +02:00
Antonioya
03bb7cd9ad
GP: Fix crash when select vertex group in modifiers
2018-09-19 17:20:55 +02:00
Sergey Sharybin
828c0e9813
Depsgraph: Ensure shading update order
...
Previously it was possible to have geometry component to
tag batch for DIRTY_ALL and shading to tag with SHADING_UPDATE.
Now there is a relation between uber eval and shading, which
solves this issue.
2018-09-19 17:16:03 +02:00
Antonioya
63c636518f
GP: Fix copy frame error in dopesheet
2018-09-19 16:47:23 +02:00
Sergey Sharybin
09d3c907e7
Depsgraph: Always assume scene camera is visible
...
Allows to disable camera collection to make objects to go out of
the way, but still be able to animate.
2018-09-19 16:43:59 +02:00
Brecht Van Lommel
d5e29f4140
Fix T56697: missing viewport update after keyframe edits in animation editors.
...
It was updating during transform, but not a final time after keyframes get
reordered or merged.
2018-09-19 16:19:26 +02:00
Brecht Van Lommel
edb6f192ee
UI: make new icon consistent with other places.
2018-09-19 16:19:26 +02:00
Bastien Montagne
39600d7c96
Fix own mistake in previous commit.
2018-09-19 16:10:33 +02:00
Sergey Sharybin
749d5c033c
Depsgraph: Make visible update to operate on per-component level
2018-09-19 16:10:12 +02:00
Sergey Sharybin
afb4da6650
Despgraph: Keep track of per-component visibility
...
The idea of those flags is to avoid evaluation of operations
which are not needed to bring visible objects to an up to date
state.
Previously, dependency graph attempted to do combine those
into an ID level flag. In practice it proved to be rather
tricky, since there could be dependency cycles on ID level
which will not exist on component level.
2018-09-19 16:10:12 +02:00
Sergey Sharybin
cc061d349b
Depsgraph: Connect duplicating geometry to duplicator
...
This allows to force duplicated object to be fully evaluated for
display/draw.
Previously only transform component of duplicated object was
forced to become evaluated.
2018-09-19 16:10:12 +02:00
Sergey Sharybin
1b98fff713
Depsgraph: Make geoemtry to tag function more reusable
2018-09-19 16:10:12 +02:00
Sergey Sharybin
34c361db5a
Depsgraph: Correct early output in collections
...
Need to ensure objects from collection which was built but
is became visible in the new "context" are poked for re-built.
This should be rather cheap, since this only will update
their visibility flag.
Can not rely on visibility flush here, since there is no
relations between collection and its objects.
2018-09-19 16:10:12 +02:00
Sergey Sharybin
3714c83441
Depsgraph: Handle text datablock in ID builder
...
Just silence the assert/print, we do not add text data blocks
to dependency graph.
2018-09-19 16:10:12 +02:00
Bastien Montagne
33edfefa8e
Depsgraph/RNA: Fix broken 'dupliobject' RNA interface.
...
Previous code would crash on whole lot of accessors in case current item
was not a real dupli instance.
And code was missing access to crucial dupli (world) matrix! Pretty
useless without that.
Also reordered a bit members in here, let's try to keep a bit of logic...
2018-09-19 15:46:49 +02:00
mano-wii
238a270d8f
Fix possible misuse of BLI_strncpy.
...
Same issue as rB39f7c8256d58.
2018-09-19 09:04:55 -03:00
Antonioya
a349527981
GP: Fix stupid mistake
2018-09-19 12:15:53 +02:00
Antonioya
25f25a6f30
GP: Remove unneeded flag
2018-09-19 12:15:05 +02:00
Bastien Montagne
f9f34fb9ab
Fix T56756: Pivot Point update issue(minor issue).
2018-09-19 11:41:16 +02:00
Bastien Montagne
d053508916
Merge branch 'master' into blender2.8
2018-09-19 11:12:45 +02:00
Bastien Montagne
340527cd37
Fix unused var in case Alembic is not enabled, in own previous commit.
...
Sorry for the noise...
2018-09-19 11:11:39 +02:00
Bastien Montagne
71d18f59a3
Mesh Sequence Cash: do not *always* report as depending on time!
2018-09-19 11:09:12 +02:00
Sergey Sharybin
eab3ca7348
Cleanup: Unused variable in release build
2018-09-19 09:48:32 +02:00
Sergey Sharybin
fe467735e5
Subdiv: CCG, remove redundant call
2018-09-19 09:48:07 +02:00
Campbell Barton
574484006b
EditMesh: show the spin arc as a thin ribbon
...
Closer to the design from T54661
2018-09-19 17:52:13 +10:00
Campbell Barton
ba38206608
Gizmo: tweaks to dial drawing
...
- Add Arc-Inner-Factor, to increase the inner arc radius from 0
(show as a disk).
- When showing an angle value, show the angle-end line thicker
(since thats whats being adjusted).
- Remove offset used by arc drawing which caused aliasing artifacts.
2018-09-19 17:47:15 +10:00
Campbell Barton
3b4782dc24
Gizmo: exclude arc from selection
...
Also disable polygon smooth before drawing arc.
2018-09-19 16:47:07 +10:00
Campbell Barton
6c7ad56f00
EditMesh: orient spin arc to follow the cursor
2018-09-19 16:41:56 +10:00
Campbell Barton
40ac38f18d
Gizmo: remove matrix rotation for the dial gizmo
...
This makes it impossible to rotate the gizmo using the matrix Y axis.
Testing without this and I can't find any cases it breaks.
2018-09-19 16:22:01 +10:00
Campbell Barton
414e5fe068
Correct polygon_smooth being left enabled
2018-09-19 15:32:28 +10:00