Blender Git Loki

Kaikki Blender Git kommitit.

Page: 4748 / 8462

July 21, 2015, 20:42 (GMT)
Fix some dummy mistake, add simple RNA callback to 'remap' IDs.

Also, added Object.data to BKE_library_foreach_ID_link(), wonder if there was a good reason
for this to not be here???
July 21, 2015, 20:42 (GMT)
Add main 'ID remap' function.

Theoretical code, compiles, but needs to be tested!
July 21, 2015, 20:42 (GMT)
ID remapping: first step - modify some editors callback to not only support ID freeing, but also ID remapping.

This seems to be OK, but will obviously need much more testing - and is useless as-is, we need
the big ID remapping code itself still.

Also, Nodetrees' remapping of Scene IDs is still TODO, not sure yet how to do this.
July 21, 2015, 20:13 (GMT)
Fix T43779: Cycles texture interpolation issues

That was basically not an issue with interpolation, but rather missing wrapping
options and periodic wrapping was always used.

It's still a bit questionable why certain graphics cards were doing clamping in
the file from the report, that's not something what is expected to happen from
the settings of textures being passed to GPU. In any case this issue i still
didn't manage to reproduce on any of the available GPUs, might be something
related on driver glitch or so.

In any case CPU now should behave just fine, rest of the issues we'll need to be
able to reproduce first.
July 21, 2015, 19:58 (GMT)
Cycles: Expose image image extension mapping to the image manager

Currently only two mappings are supported by API, which is Repeat (old behavior)
and new Clip behavior. Internally this extension is being converted to periodic
flag which was already supported but wasn't exposed.

There's no support for OpenCL yet because of the way how we pack images into a
single texture.

Those settings are not exposed to UI or anywhere else and there should be no
functional changes so far.
July 21, 2015, 15:40 (GMT)
Cycles: Implement camera zoom motion blur

Works totally similar to camera motion blur and majority of the changes are
related on just passing extra arguments to sync() functions.

Couple of things still to look into:

- Motion pass will not include motion caused by the zoom.
- Only perspective cameras are supported currently.
- Motion is being interpolated on projected coordinates, which might give
different results from constructing projection matrix from interpolated
field of view.

This could be good enough for us, but we need to consider improving this
at some point.

Reviewers: juicyfruit, dingto

Reviewed By: dingto

Differential Revision: https://developer.blender.org/D1383
July 21, 2015, 14:41 (GMT)
Try to remap buffer before rejecting.

I suspect code here can be cleaned up but for now try this.
Alternatively we can check for errors around buffer allocation
but this needs bigger changes.
July 21, 2015, 14:01 (GMT)
Added Action.fcurves.find(data_path, array_index=0)

Finding a specific F-Curve is often needed in Python, and usually
consists of a construct like:

```
[fcurve
for fcurve in ob.animation_data.action.fcurves
if fcurve.data_path == "location"][1]
```

This can now be written as
`ob.animation_data.action.fcurves.find('location', 1)`

This new function `Action.fcurves.find()` is still O(N) in the number
of FCurves in the Action, but at least it allows us to remove
boiler-plate code. It is also faster than the Python equivalent, as
only the found F-Curve is converted to Python.

Reviewers: campbellbarton, aligorith

Reviewed By: aligorith

Differential Revision: https://developer.blender.org/D1427
July 21, 2015, 13:42 (GMT)
Failure to alllocate vertex buffer would not fall back to vertex array
properly.

This should fix failure to use vertex arrays in OSX with high
polycounts.

Note this will not suffice as a fix when we move to VBOs exclusively
(GL 3+), we'll have to think of some way to separate huge meshes to many
VBOs.
July 21, 2015, 12:44 (GMT)
Fix: fixed UI description of Action.new() function
July 21, 2015, 11:49 (GMT)
Math Lib: use vector funcs for isect_line_line_v2_point
July 21, 2015, 10:02 (GMT)
Fix T45471: Blend file: Bad old_addr handling in mesh's customdata writing.

Issue is rather well explained in T45471: our current customdata writing code easily generates several different blocks in blend file with same 'old' address. This is bad, because those addresses are used as 'uid' during reading process (it kind of work in Blender's own reading process, by mere luck mostly, but breaks the file specs).

Solution (suggested by Campbell, thanks) implemented by this patch is to avoid duplicating everything, and instead just overwrite what we needs to skip some cdlayers on write:
* the CustomData's `totlayer` number;
* the CustomData's `layers` array of CustomDataLayer (keeping its original address using the `writestruct_at_address` helper).

New design allows us to get completely rid of the no_free flag stuff in `write_customdata()`.

Note that this implies written data is **not** directly valid from Blend PoV, since its written typemap does not match written layers (this is not an issue because typemap is rebuilt on read anyway - and it's easy to fix this if really needed).

Also, the backward compatibility saving of mface data remains an issue here, see comment in code.

Reviewers: sergey, campbellbarton

Projects: #bf_blender

Maniphest Tasks: T45471

Differential Revision: https://developer.blender.org/D1425
July 21, 2015, 09:42 (GMT)
Cycles: Another attempt to solve CUDA compilation errors on 32bit platforms
July 21, 2015, 09:26 (GMT)
Fix T45317: Cycles material preview unnecessarily re-rendering

The issue was caused by wrong fix for T22741 which forced redraws on any window
event, like Expose. Use proper NV_WM | ND_UNDO listener instead,
July 21, 2015, 08:43 (GMT)
Fix assert in Outliner.
July 21, 2015, 08:18 (GMT)
Cycles: Workaround for sm_50 on 32bit platform

Basically this commit totally disables new SVN Voxel node, which solves some
of the compiler's issues.
July 21, 2015, 07:29 (GMT)
Cleanup: style
July 21, 2015, 06:07 (GMT)
Merge branch 'master' into missing-libs
July 21, 2015, 06:02 (GMT)
Fix T45496: Crash loading file during preview

Regression from multi-view
July 21, 2015, 06:01 (GMT)
Merge branch 'asset-experiments' into asset-engine
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021