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-07-21Fix missing datablocks types in id_make_local.Bastien Montagne
Adding make_local for vfont/gpencil/group/freestyle linestyle/mask/scene/sound/text. Note that there are still some lose ends here, since some type are not handled by id_copy (Scene, Sound and VFont), which means in case a datablock of that type is used both directly and indirectly, localization will fail. Scene copying might be doable though (maybe with a simple new 'full shalow' mode to existing BKE_scene_copy?), not sure about sounds and vfonts... Situations where this becomes an issue should be very rare corner cases anyway.
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.
2016-06-21Cleanup: rename curve align-x flagsCampbell Barton
2016-06-21Text Object: Vertical AlignmentDalai Felinto
A new option for Font/Text objects vertical alignment: * Top Base-Line (current mode) * Top * Center * Bottom The Top is the equivalent as the Top-Baseline with an empty line at the begin of the text. It's nice to have this option too though, since if we are driving the alignment via Python we don't want to add extra lines to the text only to accomodate to the desired vertical alignment. The Center and Bottom are as intuitive as their name suggest. When working with text boxes, the vertical alignment only work for paragraphs that are not vertically full. Many thanks to Campbell Barton (ideasman42 / @campbellbarton) for the code review, code comments, and overall suggestions and changes :) Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D2061
2016-06-08Correct assertCampbell Barton
2016-04-283D Text: avoid checking null character's text on pathCampbell Barton
Redundant and causes complications when improving text code.
2016-02-12Integrate font objects copy/paste with system clipboardDalai Felinto
When pasting text, the style (bold, material, ...) is maintained, if it was originally copied from Blender. This fixes the issue of missing copy/paste options for font objects (they were present back in Blender 2.49) Reviewers: Severin, campbellbarton, brecht
2015-11-09Cleanup: avoid incrementing/decrementing id->us outside of BKE_library.Bastien Montagne
We have callbacks for that, they also do some checks and help ensure things are done correctly. Only place where this is assumed not true is blenloader (since here we may affect refcount of library IDs as well...).
2015-10-20First step to handle missing libs/datablocks when reading a file.Bastien Montagne
Idea is, instead of ignoring completely missing linked datablocks, to create void placeholders for them. That way, you can work on your file, save it, and find again your missing data once lib becomes available again. Or you can edit missing lib's path (in Outliner), save and reload the file, and you are done. Also, Outliner now shows broken libraries (and placeholders) with a 'broken lib' icon. Future plans are also to be able to relocate missing libs and reload them at runtime. Code notes: - Placeholder ID is just a regular datablock of same type as expected linked one, with 'default' data, and a LIB_MISSING bitflag set. - To allow creation of such datablocks, creation of datablocks in BKE was split in two step: + Allocation of memory itself. + Setting of all internal data to default values. See also the design task (T43351). Reviewed by @campbellbarton, thanks a bunch! Differential Revision: https://developer.blender.org/D1394
2015-10-06RNA: Add check_existing arg to other load() funcsCampbell Barton
Note: movieclip was doing this already by default, now split into 2 functions, matching image behavior.
2015-09-10Fix incorrect textbox use w/ scaled fontsCampbell Barton
2015-01-26Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).Bastien Montagne
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)' and 'strcmp(foo, bar) == 0' in several places...
2014-09-10Text3d: assert for <0 len textCampbell Barton
also add operator to test blacklist
2014-09-10Text3D: fixes to selectionCampbell Barton
- clamp selection on entering editmode (Python may have changed). - BKE_vfont_select_get no longer succeeds with an empty selection this caused many operators to go ahead and operate on zero size array.
2014-05-163D Text: Change textbox placement to ignore font scaleCampbell Barton
Logic here was very stupid, texboxes would have their initial locations scaled by font size but not their width/height. Now its possible to change font size while keeping the textbox layout. Other fixes - tab character didn't work properly with textboxes. - memory leak when VFontData was missing.
2014-05-163D Text: replace multiple float arrays with struct (much easier to understand)Campbell Barton
2014-05-15Fix for cursor location with xoffset & flush alignmentCampbell Barton
2014-05-15Code cleanup: remove '\r' check for 3d text, its removed on load even on windowsCampbell Barton
2014-05-15Fix T40204: x-offset textbox failed with center/justify/flushCampbell Barton
2014-05-15Fix for right aligned text ignoring xoffsetCampbell Barton
2014-05-15Fixes for font underlineCampbell Barton
- underline faces had flipped winding by default. - BKE_vfont_to_curve_ex disallowed 0 underline height (annoying when sliding value) - disallow negative underline height since it flips underline direction (just change position + height)
2014-05-15Fix T40180: Space between letters adds space after last letterCampbell Barton
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-02-03Code cleanup: use bools where possibleCampbell Barton
2014-01-20Followup for 1728c1e: we don't need to replace flags at allSergey Sharybin
Replacing the flags isn't thread safe and could lead to bi troubles. Such things are to be handled by the dependency graph.
2014-01-20Fix for flag not being restored in BKE_vfont_to_curve_exCampbell Barton
2014-01-17Code Cleanup: spellingCampbell Barton
2014-01-15Python/Depsgraph: bpy.data.*.is_updated now detects add/remove of any datablock.Tom Edwards
Previously this only worked for some datablocks relevant to rendering, now it can be used to detect if any type of datablock was added or removed (but not yet to detect if it was modified, we need many more depsgraph tags for that). Most of the changes are some function parameter changes, the important parts are the DAG_id_type_tag calls. Reviewed By: sergey, brecht Differential Revision: https://developer.blender.org/D195
2014-01-13Remove direct displist creation from BKE_vfont_to_curve_ex()Sergey Sharybin
This goes back to ancient era again and such a call isn't safe for threading and really DAG is to make it sure display list for dependencies is always there.
2014-01-07Fix for error in own recent commitCampbell Barton
2014-01-07Text3d: underline offset on curved path wasnt working rightCampbell Barton
2014-01-07Text3d: Add support for underline characters with text-on-pathCampbell Barton
2014-01-07Text3d: move text selection boxes from Curve to EditFont structCampbell Barton
resolves T38079
2014-01-05Text3d: minor edits to the API, remove BKE_vfont_to_curve_nubase_exCampbell Barton
2014-01-05Text3d: fix font family feature for unicode and correct tooltipCampbell Barton
2014-01-05Fix crash when having multiple text objects sharing the same curve datablockSergey Sharybin
Issue was caused by BKE_vfont_to_curve() modifying curve->nurbs list which gave threading issues. Now added BKE_vfont_to_curve_nubase() which operates on a given nurbs list base which is local in do_makeDispListCurveTypes(). By the looks of it it wouldn't give speed regression because previously it also was creating nurbs for every font object sharing the same curve data.
2014-01-05Text3d: selection in editmode now follows rotated text along pathCampbell Barton
2014-01-05Text3d: fix for smallcaps modifying the original text input in editmode.Campbell Barton
Oversight in own recent commit to avoid allocating a new wchar_t array.
2014-01-05Text3d: smallcaps wasnt working properly for text-on-pathCampbell Barton
2014-01-05Text3d: remove sepchar, old feature which no longer has any UI access.Campbell Barton
2014-01-05Text3d: error in own recent fix for thread safetyCampbell Barton
2014-01-03Text3d: store number of characters and utf8 length separatelyCampbell Barton
EditFont's use of Curve.len was very confusing, in editmode it represented the number of characters, in object mode the number of bytes. add Curve.len_wchar and keep track of both. Also don't convert the editmode text into utf8 on every keystroke. Now this is done on exiting editmode or save - to match most other object types. This also fixes curves 'body_format' being reported with an invalid size.
2014-01-03Text3d: avoid converting utf8 to wchar_t in editmodeCampbell Barton
2013-12-29Text3d: add assert's to check the selection and length are validCampbell Barton
2013-12-29Follow up to the previous commit: vfont_get_data is to use the same RW lockSergey Sharybin
2013-12-29Fix T37980: Multiple font objects sharing an external font gives problemsSergey Sharybin
Solved by adding RW lock to BKE_vfont_to_curve. So now all the threads are allowed to read chars from ghash, but they'll be locked as soon as one thread would need to load more chars from font to the ghash.
2013-12-28Fix for text3d issue, \n was attempting to find a character tooCampbell Barton
2013-12-28Fix for 3d fonts loading the character of the string terminator.Campbell Barton
also remove redundant call to wcslen and ensure FT_Init_FreeType runs once the font loads.
2013-12-283D Text: use ghash for character lookupsCampbell Barton