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
2012-02-26* bmesh py api BMEdge.verts was using 2 v1'sCampbell Barton
* bmesh pu api __repr__ functions for mesh data. * correct py hash defines.
2012-02-25style cleanup, use { on newline after function definition.Campbell Barton
spelling 'impliment' -> 'implement'
2012-02-22utility functions to convert between flags / sets, without depending on RNA API.Campbell Barton
2012-02-21fix for leak in gpu.export_shader(), wasnt freeing the function.Campbell Barton
also change the bmesh iterator so its possible to initialize without stepping.
2012-02-17unify include guard defines, __$FILENAME__Campbell Barton
without the underscores these clogged up the namespace for autocompleation which was annoying.
2012-02-05Code Cleanup: line length and use Py_ssize_t for PyC_AsArray utility function.Campbell Barton
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.
2011-12-26formatting edits only to use more consisted styleCampbell Barton
2011-12-24formatting edits 120 line lengthCampbell Barton
2011-12-23fix for own mistake [#29031] Importing BGL Can Crash the BGE and BlenderCampbell Barton
was adding the Buffer type to the module without increffing
2011-12-18formatting edits in py api, no functional changesCampbell Barton
2011-11-29missed removing these filesCampbell Barton
2011-11-29patch [#29421] Python Noise Module UpdatesCampbell Barton
from Andrew Hale (trumanblending) Tracker description ******************* The current python noise module included with Blender has yet to be updated to the new Py API. This patch does so, with the following major points: - The noise module has now been moved to a submodule of mathutils, it can be accessed by mathutils.noise. It was moved from it's own module as it will now return mathutils types and also have greater visibility to the user. - All functions which return vectors will now return mathutils.Vector types to be consistent with the rest of the API. Previously (x, y, z) tuples were returned. - A different implementation of random_unit_vector is now used, this allows 2D, 3D and 4D vectors to be returned. Previously only 3D was possible. - Some function names have been changed to remove ambiguities and make naming consistent within the module. noise.vector is now noise.noise_vector and noise.vl_vector is now noise.variable_lacunarity - Doc strings have been updated to be compatible with auto docs. - Code style and internal naming has been changed to match the conventions in other mathutils code. Thanks, Andrew
2011-11-26fix for own error with id props when adding byte stringsCampbell Barton
2011-11-22fix [#29319] bus error with python with link_append and {}Campbell Barton
patch from Emil Brink
2011-11-19replace fabs with fabsf where both input and output are floats.Campbell Barton
2011-11-15de-duplicate some idproperty py api code, also improve some exception messages.Campbell Barton
2011-11-15rename IDProp.c/h to idprop_py_api, since it was same name as BKE idprop.c ↵Campbell Barton
with case changed.
2011-11-15pass a pointer to IDP_New's IDPropertyTemplate rather then a copy.Campbell Barton
2011-11-15support for non-null terminated byte strings in id properties (as a subtype ↵Campbell Barton
of IDP_STRING types)
2011-11-11correct indentation and some whitespace edits (no functional changes)Campbell Barton
2011-11-05py operators - don't use the screen as an operators ID anymore, screen's ↵Campbell Barton
don't store operator instances and operator functions have access to the context if they need the current screen. also add some more py api file descriptions.
2011-11-05macro formatting & remve some unused code.Campbell Barton
2011-11-03python string conversionCampbell Barton
- use _PyUnicode_AsStringAndSize where possible - use %R for PyErr_Format(...) rather then running repr on the object explicitly - use const char
2011-10-31fix own error r41191 getting id property string lengths.Campbell Barton
2011-10-27use const for readonly strings and set some functions to staticCampbell Barton
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-22py api - added PyC_UnicodeFromByteAndSize() to match ↵Campbell Barton
PyUnicode_FromStringAndSize() also made RNA_property_string_get_alloc() return the length of the new string to avoid having to run strlen on it after.
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-20debug build option WITH_PYTHON_UI_INFO, so you can right click and edit the ↵Campbell Barton
python source for UI layout directly.
2011-10-13formatting edits & remove debug print.Campbell Barton
2011-10-08use newly added ID_BLEND_PATH() in more places.Campbell Barton
2011-09-28whitespace edits, make formatting for functions consustent at least within ↵Campbell Barton
the file.
2011-09-27py apiCampbell Barton
- use Py_ssize_t when dealing with python sequence sizes - dont call PySequence_Size(py_b) in a loop (its slow). - use faster sequence/float parsing in aud.Factory.filter
2011-09-27fix for py/rna api bug:Campbell Barton
PyC_UnicodeAsByte(), used for getting python strings as bytes wasnt clearning utf-8 conversion errors. this would raise an error when getting an operators filepath.
2011-09-26replace strncpy with BLI_strncpy, in some cases strncpy was being misused ↵Campbell Barton
since it doesnt ensure \0 termination. also dont call CTX_data_scene() twice when checking for function arguments.
2011-09-22correct fix for armature selection, also remove international define from ↵Campbell Barton
generic python C funcs.
2011-09-21remove blf.gettext, add blf.unload(font)Campbell Barton
2011-09-20have blf.gettext even when internationalization is disabled (just passes ↵Campbell Barton
through).
2011-09-20i18n: fake_gettext is no longer needed for pythonSergey Sharybin
2011-09-20i18n: code clean-upSergey Sharybin
- Move all translation-related declarations to BLF_translation.h - Reverted some changes to match trunk svn rev40365
2011-09-20modify the python gettext function to pass through the original string when ↵Campbell Barton
no translation is done, this means the cached info such as byte representation and hash will be kept.
2011-09-19Merging r40345 through r40365 from trunk into soc-2011-garlicSergey Sharybin
2011-09-19remove Buffer.list, deprecated before 2.59 release.Campbell Barton
2011-09-15Fixing issues with i18n stuff:Sergey Sharybin
- Make gettext stuff draw-time. so switching between languages can happens without restart now. - Added option to translate visible interface (menus, buttons, labels) and tooltips. Now it's possible to have english UI and localized tooltips. - Clean-up sources, do not use gettext stuff for things which can be collected with RNA. - Fix issues with windows 64bit and ru_RU locale on my desktop (it was codepage issue). - Added operator "Get Messages" which generates new text block with with all strings collected from RNA. - Changed script for updating blender.pot so now it appends messages collected from rna to automatically gathered messages. To update .pot you have to re-generate messages.txt using "Get Messages" operator and then run update_pot script. - Clean up old translation stuff which wasn't used and most probably wouldn't be used. - Return back "International Fonts" option, so if it's disabled, no gettext lookups happens on draw. - Merged read_homefile function back. No need in splitting it. TODO: - Custom fonts and font size. Current font isn't nice at least for russian locale, it's difficult to read it. - Put references to messages.txt so gettext can merge translation when name/description of some property changes.
2011-09-15svn merge -r39834:40222 https://svn.blender.org/svnroot/bf-blender/trunk/blenderSergey Sharybin
2011-09-15New C/Py api utility function PyC_Err_Format_Prefix() which raises an error ↵Campbell Barton
with the existing error as a suffix. Use this to raise errors when assigning a string property fails even though the value to assign *is* a string. Before: TypeError: bpy_struct: item.attr= val: Object.name expected a string type, not str After: TypeError: bpy_struct: item.attr= val: Object.name error assigning string, UnicodeEncodeError('utf-8' codec can't encode character '\udce9' in position 23: surrogates not allowed)
2011-09-08attempt to have a threadsafe version of PyC_ExceptionBuffer didnt work with ↵Campbell Barton
UI script errors, reverting r39886.
2011-09-07use Py_ssize_t rather than int when dealing with list sizes (original patch ↵Campbell Barton
from Fedora but applied changes elsewhere too), also replace PyList_Size with PyList_GET_SIZE where typechecking is already done.
2011-09-03PyC_ExceptionBuffer is now threadsafe, used for converting exceptions into ↵Campbell Barton
reports.