Commit Graph

65449 Commits

Author SHA1 Message Date
Alexander Gavrilov
97ec802da7 Depsgraph: fixes for the eval_flags API behavior.
- Use the original ID pointer for lookup in DEG_get_eval_flags_for_id.
- When the flags change after a DEG rebuild, tag the object for update.
- Instead of mixing int and short in different places, use uint32_t.

This fixes text not updating when a Follow Curve reference is set.
2018-10-24 22:14:32 +03:00
Bastien Montagne
e66084268c Fix T56172 Accessing COW data from RNA - Dimension
Also fixes T55769 Dimension Not properly work
and T56064 Blender crashes on selecting text-object

We decided to go to the easy way in the end, simply enforcing computing
BBox of all objects when using 'active' depsgraph, and copying back to
orig object (same as transform matrix, etc.).
2018-10-24 17:21:56 +02:00
Antonioya
9691c32d38 GP: Rename Fixed type in Time modifier 2018-10-24 16:59:13 +02:00
Antonioya
735d6cb8d8 GP: Add new Layer Pass Index filter to modifiers
Now the modifier can be filtered using the new layer index.

Also changed panels to put layers and passes filter always at the end of the panel.
2018-10-24 16:46:35 +02:00
Bastien Montagne
a211937892 Fix T57361: Creating a new scene with a full copy doesn't work.
BKE_scene_copy() & co. were pretty much doing nothing right...

Was a tough fight, but at least now they should behave a tad better (and
reported issue is fixed).

Proper fix is to fully rewrite that PoS, it was already a mess without
collections, now it's even hairier to handle properly, we need to use
modern new ID handling API for that (and maybe extend it a bit as
needed). But way too late to do that in 2.80.
2018-10-24 14:48:05 +02:00
Sergey Sharybin
91c6beb28a Cleanup: Remove unused modifiers callback
Was only used by subsurf in the past years, it is unlikely
other modifiers will every need this any time soon.
2018-10-24 14:04:29 +02:00
Alexander Gavrilov
547d31c8da Depsgraph: minor renaming and refactor of API for adding evaluation flags. 2018-10-24 13:45:03 +03:00
Sergey Sharybin
6e3a9b9313 Subsurf: Remove edit mesh modifier callbacks
Those were used for partial updates during edit mode, which will
not be possible anymore with OpenSubdiv.

Optimization for OpenSubdiv would be to re-use topology refiner
if topology does not change. But this is something to be done
for both edit and object modes, no need to have separate code
paths for those.

This commit makes OpenSubdiv to properly work in edit mode.
2018-10-24 12:40:05 +02:00
Brecht Van Lommel
727d6644da Cleanup: fix compiler warnings. 2018-10-24 11:14:49 +02:00
Antonioya
e1a66201da GP: Add layer pass index to time modifier 2018-10-24 11:03:09 +02:00
Jacques Lucke
341306995b Fix: buffer overflow when creating gpu.types.GPUIndexBuf 2018-10-24 10:57:46 +02:00
Antonioya
5af716620a GP: Add new modes to Time Offset modifier 2018-10-24 10:32:03 +02:00
Campbell Barton
0589368615 GPUShader: shader.uniform_float, matrix parsing
Add checks to parse 3x3 or 4x4 matrices,
also use error from `mathutils_array_parse` instead of overwriting.
2018-10-24 18:47:36 +11:00
Campbell Barton
c8ab88fb89 Partially revert "GPUShader: shader.uniform_float parameters"
`mathutils_array_parse` is meant to parse 1d arrays of numbers.

Using matrices internal memory layout is confusing since
mathutils matrices are exposed as row major.

Also, the matrix shape wasn't checked for.

Callers that want to handle matrices should check for them explicitly.
2018-10-24 18:47:36 +11:00
Sergey Sharybin
ee18b21201 Fix T57359: Crash adding a Driver and then changing frame 2018-10-24 09:44:57 +02:00
Bastien Montagne
8ccb27fc0a Merge branch 'master' into blender2.8
Conflicts:
	source/blender/blenkernel/intern/scene.c
2018-10-24 09:00:13 +02:00
Bastien Montagne
65d4314b8e Fix (unreported) bad halding of ID usercounts when fully copying a scene. 2018-10-24 08:43:20 +02:00
Campbell Barton
a41f85d324 Fix error w/ poly-build clearing the edit-object 2018-10-24 16:26:33 +11:00
Campbell Barton
4b2b8a0c3f Fix T57351: Deform modifiers skipped in editmode 2018-10-24 14:48:17 +11:00
Dalai Felinto
175326fed7 Fixup for LATTICE_OT_flip
Committed by accident (1076523b1b).
But now I need to fix building.

Note: The operator itself shouldn't have been committed because it
should operate in the world space (for the axis), not local.

