Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-06-22ID-Remap - Step one: core work (cleanup and rework of generic ID datablock ↵Bastien Montagne
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.
2015-11-02Library API: pass Main struct to unlink functionsCampbell Barton
2015-02-06Outliner: DragDrop objects to groupsCampbell Barton
Support drag&drop objects to groups in the outliner. D989 by @lichtwerk
2014-08-06Fix T41343, hard to remove group from objects.Antony Riakiotakis
Added a small menu with a few helper oerators next to each group panel: * Remove group from all objects * Select objects in group More could be added possibly in the future. Thanks to Campbell for the advice here.
2014-05-23Another fix for T40230/T40290: Object tags were not properly initializedLukas Tönne
before entering the recursion check. Now use group tags instead of object tags, which could be a little more efficient and was used before this patch too.
2014-05-22Fix T40290: False (or malfunctioning) dependency-cycle warning when adding ↵Lukas Tönne
dupligroup objects to another group. The new recursion check for groups duplicating themselves has to un-set the LIB_DOIT flag after each object, otherwise it will prevent duplicating a (non-recursive) group multiple times.
2014-05-17Fix T40230: Recursion check when adding objects to groups is incorrect.Lukas Tönne
rB568f0c7 added a recursion check that is supposed to prevent cyclic cases where a group includes itself via dupli instancing. The check function was descending into all groups nested inside the target group - which works for single level recursion like in the test case, but does not handle generic recursion. Basically it asked: "is object X in the group already or in any instanced dupligroup?" The new check instead asks: "is group G dupli'd by X or any instanced subgroup thereof?" which is what we really need to know.
2014-05-05Stop all dynamic enums using translations (from blend file data)Campbell Barton
2014-05-05Fix: T40016 ID Names translated in menusCampbell Barton
2014-04-30Code cleanup: remove redundant CTX callsCampbell Barton
2014-04-11Code cleanup: use boolCampbell Barton
2014-01-04RNA API: use bool's for enum itemf callbacks.Campbell Barton
2013-12-30Main API: refactor naming, use BKE_main_ prefix and add main arg.Campbell Barton
2013-12-12Fix T37769: inconsistent behavior of Remove Selected From Active Group.Brecht Van Lommel
Add Selected to Active Group presented a menu with groups to choose from, while this seemingly inverse operation did not and used all groups of the active object. Now both operators present a menu, with as first option "All Groups".
2013-09-30lots of operator descriptions were incorrectly copy/pasted.Campbell Barton
update some descriptions, others were removed and operators tagged as internal. add a script to detect duplicate operator descriptions.
2013-08-08Fix #36383: add object to group check for dependency cycles did not work ↵Brecht Van Lommel
correctly when the group contained two objects duplicating the same group. Also added the dependency check to the "add to active group" operator now for consistency.
2013-06-11Fix #35704: Simplify on scene with dupli recursion crashesSergey Sharybin
Couple of issues here: - User shouldn't be able to run into dupligroup recursion. It was checking already when setting a group for dupli. Added check to operator which adds object to group. - It's still possible files with recursion are hanging around, so made simplify function robust to such kind of crap.
2013-04-03code cleanup: use more (blender) conventional naming for group functions.Campbell Barton
also change dump_rna2xml.py to dump bpy.data by default.
2013-02-21Dependency Graph: some refactoring which should have no user visible impactBrecht Van Lommel
besides performance in some cases. * DAG_scene_sort is now removed and replaced by DAG_relations_tag_update in most cases. This will clear the dependency graph, and only rebuild it right before it's needed again when the scene is re-evaluated. This is done because DAG_scene_sort is slow when called many times from python operators. Further the scene argument is not needed because most operations can potentially affect more than the current scene. * DAG_scene_relations_update will now rebuild the dependency graph if it's not there yet, and DAG_scene_relations_rebuild will force a rebuild for the rare cases that need it. * Remove various places where ob->recalc was set manually. This should go through DAG_id_tag_update() in nearly all cases instead since this is now a fast operation. Also removed DAG_ids_flush_update that goes along with such manual tagging of ob->recalc.
2013-02-05Fix #34040: Moving Normal Node with enabled Cycles Material Preview crashesSergey Sharybin
Issue was caused by couple of circumstances: - Normal Map node requires tesselated faces to compute tangent space - All temporary meshes needed for Cycles export were adding to G.main - Undo pushes would temporary set meshes tessfaces to NULL - Moving node will cause undo push and tree re-evaluate fr preview All this leads to threading conflict between preview render and undo system. Solved it in way that all temporary meshes are adding to that exact Main which was passed to Cycles via BlendData. This required couple of mechanic changes like adding extra parameter to *_add() functions and adding some *_ex() functions to make it possible RNA adds objects to Main passed to new() RNA function. This was tricky to pass Main to RNA function and IMO that's not so nice to pass main to function, so ended up with such decision: - Object.to_mesh() will add temp mesh to G.main - Added Main.meshes.new_from_object() which does the same as to_mesh, but adds temporary mesh to specified Main. So now all temporary meshes needed for preview render would be added to preview_main which does not conflict with undo pushes. Viewport render shall not be an issue because object sync happens from main thread in this case. It could be some issues with final render, but that's not so much likely to happen, so shall be fine. Thanks to Brecht for review!
2012-12-27Bug fix, own collection.Ton Roosendaal
"Add Group" was excluding linked library objects.
2012-10-26Big i18n commit: add "reports" from bmesh/readfile/tracking/dynapaint (and a ↵Bastien Montagne
few others), and another bunch of UI messages tweaks/fixes, as well as some BKE_report()<->BKE_reportf()...
2012-10-21style cleanup: trailing tabs & expand some non prefix tabs into spaces.Campbell Barton
2012-08-26Bugfix [#32410] Create New Group (CTRL+G) tried to activate even when nothing isJoshua Leung
selected Some group operators were missing poll() callbacks
2012-07-19mask transform aspect correction wasn't working properly, also fix for own ↵Campbell Barton
recent commit which made cyclic report not show
2012-07-18make links now allows groups - this means you can make objects have matching ↵Campbell Barton
groups to the active more easily.
2012-07-18adding objects active groups now gives menu of which group to add to.Campbell Barton
2012-07-17code cleanup: spellingCampbell Barton
2012-07-02fix for crash getting GROUP_OT_objects_remove's props without a context (own ↵Campbell Barton
fault)
2012-06-21correction to own commit - thanks Anthony Edlin for pointing out the error.Campbell Barton
2012-06-20removing from group now shows menu to select group to remove.Campbell Barton
2012-05-05Second part of fix for [#31157]: Some (actually, 172) operators have no tooltip.Bastien Montagne
About 30 undocumented ops remaining...
2012-04-30style cleanup: re - ↵Campbell Barton
http://wiki.blender.org/index.php/Dev:Doc/CodeStyle#Braces_with_Macros
2012-04-28style cleanup: editors / mesh & objectCampbell Barton
2012-04-28style cleanup: format 'for' loop macros the same as for loops, some renaming ↵Campbell Barton
to BLI_array macros.
2012-04-24Prevent adding objects to be added to a group which is used as dupli-group ↵Sergey Sharybin
for this object when using "Add Selected to Active Group" operator,
2012-03-24style cleanup: follow style guide for formatting of if/for/while loops, and ↵Campbell Barton
else if's
2012-03-22style cleanup: spaces aroudn operators for operator definitions.Campbell Barton
2012-03-03style cleanup - use aligned * prefixed blocks for descriptive comments (was ↵Campbell Barton
already used a lot and part of proposed style guide).
2012-01-11Longer names support for all ID and other object namesSergey Sharybin
This commit extends limit of ID and objects to 64 (it means 63 meaning characters and 1 for zero-terminator). CustomData layers names are also extended. Changed DNA structures and all places where length constants were hardcoded. All names which are "generating" from ID block should be limited by MAX_ID_NAME-2, all non-id names now has got own define called MAX_NAME which should be used all over for non-id names to make further name migration stuff easier. All name fields in DNA now have comment with constant which corresponds to hardcoded numeric value which should make it easier to further update this limits or even switch to non-hardcoded values in DNA. Special thanks to Campbell who helped figuring out some issues and helped a lot in finding all cases where hardcoded valued were still used in code. Both of forwards and backwards compatibility is stored with blender versions newer than January 5, 2011. Older versions had issue with placing null-terminator to DNA strings on file load which will lead to some unpredictable behavior or even crashes.
2012-01-02replace:Campbell Barton
CTX_data_pointer_get_type(C, "object", &RNA_Object).data with api call: ED_object_context(C) ... since getting the context object is such a common operation.
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-04-21whitespace only, no functional change mixed tabs/spaces --> tabs.v2.57aCampbell Barton
2011-02-27doxygen: blender/editors tagged.Nathan Letwory
2011-02-23doxygen: prevent GPL license block from being parsed as doxygen comment.Nathan Letwory
2011-01-07split BKE_utildefines.h, now it only has blender specific defines like GS() ↵Campbell Barton
MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h. no functional changes.
2010-11-12Bugfix #20382Ton Roosendaal
Fixed old annoyance in Search menu, with a load of object-mode operators showing up in editmode. It's much cleaner now, but it will take further work and investigation to have context & polls work satisfying for all cases.
2010-10-15tag UNUSED() for operator exec() and invoke() functions.Campbell Barton
2010-08-16- remove unused includes IMB_*, BIF_* & MEM_*Campbell Barton
- remove MEM_guardedalloc.h from header files (include directly)
2010-08-08remove unused includesCampbell Barton