Blender Git Loki

Kaikki Blender Git kommitit.

Page: 44 / 8462

December 7, 2021, 12:43 (GMT)
Use instance data to store data.
December 7, 2021, 12:26 (GMT)
Revert moving all shader nodes to c++

This reverts to following commits:
* rB5cad004d716da02f511bd34983ac7da820308676
* rB97e3a2d935ba9b21b127eda7ca104d4bcf4e48bd
* rBf60b95b5320f8d6abe6a629fe8fc4f1b94d0d91c
* rB0bd3cad04edf4bf9b9d3b1353f955534aa5e6740
* rBf72cc47d8edf849af98e196f721022bacf86a5e7
* rB3f7014ecc9d523997062eadd62888af5fc70a2b6
* rB0578921063fbb081239439062215f2538a31af4b
* rBc20098e6ec6adee874a12e510aa4a56d89f92838
* rBd5efda72f501ad95679d7ac554086a1fb18c1ac0

The original move to c++ that the other commits depended upon had some issues
that should be fixed before committing it again. The issues were reported in
T93797, T93809 and T93798.

We should also find a better rule for not using c-style casts going forward,
although that wouldn't have been reason enough to revert the commits.
Introducing something like a `MEM_new<T>` and `MEM_delete<T>`
function might help with the the most common case of casting the return
type of `MEM_malloc`.

Going forward, I recommend first committing the changes that don't
require converting files to c++. Then convert the shading node files
in smaller chunks. Especially don't mix fairly low risk changes like
moving some simple nodes, with higher risk changes.
December 7, 2021, 11:03 (GMT)
Fix T93797, T93809: Crash/undefined-behavior when opening demo file

Error in d5efda72f501. Was changing an iteration that would free items
to an iterator that is not safe for use in such cases.

There still seem to be significant issues with the rendering, but that's
a separate issue to be fixed.
December 7, 2021, 10:47 (GMT)
Fix memory leak when loading large asset libraries
December 7, 2021, 10:40 (GMT)
Merge branch 'master' into temp-gpu-image-engine
December 7, 2021, 10:30 (GMT)
Fix crash when switching back from render preview.

Issue is that external engine uses the gpu info. but overwrote the
instance data. The draw manager would then detect instance data and
required the engine type to have a instance free callback.

The solution is to save some space in the engine data to hold an empty
and unused instance_data attribute to comply with `ViewportEngineData`
struct.
December 7, 2021, 09:51 (GMT)
Merge branch 'master' into temp-gpu-image-engine
December 7, 2021, 09:34 (GMT)
DrawManager: Engine Instance Data.

In the original design draw engines had to copy with a limitation that
they were not allowed to reuse complex data structures between drawing
calls. Data that could be reused were limited to:
- GPUFramebuffers
- GPUTextures
- Memory that could be removed calling MEM_freeN (storage list)
- DRWPass

This is fine when the storage list contains arrays or structs but when
more complex data types (vectors, maps) etc wasn't possible.

This patch adds instance_data that can be reused between drawing calls.
The instance_data is controlled by the draw engine and doesn't need to
be limited as described above.

When an engines stores instance_data it must implement the
`DrawEngineType.instance_free` callback to free the data.

The patch originates from eevee rewrite. But was added to master as the
image engine rewrite also has a need for it.

Reviewed By: fclem

Differential Revision: https://developer.blender.org/D13425
December 7, 2021, 09:33 (GMT)
Cleanup: Use rcti marking dirty regions when texture painting.

Dirty regions when painting are not using rcti. Meaning less
understandable code. Found issue when refactoring the image_gpu partial
update. In a future change gpu partial update API will be using rcti
also what makes the code even cleaner.

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D13260
December 7, 2021, 07:55 (GMT)
Cleanup: note that functions in BKE_node.h aren't part of blenkernel
December 7, 2021, 07:47 (GMT)
Cleanup: remove BKE_ptcache_remove

No longer needed as the temporary directory is cleared on exit.
December 7, 2021, 07:44 (GMT)
Cleanup: sort DNA renaming

Add note at the beginning & end so it's not overlooked.
December 7, 2021, 07:39 (GMT)
Cleanup: clang-format
December 7, 2021, 07:26 (GMT)
Cleanup: clarify source/destination args for BKE_spacedata_copylist
December 7, 2021, 07:23 (GMT)
Cleanup: remove incorrect/unhelpful comments
December 7, 2021, 07:15 (GMT)
Cleanup: replace int with bool type
December 7, 2021, 06:38 (GMT)
Cleanup: move public doc-strings into headers for 'blenkernel'

- Added space below non doc-string comments to make it clear
these aren't comments for the symbols directly below them.
- Use doxy sections for some headers.
- Minor improvements to doc-strings.

Ref T92709
December 7, 2021, 03:39 (GMT)
Cleanup: Fix various source typos

This is a continuation of D13462 to clean up source typos.

Differential Revision: https://developer.blender.org/D13471
December 7, 2021, 03:23 (GMT)
Cleanup: Fix typos in source code

Source typos corrected

Reviewed By: Blendify

Differential Revision: https://developer.blender.org/D13462
December 7, 2021, 03:07 (GMT)
Docs: Incorrect link to context type

Fixes T93773
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021