I will tackle this later.
2018-10-24 00:00:57 -03:00
Dalai Felinto
975974e291 Silence some false positiver warnings 2018-10-23 23:47:04 -03:00
Dalai Felinto
1076523b1b Multi-Objects: LATTICE_OT_flip 2018-10-23 23:29:51 -03:00
Campbell Barton
69dd58f210 Fix mapped mesh display skipping generated faces 2018-10-24 13:12:18 +11:00
Campbell Barton
7dfd3539d5 Cleanup: use bmesh index access functions 2018-10-24 13:07:21 +11:00
Campbell Barton
860dd31647 Merge branch 'master' into blender2.8 2018-10-24 12:55:44 +11:00
Campbell Barton
db69deea89 BMesh: inline index lookups
For release builds this is now the same as indexing the array directly.
2018-10-24 12:54:26 +11:00
Campbell Barton
901ccfab52 Fix T57366: Mesh.from_pydata invalid loose-edge state 2018-10-24 11:37:44 +11:00
Dalai Felinto
9f1857002e Multi-Objects: LATTICE_OT_select_more/less
Note: Those operators are yet to be added to the menu.
2018-10-23 20:38:30 -03:00
Dalai Felinto
c052d38d0a Multi-Objects: LATTICE_OT_select_ungrouped
I thought about having a single error message, or to use BKE_reportf to just
add the "s". That would be bad for translators, so now we have two
explicit messages.
2018-10-23 20:25:59 -03:00
Clément Foucault
ed7f6b511f Eevee: Fix lightcache not working for small caches
Was caused by a threading issue. The lightcache was free before the endjob
function pass it to the scene.

Also fix cache reuse if size matches.
2018-10-23 18:04:45 +02:00
Clément Foucault
8e8d1cab6f Eevee: Fix crash when clicking the lightcache bake button multiple time 2018-10-23 18:04:45 +02:00
Clément Foucault
ee8e866a0e Eevee: Fix crash when baking
Was caused by the normal pass being enbaled in the renderlayer settings.

Fix T57344
2018-10-23 18:04:45 +02:00
Clément Foucault
2c35307f09 Workbench: Use AntiAliasing in render even if not enabled in the User Prefs 2018-10-23 18:04:45 +02:00
Clément Foucault
8742f6358b Workbench: Fix Wrong AntiAliasing in renders
Was caused by offseting the same matrix for each samples instead of adding
the offset to the original projection matrix.
2018-10-23 18:04:45 +02:00
Clément Foucault
51b6e313de Fix T57326: Adding Scene with Transparent Film to VSE Crashes Blender
Previous Framebuffer can be NULL.
2018-10-23 18:04:45 +02:00
Clément Foucault
28d5ebbc15 Wireframe: Fix wireframe object drawtype with "in front" draw option
First problem is that enabling the "in front" option made the wire object
test against an not updated stencil buffer.

Second problem is that the "in front" option was useless on wire objects.
To fix this we bypass the depth test and live with some sorting problem.
2018-10-23 18:04:45 +02:00
Clément Foucault
238d3471bd Xray Mode: Fix wireframe object display type not being correctly occluded 2018-10-23 18:04:45 +02:00
Antonioya
3e9405e26d GP: Add new frame scale parameter to Time modifier
This new parameter allows to increase or decrease the animation speed to break animation patterns when reuse data blocks.
2018-10-23 16:47:09 +02:00
Sergey Sharybin
ca003d0f5c Fix missing relations update after allocating compositor
Compositor has own node in the dependency graph, so need to make
sure relations are up to date.

This fixes wrong user counter when creating compositor nodes for
a new scene.
2018-10-23 15:38:09 +02:00
Sergey Sharybin
1ab08a2dff Rename editor to "Texture Node Editor"
This editor edits nodes, and the old name of "Texture Editor" is misleading,
since when one want to edit it is unclear whether UV/Image or Texture editor
is more suitable for the task.
2018-10-23 14:29:13 +02:00
Jacques Lucke
767b49e492 Fix: missing sequencer update
This should be fixed differently in the future. Read D3821 for more details.

Reviewers: brecht

Differential Revision: https://developer.blender.org/D3821
2018-10-23 14:03:57 +02:00
Antonioya
bc480c4989 GP: Rename modifier Time to Time Offset 2018-10-23 13:16:15 +02:00
Antonioya
7cb0e1499d Fix compiler error in Windows 2018-10-23 13:13:04 +02:00
Bastien Montagne
f927f388f6 Fix T57288: Assert when deleting duplicated collection (id->us == 0).
Copying an ID also add a default user to new one (just like creating an
ID), by default...
2018-10-23 12:00:46 +02:00
Antonioya
6d1fd1dc58 GP: Reduce samples in glow
The number of samples was too high.
2018-10-23 10:57:50 +02:00
Jacques Lucke
fc3d771801 GPUShader: shader.uniform_float parameters
Allow to pass in single numbers, sequences and mathutils.* types into `shader.uniform_float`.

Reviewers: mano-wii

Differential Revision: https://developer.blender.org/D3820
2018-10-23 10:19:08 +02:00
Campbell Barton
32de646d3d Multi-Objects: Calculate Transform origin w/ all editmode meshes
D3550 by @Leon95
2018-10-23 17:55:02 +11:00
Campbell Barton
bb3d999571 Fix T57190: loopcut crash w/o overlays 2018-10-23 15:16:49 +11:00
Campbell Barton
756ac74f81 Cleanup: rename 'dm' -> 'me' for 'Mesh' types 2018-10-23 15:00:40 +11:00
Campbell Barton
dbdf653f8e Fix bad origindex layers for editmode modifiers
Reverts workaround from last commit.
2018-10-23 13:53:42 +11:00