Blender Git Loki

Blenderin Git "master"-kehityshaaran kommitit.

Page: 481 / 5574

November 19, 2020, 14:41 (GMT)
Merge branch 'blender-v2.91-release'
November 19, 2020, 14:35 (GMT)
Fix T82540: Smart UV project ignores seams

The seam check was missed in 9296ba867462f7ff3c55bc0c9129af4121243bed
which calculates islands from the BMesh.
Revision ad4b774 by Julian Eisel
November 19, 2020, 12:41 (GMT)
Build-system: Force C linkage for all DNA type headers

Some DNA headers already did this, most did not. Even though many of them would
be included in C++ files and thus compiled as C++. This would be confusing and
developers may think they have to add `extern "C"` too a whole lot of
(indirect) includes to be able to use a C header in C++.

However, this is a misconception.
`extern "C"` does not cause code to be compiled with C rather than C++! It only
causes the linker to not use C++ function name mangling. See
https://stackoverflow.com/a/1041880.
Because extern DNA headers don't have function declarations, using `extern "C"`
actually should not have any effect. On the other hand, adding it causes no
harm and avoids confusion. So let's just have it consistently in C header
files.

Differential Revision: https://developer.blender.org/D9578

Reviewed by: Bastien Montagne, Sybren St�vel
November 19, 2020, 12:10 (GMT)
Fix crash when adding strip using RNA API call

Don't allocate StripElem for movieclip, scene and mask strips. This
struct is not handled in seq_dupli function. This caused field to be
uninitialized in COW datablock.

StripElem is not allocated when adding strip with operator and it is
not needed for these strip types.

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D9600
November 19, 2020, 12:04 (GMT)
Cleanup: refactor sequencer_edit.c file

Move RNA enums and utility functions closer to operator definition.

No functional changes.
November 19, 2020, 12:02 (GMT)
Cleanup: Animation, fix uninitialised variable in Euler filter code

No functional changes.
November 19, 2020, 11:57 (GMT)
Cleanup: Animation, refactor Euler filter

Split up the Euler filter function into two more functions. The Euler
filter operator works in two stages (find channels that define the X/Y/Z
Euler rotations, and perform filtering on those channels), and each
stage now has its own function. This makes it clearer which data are
used in which part of the code, and makes future improvements easier.

No functional changes.
November 19, 2020, 11:18 (GMT)
Docs: document bmesh.utils.vert_collapse_faces join_faces argument
November 19, 2020, 10:26 (GMT)
Fix error message prefix in `Quaternion.to_euler()`

Fix copy-paste error of error message prefix, so that the Quaternion
function no longer says it's a Matrix function error.
November 19, 2020, 10:04 (GMT)
Cleanup: fix bad comment separator

Replace `* /` with `*/` to actually end the comment. As it was, the code
compiled but caused an "`/*` in comment" warning.

No functional changes.
November 19, 2020, 09:43 (GMT)
Merge remote-tracking branch 'origin/blender-v2.91-release'
November 19, 2020, 09:33 (GMT)
Fix T82833: GreasePencil crash when changing to Vertex Color mode

This is actually a user interface issue, introduced on 0688309988e5.

but->tip is checked for NULL in other parts, and rightly so, since here
it crashes Blender.

On a side note I don't know how to reliably reproduce the original bug
whose fix introduced this issue. That got on the way of seeing whether
this is the correct fix, if it happens outside greasepencil operators.

Maybe it is an operator that is missing a tooltip? Impossible to tell
without more information from said commit. That said since this happened
during the end of bcon3 and we are not in bcon4 I'm going ahead with
this NULL check commit.

Patch reviewed by Philipp Oeser and Sergey Sharybin.
November 19, 2020, 08:54 (GMT)
Cleanup: split sequencer_edit.c file

Move proxy operator functions to own file.

No functional changes.
November 19, 2020, 04:31 (GMT)
VSE: Move split operator logic to module code

Code was rewritten to work on per-sequence basis returning reference to
created strip.

There should be no functional changes.

Selection logic is left as is for now. I could simplify it, but it
belongs to operator, not split logic.

Reviewed By: sergey

Differential Revision: developer.blender.org/D9592
Revision 9d6d5b9 by Nicholas Rishel
November 18, 2020, 22:29 (GMT)
Fix T82445: Wintab packets being discarded.

Switched timer to use GetTickCount instead of QueryPerformanceCounter
as Wintab's pkTime seems to (but is not guaranteed to) use the former.
Revision e9ddb21 by Hans Goudey
November 18, 2020, 21:31 (GMT)
Cleanup: Grammar: "Allow to" vs gerund missed in last commit
Revision 8f30a88 by Hans Goudey
November 18, 2020, 21:14 (GMT)
Cleanup: Grammar: "Allow to" vs gerund

In cases where "Allow" is followed by an infinitive, a noun needs
to directly follow it. But it makes more sense to follow it with a
gerund instead.
Revision 038828f by Hans Goudey
November 18, 2020, 20:54 (GMT)
Fix: Sub-panel backdrop sometimes draws when closed

My last cleanup commit for this function missed this case. It likely
happens because the panel's block size doesn't update properly somewhere.
Short of investigating that right now, it makes sense to return early
in this case anyway.
November 18, 2020, 20:35 (GMT)
GPencil: Automerge last drawn stroke with previous strokes

This option joins any stroke with an end near the actual stroke. Now it is not limited to the last stroke, any stroke in the same layer for the actual frame can be joined. The join can join two strokes drawing a third stroke.

If the end and the start of the result stroke are very small, the stroke is changed to be cyclic automatically.

There is a limit distance to join the stroke, if the distance is greater than this value, the strokes are not joined. Actually, a constant, threshold distance is used, but we could expose
as a parameter in the UI in the future.

The tool can be used with freehand drawing or with primitives.

Note: Great part of the patch is just a refactor of the old code to make it accessible and to keep code organized.

Reviewed By: mendio

Maniphest Tasks: T82377

Differential Revision: https://developer.blender.org/D9440
Revision c126e27 by Hans Goudey
November 18, 2020, 20:16 (GMT)
Cleanup: Move function to proper section
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021