Blender Git Commit Log

All Blender Git commits.

Page: 2185 / 8462

September 14, 2019, 15:59 (GMT)
MSVC: Fix macro collision with MSVC Headers

Picked up while investigating a build error on the functions branch
which seems to use this specific header in a way master doesn't.

The problem:

The MSVC headers define a `_CONCAT` macro, so does BLI_kdtree_imp.h
however at the end `BLI_kdtree_imp.h` undefines the macro making the
MS headers that still rely on it "unhappy".

Who's fault is this:

Ours, C99 Spec says

```
7.1.3 Reserved identifiers

- All identifiers that begin with an underscore and either an uppercase letter or another underscore are always reserved for any use.

...

if the program removes (with #undef) any macro definition of an identifier in the first
group listed above, the behavior is undefined.
```

So we should not have defined it, and we definitely should not
have undefined it.

We have *tons* of these violations, although fixing them would be great
at one point lots of them are in /extern or in the 3rd party deps,
I'd rather deal with them on a case by case basis when it actually
causes issues.

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

Reviewers: campbellbarton, JacquesLucke
September 14, 2019, 15:00 (GMT)
Quiet self assignment warning
September 14, 2019, 14:54 (GMT)
VSE: quiet missing prototype warnings
September 14, 2019, 14:52 (GMT)
UI: quiet warning when drawing markers

The compiler was warning that it assumed that
crfa - 4 < cfra is always true even though that might not
be the case due to overflow. This patch just removes
the condition that caused the assumption.
September 14, 2019, 14:25 (GMT)
BLI: make Map.add_or_modify more powerful

The function now allows custom return types defined
by the callbacks. This can be useful when a user of the
data structure has to implement some custom behavior.
September 14, 2019, 13:03 (GMT)
BLI: add utility to print VectorSet stats
September 14, 2019, 12:41 (GMT)
BLI: speedup adding to VectorSet by removing a check
September 14, 2019, 11:30 (GMT)
BLI: remove non const accessors in VectorSet

With this the values could have been changed without
updating the hash table.
September 14, 2019, 10:48 (GMT)
fixes after merge
September 14, 2019, 10:44 (GMT)
Merge branch 'master' into functions
September 14, 2019, 10:44 (GMT)
BLI: add missing include
September 14, 2019, 10:41 (GMT)
Merge branch 'master' into functions
September 14, 2019, 10:37 (GMT)
BLI: rename SetVector to VectorSet

The structure is a set built on top of a vector and not the other
way around.
September 14, 2019, 10:11 (GMT)
BLI: Improve forwarding semantics of some data structures

This makes it possible to use e.g. `std::unique_ptr` in a map.
September 14, 2019, 08:38 (GMT)
Merge branch 'master' into temp-npr-gpencil-modifiers
September 14, 2019, 08:37 (GMT)
Merge branch 'master' into temp-lanpr-cleanup
September 14, 2019, 08:24 (GMT)
Cleanup: make format.
September 14, 2019, 08:18 (GMT)
Gpencil: modifier RNA fixes.
For multiply and length modifiers.
September 14, 2019, 08:03 (GMT)
Gpencil: BKE functions for stroke length & splitting.
September 14, 2019, 07:52 (GMT)
Gpencil: npr related modifier files added.
Including length modifier and multiply modifier.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021