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
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
2013-10-22add copy_v4_fl4, replace QUATSET macro.Campbell Barton
2013-08-19Merge remained parts of r57520: use use_render argument rather than ↵Sergey Sharybin
G.is_rendering
2013-08-19Make fonts safe(r) for threadingSergey Sharybin
Getting vfont data wasn't safe for threading, because it was modifying font data which is in bmain and could be shared by multiple objects. For now made it so getting vfont uses critical section, meaning vfont->data is initializing from inside a locked mutex. -- svn merge -r58168:58169 ^/branches/soc-2013-depsgraph_mt
2013-08-19Move bevel list and path from Curve to Object datablockSergey Sharybin
I know this is not so much nice to have this guys hanging around in a general Object datablock and ideally they better be wrapped around into a structure like DerivedMesh or something like this. But this is pure runtime only stuff and we could re-wrap them around later. Main purpose of this is making curves more thread safe, so no separate threads will ever start freeing the same path or the same bevel list. It also makes sense because path and bevel shall include deformation coming from modifiers which are applying on pre-tesselation point and different objects could have different set of modifiers. This used to be really confusing in the past and now data which depends on object is stored in an object, making things clear for understanding even. This doesn't make curve code fully thread-safe due to pre-tesselation modifiers still modifies actual nurbs and lock is still needed in makeDispListsCurveTypes, but this change makes usage of paths safe for threading. Once modifiers will stop modifying actual nurbs, curves will be fully safe for threading. Actually, this commit also contains wrapping runtime curve members into own structure This allows easier assignment on file loading, keeps curve- specific runtime data grouped and saves couple of bytes in Object for non-curve types. -- svn merge -r57938:57939 ^/branches/soc-2013-depsgraph_mt svn merge -r57957:57958^/branches/soc-2013-depsgraph_mt
2013-07-15fix for error in string copyCampbell Barton
- BLI_strncpy_wchar_from_utf8 wasn't NULL terminating the destination string, caused uninitialized memory use in BPY_python_start(). - BLI_strncpy_wchar_as_utf8 could write one byte past the buffer bounds.
2013-03-10add STREQ macro (commonly used macro like CLAMP, MAX2, STRINGIFY). Use for ↵Campbell Barton
some areas of the python api, bmesh.
2013-03-09use 'bool' for BLI_/BKE_ functions.Campbell Barton
2013-03-09code cleanup: favor braces when blocks have mixed brace use.Campbell Barton
2013-03-05patch [#34103] path_util_split_dirstring.patch, ↵Campbell Barton
path_util_split_dirstring_2.patch, path_util_split_dirstring_3.patch from Lawrence D'Oliveiro (ldo) Get rid of BLI_splitdirstring, replace with calls to BLI_split_dirfile, BLI_split_dir_part and BLI_split_file_part as appropriate.
2013-01-12code cleanup: style and replace (float)sin, (float)cos with sinf, cosfCampbell Barton
2012-10-23rename api functions...Campbell Barton
- minf, maxf, mini, maxi --> min_ff, max_ff, min_ii, max_ii
2012-10-21style cleanup: trailing tabs & expand some non prefix tabs into spaces.Campbell Barton
2012-10-07style cleanup: if();Campbell Barton
2012-09-04code cleanup: move file string defines into BLI_path_utils.h, ↵Campbell Barton
BKE_utildefines is now unused but keep incase we want to add defines there later.
2012-08-21code cleanup: minor changes to last commit.Campbell Barton
2012-08-21code cleanup: vfont's used confusing and over complicated method of storing ↵Campbell Barton
memory for loaded fonts, not store as a temp var in the fonts.
2012-08-17fix own error in recent smoothview cleanup, also correct some cross ↵Campbell Barton
references in bmesh docs.
2012-08-04style cleanupCampbell Barton
2012-08-04style cleanupCampbell Barton
2012-08-04code cleanup: use camelcase for struct name.Campbell Barton
2012-08-04code cleanup:Campbell Barton
- replace (strcmp(vfont->name, FO_BUILTIN_NAME) == 0) with (BKE_vfont_is_builtin(vfont)). - reduce some double promotions.
2012-08-03fix/edits to vector font handlingCampbell Barton
- don't overwrite the font path with "<builtin>" when the font file cant be found, it caused bad problems when loading files on someone elses systems when paths couldn't be found blender would silently clobber paths (tsk tsk). - when fonts are freed their temp data is now freed too. - assigning a new filepath to a font now refreshes the object data.
2012-07-08style cleanupCampbell Barton
2012-07-07code cleanup: dont use function calls like dot_v3v3, pow and sqrt within ↵Campbell Barton
macros which results in calling the function multiple times needlessly. also added some comments.