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-07-17Add thousands separators to scene stats (D646)Campbell Barton
by januz with own modifications
2014-07-08BLI_string, dont pass unicode to ascii BLI_str_partition functionsCampbell Barton
2014-07-04Add (r)partition funcs to BLI_string, to get left-most/right-most first ↵Bastien Montagne
occurence of delimiters. Inspired by Python (r)partition str functions. Also added some Gtest cases for those new funcs. Reviewed by Campbell Barton, many thanks!
2014-06-17BLI: Add two helpers to search a given string in an array of strings.Bastien Montagne
2014-05-20Fix T40224: Crash moving objects to another layerCampbell Barton
Incorrect nonnull attribute was optimizing out NULL check.
2013-09-01Move GCC attributes into a centraized definesSergey Sharybin
Instead of having ifdef __GNUC__ all over the headers to use special compiler's hints use a special file where all things like this are concentrated. Makes code easier to follow and allows to manage special attributes in more efficient way. Thanks Campbell for review!
2013-08-06use gcc malloc attribute for low level allocation functions, prevents gcc ↵Campbell Barton
from checking if resulting pointers alias existing pointers, also use sentinel attribute for uiButGetStrInfo so incorrect usage gives a warning.
2013-07-27code cleanup: remove redundant NULL checks and avoid writing to the source ↵Campbell Barton
string. also rename BLI_replacestr() -> BLI_replacestrN() since it returns an allocated buffer.
2013-07-15debug option (off by default), for BLI_string to help find incorrect sizes ↵Campbell Barton
being passed in (enable in source files only)
2013-06-16add BLI_strcpy_rlen, replace strcat, which was used in misleading way.Campbell Barton
2013-03-29misc minor edits.Campbell Barton
- pass string size to BLI_timestr() to avoid possible buffer overrun. - quiet warning for mingw. - include guards for windows utf conversion funcs. - fix for mistage in edge-angle-selection check. - some style cleanup.
2013-03-14add BLI_strncpy_rlen(), a clone of BLI_strncpy() that returns the number of ↵Campbell Barton
bytes copied. also move doxy comments for BLI_string.h into the C file.
2013-03-04fix [#34490] Copy and paste floating point number fields losses precisionCampbell Barton
- copy now gets up to 6 decimal places - copy and UI float button editing now strip zeros: 1.000 -> 1.0
2012-10-31add assert if zero is passed to string copy functions, would copy into first ↵Campbell Barton
byte anyway.
2012-10-27change BLI_strlen_range_utf8 to the more conventional BLI_strnlen_utf8Campbell Barton
2012-10-10use __restrict for string functions args so the compiler can assume they ↵Campbell Barton
dont overlap. also avoid comparing int/size_t in for loops.
2012-09-16use the format attribute in more places, disable X11 options when building ↵Campbell Barton
with GHOST_SDL
2012-08-26Some FFmpeg changesSergey Sharybin
- Make FFmpeg initialization called from creator, not from functions which requires FFmpeg. Makes it easier to follow when initialization should happen. - Enable DNxHD codec. It was commented a while ago due to some strange behavior on some platforms. Re-tested it on Linux and Windows and it seemd to be working quite nice. Would let it be tested further, if it wouldn't be stable enough, easy to comment it again. - Make non-error messages from writeffmpeg.c printed only if ffmpeg debug argument was passed to blender. Reduces console pollution with messages which are not useful for general troubleshooting. Error messages would still be printed to the console. - Show FFmpeg error message when video stream failed to allocate. makes it easier to understand what exactly is wrong from Blender interface, no need to restart blender with FFmpeg debug flag and check for console messages. Used custom log callback for this which stores last error message in static variable. This is not thread safe, but with current design FFmpeg routines could not be called form several threads anyway, so think it's fine solution/
2012-07-10rename BLI_getQuotedStr --> BLI_str_quoted_substrN to make it more clear its ↵Campbell Barton
doing an allocation.
2012-07-08use gcc attrubutes to warn on unused return values and arguments which ↵Campbell Barton
shouldnt be NULL. also remove IDP_AppendArray's return value which wasnt the new item in the array (which is odd/misleading), but wasnt used anywhere either.
2012-05-13code cleanup: header cleanup and remove some duplicate defines.Campbell Barton
2012-03-02style cleanupCampbell Barton
- spelling - turns out we had tessellation spelt wrong all over. - use \directive for doxy (not @directive) - remove BLI_sparsemap.h - was from bmesh merge IIRC but entire file commented and not used.
2012-03-01Spelling CleanupCampbell Barton
2012-02-17unify include guard defines, __$FILENAME__Campbell Barton
without the underscores these clogged up the namespace for autocompleation which was annoying.
2011-10-29replace BLI_strtok_r from r41337 with lighter method that doesnt alloc for ↵Campbell Barton
template_list
2011-10-28BLI_string: Adding the BLI_strtok_r function, which mimics stdlib strtok_r ↵Bastien Montagne
(unavailable on some systems). It allows to iterate over a string, returning an new element each time, using a char as separator. See BLI_String.h's comments for more info and an example. Needed by the UI template list patch following!
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-20- add BLI_string_utf8.h for unicode functions.Campbell Barton
- move font.c unicode functions into string_utf8.c and rename to fit with other BLI_string funcs.
2011-10-16utf8 editing for UI text input, this means backspace, delete, arrow keys ↵Campbell Barton
properly move the cursor with multi-byte chars. Note that this is only for the interface, text editor and python console still miss this feature.
2011-09-15fix [#28658] python can assign non utf8 and crash because of string lenth ↵Campbell Barton
limits. add BLI_strncpy_utf8() which which ensures there are no partially copied UTF8 characters, limited by the buffer size.
2011-09-15move utf8 string.c functions into their own file, also add python tip for ↵Campbell Barton
printing operators.
2011-08-23BLI_strescape for a basic, python like string escaping, currently only use ↵Campbell Barton
for drag and drop ID's into the console but should eventually be used for the animsys too.
2011-05-27remove BLI_streq() since it was hardly used, also replace string search with ↵Campbell Barton
BLI_findstring().
2011-05-26Fix #27445: various operators missing with some non-english system languages.Brecht Van Lommel
In the case of this bug e.g. material.new became MATERiAL_OT_new, due to different capitalization of "i" in Turkish. Fixed by not using the locale dependent toupper/tolower functions.
2011-03-25use size_t rather then int for passing lengths to string functions since ↵Campbell Barton
this is what guarded-malloc uses as well as stdlib.h.
2011-02-27pedantic warning cleanup, also remove texspace_edit() since its been added ↵Campbell Barton
using a different method.
2011-02-18doxygen: add blenlib under core as module.Nathan Letwory
2011-02-12fix for uninitialized value in BLI_path_cwd() if PWD wasn't defined and the ↵Campbell Barton
CWD was longer then 160.
2010-12-04Give functions that use printf style formatting GCC format attributes so if ↵Campbell Barton
incorrect formatting is used the compiler will warn of this. found & fixed 2x incorrect formatting args.
2010-11-29Description of BLI_strncpy() and BLI_strdupcat() were mixed up.Ton Roosendaal
IRC reported by OniNiubbo
2010-08-28python/utf8 compatibility fixes. (as discussed on the mailing list)Campbell Barton
- user input gets non utf8 chars stripped all text input other then file paths. - python has the same limitations, it will raise an error on non utf8 strings except for paths use unicode escape literals so its possible to deal with saving to these file paths from python. - new string functions BLI_utf8_invalid_byte(str, len) returns the first invalid utf8 byte or -1 on on success. BLI_utf8_invalid_strip(str, len) strips non utf-8 chars.
2010-05-08revert own commit 28662.Campbell Barton
strnlen is a GNU extension according to http://unixpapa.com/incnote/string.html
2010-05-08remove BLI_strnlen, use _strnlen as strnlen on windows.Campbell Barton
cant test on windows but from what I can tell this exists like _vsnprintf
2010-03-03fix for minor errors/warningsCampbell Barton
2010-02-12correct fsf addressCampbell Barton
2010-01-26Drag and drop 2.5 integration! Finally, slashdot regulars can useTon Roosendaal
Blender too now! :) ** Drag works as follows: - drag-able items are defined by the standard interface ui toolkit - each button can get this feature, via uiButSetDragXXX(but, ...). There are calls to define drag-able images, ID blocks, RNA paths, file paths, and so on. By default you drag an icon, exceptionally an ImBuf - Drag items are registered centrally in the WM, it allows more drag items simultaneous too, but not implemented ** Drop works as follows: - On mouse release, and if drag items exist in the WM, it converts the mouse event to an EVT_DROP type. This event then gets the full drag info as customdata - drop regions are defined with WM_dropbox_add(), similar to keymaps you can make a "drop map" this way, which become 'drop map handlers' in the queues. - next to that the UI kit handles some common button types (like accepting ID or names) to be catching a drop event too. - Every "drop box" has two callbacks: - poll() = check if the event drag data is relevant for this box - copy() = fill in custom properties in the dropbox to initialize an operator - The dropbox handler then calls its standard Operator with its dropbox properties. ** Currently implemented Drag items: - ID icons in browse buttons - ID icons in context menu of properties region - ID icons in outliner and rna viewer - FileBrowser icons - FileBrowser preview images Drag-able icons are subtly visualized by making them brighter a bit on mouse-over. In case the icon is a button or UI element too (most cases), the drag-able feature will make the item react to mouse-release instead of mouse-press. Drop options: - UI buttons: ID and text buttons (paste name) - View3d: Object ID drop copies object - View3d: Material ID drop assigns to object under cursor - View3d: Image ID drop assigns to object UV texture under cursor - Sequencer: Path drop will add either Image or Movie strip - Image window: Path drop will open image ** Drag and drop Notes: - Dropping into another Blender window (from same application) works too. I've added code that passes on mousemoves and clicks to other windows, without activating them though. This does make using multi-window Blender a bit friendler. - Dropping a file path to an image, is not the same as dropping an Image ID... keep this in mind. Sequencer for example wants paths to be dropped, textures in 3d window wants an Image ID. - Although drop boxes could be defined via Python, I suggest they're part of the UI and editor design (= how we want an editor to work), and not default offered configurable like keymaps. - At the moment only one item can be dragged at a time. This is for several reasons.... For one, Blender doesn't have a well defined uniform way to define "what is selected" (files, outliner items, etc). Secondly there's potential conflicts on what todo when you drop mixed drag sets on spots. All undefined stuff... nice for later. - Example to bypass the above: a collection of images that form a strip, should be represented in filewindow as a single sequence anyway. This then will fit well and gets handled neatly by design. - Another option to check is to allow multiple options per drop... it could show the operator as a sort of menu, allowing arrow or scrollwheel to choose. For time being I'd prefer to try to design a singular drop though, just offer only one drop action per data type on given spots. - What does work already, but a tad slow, is to use a function that detects an object (type) under cursor, so a drag item's option can be further refined (like drop object on object = parent). (disabled) ** More notes - Added saving for Region layouts (like split points for toolbar) - Label buttons now handle mouse over - File list: added full path entry for drop feature. - Filesel bugfix: wm_operator_exec() got called there and fully handled, while WM event code tried same. Added new OPERATOR_HANDLED flag for this. Maybe python needs it too? - Cocoa: added window move event, so multi-win setups work OK (didnt save). - Interface_handlers.c: removed win->active - Severe area copy bug: area handlers were not set to NULL - Filesel bugfix: next/prev folder list was not copied on area copies ** Leftover todos - Cocoa windows seem to hang on cases still... needs check - Cocoa 'draw overlap' swap doesn't work - Cocoa window loses focus permanently on using Spotlight (for these reasons, makefile building has Carbon as default atm) - ListView templates in UI cannot become dragged yet, needs review... it consists of two overlapping UI elements, preventing handling icon clicks. - There's already Ghost library code to handle dropping from OS into Blender window. I've noticed this code is unfinished for Macs, but seems to be complete for Windows. Needs test... currently, an external drop event will print in console when succesfully delivered to Blender's WM.
2009-10-12Animation Editors: 'Only Selected' filtering option now works on Pose ↵Joshua Leung
Channels too * Only F-Curves and Drivers that affect selected bones will be visible when this happens. * Moved the function to grab text within a pair of "" following some prefix to blenlib.
2009-10-09(Untested) String Replacement Function in blenlibJoshua Leung
Currently this hasn't been tested yet, but committing this first before I potentially use it for fixing RNA-paths...
2009-06-23SVN maintenance.Guillermo S. Romero
2009-06-092.50:Brecht Van Lommel
svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r19820:HEAD Notes: * Game and sequencer RNA, and sequencer header are now out of date a bit after changes in trunk. * I didn't know how to port these bugfixes, most likely they are not needed anymore. * Fix "duplicate strip" always increase the user count for ipo. * IPO pinning on sequencer strips was lost during Undo.