Blender Git Loki

Blenderin Git "master"-kehityshaaran kommitit.

Page: 725 / 5574

June 16, 2020, 02:56 (GMT)
Cleanup: doxy sections for camera, collections, text & seqmodifier
Revision a76542c by Hans Goudey
June 16, 2020, 01:38 (GMT)
Cleanup: Use LISTBASE_FOREACH in interface_panel.c
June 15, 2020, 16:49 (GMT)
Fix crash when opening some old/broken .blend files after recent fix.

Now that `BKE_main_collections_parent_relations_rebuild()` is called
from readfile code, we need to make it resilient to potential NULL
master collection pointer in scenes.
June 15, 2020, 16:37 (GMT)
Refactor: use new blenloader api for laplacian deform modifier
June 15, 2020, 16:25 (GMT)
Fix unhandled RECALC options in depsgraph code after recent change.

Spotted by @LazyDodo on IRC, thanks.
June 15, 2020, 15:55 (GMT)
Blenloader: call blendRead and blendWrite of modifiers when available

This is part of T76372.
June 15, 2020, 15:43 (GMT)
Modifiers: New callbacks for reading and writing .blend files

This is part of a greater blenloader decentralization effort (T76372).
For modifiers the goal is that fewer files have to be modified when
a new modifier is added.

This patch just adds the `blendWrite` and `blendRead` callbacks to
`ModifierTypeInfo` but does not change any other code yet. In the next
steps, modifier specific code will be moved from `writefile.c` and
`readfile.c` into their corresponding `MOD_*` files.
Revision eaff606 by Bastien Montagne
June 15, 2020, 15:25 (GMT)
Fix T77460: Easy to create cyclic dependencies in collections and crash Blender.

Cyclic check was not checking for collections instanciated by objects...
June 15, 2020, 15:25 (GMT)
Fix (unreported) critical mistake in Collection liblink code in readfile.c.

Prelimenary step to fix T77460.

Not sure how or when that thing was done, but since that call walks
around collections relationships, it's an utterly critical violation of
liblinking principles (code here should never, ever 'get outside' of its
own ID scope).

This was wroking so far only because code called through this function
(`BKE_collection_parent_relations_rebuild`) was only following parents
pointers (in `BKE_collection_find_cycle()`), which would be either valid
or non-existent.

But next commit is going to change that to also check collection's
objects instancing of other collections.
June 15, 2020, 14:47 (GMT)
Fix T77496: Bones Custom Shapes Wires not drawn

Lines loose extraction cannot happen on the fly as the render data isn't
complete. This patch will do the lines loose subbuffer extraction as a
simple task and not on the fly.

This patch introduces 2 sub-types of tasks that are executed single threaded.
`EXTRACT_MESH_EXTRACT` would do the extraction using Mesh/BMesh geometry.
`EXTRACT_LINES_LOOSE` creates the `lines_loose` subbuffer from already cached
`lines` IBO.

Reviewed By: Cl�ment Foucault

Differential Revision: https://developer.blender.org/D7964
June 15, 2020, 13:35 (GMT)
Fix T77774: New undo code broken by 'make local' behavior.

This is actually a nice issue due to too much optimization...
* Making an ID local just reuse the linked one whenever possible, instead of
actually making a copy of it.
* Therefore, the collection containing that ID is seen as unchanged, since
the pointer itself remained the same.
* But on undo step, there is no way to reuse that local object, which then
gets deleted, and linked one gets re-created - at a different address.
* Collection, however, since unchanged, is not updated at all and thus keeps
reference to the to-be-deleted local object, instead of the linked one.
* Issue gets even worse with viewlayers, this leads to the crash.

To address this, this patch adds a 'virtual' update flags that does nothing
in update case, but will ensure that the affected IDs using the one made local
are properly detected as changed across the relevant undo step.

Note that the recalc flags were chosen mostly for a logical reason, and also
because they are already properly dealt with and cleared by undo code,
so this looks like the optimal solution.

Reviewed By: brecht

Maniphest Tasks: T77774

Differential Revision: https://developer.blender.org/D8006
June 15, 2020, 13:29 (GMT)
Fix crash using shrink-wrap modifier in edit-mode

Regression in deaff945d0b96.
June 15, 2020, 13:26 (GMT)
Fix T77342: Fail to draw loose edges

The underlying issue is that the loose edge extraction cannot be
threaded. This patch will extract the loose edges during initialization
of the render mesh data.

When working on this patch the mesh_render_data_update was split into
multiple functions to identify what part was failing. These functions
would also help us with debugging.

Reviewed By: Cl�ment Foucault

Differential Revision: https://developer.blender.org/D7962
June 15, 2020, 13:22 (GMT)
Fix Memory Leak introduced by Draw Manager Threading

The memory leak is noticeable when using custom bone shapes. When using custom
bone shapes objects could be extracted twice. Where the second extraction can
overwrite data created by the first extraction what causes the memory leak.

Options that have been checked:
1. Use two task graphs phases. One for normal extraction (DST.task_graph) and
the other one will handle extractions that require blocking threads.
2. Keep a list of all objects that needs extraction and only start extraction
when all objects have been populated.

The second would slow performance as the extraction only happens when all
objects have been populated. In the future we might want to go for the second
option when we have the capability to render multiple viewports with a single
populate. As this design isn't clear this patch will implement the first
option.

Reviewed By: Cl�ment Foucault

Differential Revision: https://developer.blender.org/D7969
Revision ec25084 by Hans Goudey
June 15, 2020, 13:06 (GMT)
Fix T77541: Unregistering DATA_PT_modifiers doesn't remove modifier panels

This is a pretty quick fix; the solution is just removing all the
instanced panels whena panel is unregistered. This also necessitates
adding the option to call UI_panels_free_instanced with NULL context.

Differential Revision: https://developer.blender.org/D7977
June 15, 2020, 13:03 (GMT)
Fix T77853: Error reloading linked library.

Issue related to how ID refcounting was changed when loading blendfile
data...
June 15, 2020, 12:53 (GMT)
Cleanup: Rearrange Vert and Edge slide functions

And make `trans_mesh_customdata_correction` a more generic utility.
Revision 046afac by Hans Goudey
June 15, 2020, 12:35 (GMT)
Fix T77116: Current frame indicator text color hardcoded

Draw the text with the "header text highlight" theme color, which is
rarely used, making it a good candidate for this special case.

Differential Revision: https://developer.blender.org/D7897
Revision 73f8dd0 by Hans Goudey
June 15, 2020, 12:23 (GMT)
Fix T77596: UI: Correct "offset even" location in solidify modifier

This only applies in the "simple" solidify mode.

Differential Revision: https://developer.blender.org/D7967
June 15, 2020, 10:35 (GMT)
Cleanup: remove unnecessary code

This got committed due to a stupid mistake of mine, it does not belong
there at all.
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021