Blender Git Commits

Blender Git "master" branch commits.

Page: 2338 / 5574

June 22, 2016, 16:04 (GMT)
Cleanup: use proper RNA struct type for ListBase type
(otherwise all code using RNA has to link DNA_listbase.h, not clean at all!).
June 22, 2016, 15:53 (GMT)
ID-Remap - Step one: core work (cleanup and rework of generic ID datablock handling).

This commit changes a lot of how IDs are handled internally, especially the unlinking/freeing
processes. So far, this was very fuzy, to summarize cleanly deleting or replacing a datablock
was pretty much impossible, except for a few special cases.

Also, unlinking was handled by each datatype, in a rather messy and prone-to-errors way (quite
a few ID usages were missed or wrongly handled that way).

One of the main goal of id-remap branch was to cleanup this, and fatorize ID links handling
by using library_query utils to allow generic handling of those, which is now the case
(now, generic ID links handling is only "knwon" from readfile.c and library_query.c).

This commit also adds backends to allow live replacement and deletion of datablocks in Blender
(so-called 'remapping' process, where we replace all usages of a given ID pointer by a new one,
or NULL one in case of unlinking).

This will allow nice new features, like ability to easily reload or relocate libraries, real immediate
deletion of datablocks in blender, replacement of one datablock by another, etc.
Some of those are for next commits.

A word of warning: this commit is highly risky, because it affects potentially a lot in Blender core.
Though it was tested rather deeply, being totally impossible to check all possible ID usage cases,
it's likely there are some remaining issues and bugs in new code... Please report them! ;)

Review task: D2027 (https://developer.blender.org/D2027).
Reviewed by campbellbarton, thanks a bunch.
June 22, 2016, 14:12 (GMT)
Cycles: Fix crash with Environment Texture and OSL

In the OSL node compilation code for the Environment Texture, is_linear was used as a socket.
However, there was no socket for it, which caused Blender to crash.
Adding a socket doesn't really make sense since it's an internal value and not a parameter
of the node, so it now just uses the variable directly.
June 22, 2016, 11:30 (GMT)
EditMesh: Avoid creating deform-vert layer every redraw

Getting a new edit-derived-bmesh was always creating a deform-vert array, even when it wasn't needed.
Since this was called on redraw, in many cases it was doing it unnecessarily.

Now pass in a custom-data mask and only fill in deform-verts when needed.

Gives noticeable drawing speedup (~10-30% here).
June 22, 2016, 11:12 (GMT)
Merge branch 'master' into blender2.8

Conflicts:
source/blender/blenloader/intern/readfile.c
source/blender/editors/physics/particle_edit.c
June 22, 2016, 04:02 (GMT)
Cleanup: style
June 21, 2016, 23:50 (GMT)
Cleanup: remove unused Image space curves

Caused leaks reading old files, was read/written but not freed,
remove since its unused.
June 21, 2016, 23:38 (GMT)
readfile: use BLI_endian_switch

Replace inline endian switching
June 21, 2016, 22:47 (GMT)
Remove module reloading for preview operators

This can be kept on file level but best keep out of operator functions.
June 21, 2016, 22:44 (GMT)
writefile: use const for old address

Also remove temp preview overwriting.
June 21, 2016, 21:46 (GMT)
Docs: use doxy formatting for readfile
June 21, 2016, 21:46 (GMT)
Fix T48703: Name inconsistency w/ area maximize/fullscreen

Name operator based on default behavior.
June 21, 2016, 21:23 (GMT)
T48694: fix bge.texture.Texture.refresh() documentation

first parameter is mandatory and must be a bool indicating if the image
source should be refreshed after updating the texture.
June 21, 2016, 19:33 (GMT)
Fix null-pointer free

Own error in recent decimeter commit
June 21, 2016, 18:16 (GMT)
Fix T48700: Crash when window creation fails

Check if Python is initialized before calling BPY_python_end.
June 21, 2016, 18:09 (GMT)
Fix T48698: Rays from SSS act as diffuse for normal objects but have an undefined type for lamp objects

The problem here was that there are five path types internally (diffuse, glossy, transmission, subsurface and volume scatter), but subsurface isn't exposed to the user.
This caused some weird behaviour - if all four types are disabled on the lamp, Cycles doesn't even try sampling it, but if any type was active, the lamp would illuminate
the cube since none of the options set subsurface to zero.
In the future, it might be reasonable to add subsurface visibility as an option - but for now the weird and inconsistent behaviour can be fixed simply by setting both
diffuse and subsurface to zero if the user disables diffuse visibility.
June 21, 2016, 14:19 (GMT)
Cleanup: hide debug print behind proper debug defines instead of using comments...
June 21, 2016, 14:12 (GMT)
Fix T48412: Blender 2.77a crashes on Undo in some specific multi-level linked libraries cases.

Good old dead-brain stupid error when iterating over a linked list from which you remove some items...
Revision 8dec4a0 by Lukas Toenne
June 21, 2016, 10:51 (GMT)
Fix for string buffer overflow in DepsNode identifiers.

Layer flags can go up to 2^n-1 for n layers, requiring *at least* 9 chars + 1 terminator for 20 layers.
June 21, 2016, 06:18 (GMT)
Fix T48697: Brush curve-stroke snaps strangely

Support Snapping screen-space 2d curves, (was applying world-space coords in screen-space).
Also show snap settings in header.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021