Blender Git Commit Log

All Blender Git commits.

Page: 4659 / 8462

October 12, 2015, 13:20 (GMT)
WM linking code rework.

New code loops much less, does re-open & close .blend files for each data type,
and is much much more flexible - it is also ready for id-remap & co work being done in branches.

Main idea is to store libraries & datablocks to link in a dedicated struct, in a way
that avoids too much looping, and also allows to search for a single datablock in several libraries.

Here again, no change is expected in current behavior of link/append tool, please report
if anything goes different!
October 12, 2015, 13:19 (GMT)
Merge branch 'master' into lib-link-rework-temp
October 12, 2015, 13:07 (GMT)
Cleanup & rework of BLO_linking code.

This commits does mostly two things:
* Get rid of bContext parameter: I can see no real good reason to pass such a high-level data
to such low-level code... It also makes it more difficult to call when you do not have
a context available.
* Cleanup the instantiating part.

Last point is the most risky - previous code was sometimes quite confusing and hard to follow,
from tests nothing behaves differently in new code, but some hidden corner case may show up.

Anyway, no change in behavior is expected from this commit, if it happens please file a bugreport!
October 12, 2015, 12:39 (GMT)
Merge branch 'master' into lib-link-rework-temp
October 12, 2015, 12:31 (GMT)
Cleanup: BLO: use proper typedef for expand_doit callback.
October 12, 2015, 12:30 (GMT)
Cleanup: BLO: move func doc comments to definitions of functions.

Follows our conventions and makes include file itself much cleaner.
October 12, 2015, 11:53 (GMT)
Merge branch 'master' into lib-link-rework-temp
October 12, 2015, 11:47 (GMT)
Cleanup in BLO API: rename 'append' funcs to 'link', since none do append, but only linking of datablocks!
October 12, 2015, 11:07 (GMT)
Workaround for glew initialization bug

It turns out libGL from Intel crashes when calling glxewInit (where mesa, nvidia work fine),
unfortunately the only option without making larger changes to glew,
is to inline the parts of glew we're using - before the glx context is created.
October 12, 2015, 10:39 (GMT)
Some cleanup...
October 12, 2015, 10:34 (GMT)
Merge branch 'master' into lib-link-rework-temp
October 12, 2015, 10:15 (GMT)
Fix T34446: Make Local on linked mesh object: object gets removed if redo function is used.

Root of the issue is that we do not re-read lib data blocks and ID placholders (ID_ID bheads)
in undo context (in `blo_read_file_internal`), because `BLO_read_from_memfile` copies
lib datablocks and Main data directly from oldmain.
The idea being, linked data do not change from undo/redo.

This is valid as long as linked data was not changed by the undo step - but if some
was deleted or localized, it will be missing from oldmain, leading to data loss
(note that does not only concern objects, all linkable data types can be affected,
at least in theory).

This commit addresses that issue by carefully mixing reuse of needed data from oldmain,
and "normal" re-reading of missing one. Makes us swimming in some rather dark waters,
and gives a rather non-easy-to-follow code, but it seems to work quite well,
and only other solution would be to get rid of that optimization
(not re-reading all libs on undo/redo), which is not acceptable.

Also, thanks to @carlosdp for initial investigation of the issue.

Differential Revision: https://developer.blender.org/D1485
October 12, 2015, 08:23 (GMT)
Fix stupid mistake...
October 12, 2015, 08:08 (GMT)
Merge branch 'master' into shapekeys-normals
October 12, 2015, 04:08 (GMT)
Fix T46431: Init glew before glx-context crashes

Initialize glxew before glew,
so we can check whats supported before creating the context.

This also removes need for mxIgnoreNoVersion.
October 12, 2015, 02:13 (GMT)
Support applying scale for font objects
October 12, 2015, 01:31 (GMT)
Cleanup: RNA naming, use 'max' as a suffix
October 12, 2015, 01:31 (GMT)
RNA: correct tips
October 12, 2015, 01:22 (GMT)
Fix T46447: fix build on non-x86 platforms.
October 12, 2015, 01:22 (GMT)
Fix T46446: texture nodes image node not working with image sequences.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021