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
2011-09-21py/rna string subtypes for strings which should be automatically translated:Campbell Barton
layout.prop("blah", text="Translate Me!")
2011-09-20Cycles: svn merge -r40358:40411 ^/trunk/blenderBrecht Van Lommel
2011-09-20- translation scripts now run with py3.xCampbell Barton
- added convenience make target 'make translations' - some MEM_malloc strings were not unique enough, expanded them.
2011-09-20SVN maintenance.Guillermo S. Romero
2011-09-20(no commit message)Campbell Barton
2011-09-20have blf.gettext even when internationalization is disabled (just passes ↵Campbell Barton
through).
2011-09-20Improved Internationalization and LocalizationSergey Sharybin
============================================== Commiting GSoC project by Xiangquan Xiao trunk. Applied as separated patch, because svn merge produces to much false conflicts and worked really slow. Details for usage would be published on code.blender.org soon. Thanks to Xiao for implementation of project, Campbell to code review, Dalai and Gez for pointing to nice font and everybody else who took part in improving i18n support.
2011-09-20fix [#28672] Blender segfault after exiting a game that was opened withCampbell Barton
autoplay on (Blender, not blenderplayer) blender now stops the sound system and free's its self on Pythons sys.exit().
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-19edits to argument parsing for Euler.rotate_axis, also corrected some ↵Campbell Barton
exception messages and minor style edits.
2011-09-19i18n: code cleanup and fixing unneeded translation (when partial translation ↵Sergey Sharybin
is used only)
2011-09-19add back mathutils Matrix() * Vector(), this is row_vector multiplication.Campbell Barton
some minor changes to exception messages.
2011-09-19Cycles: svn merge -r40266:40358 ↵Brecht Van Lommel
https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-19Move function out of mathutils to: BLI_math_rotation --- ↵Campbell Barton
single_axis_angle_to_mat3(mat3, axis, angle), copied out from mathutils, axis arg is a char 'X/Y/Z' rather then a vector like axis_angle_to_mat3().
2011-09-19remove Buffer.list, deprecated before 2.59 release.Campbell Barton
2011-09-19svn merge -r40222:40344 ^/trunk/blenderSergey Sharybin
2011-09-17Cycles: svn merge -r39870:r40266 ↵Brecht Van Lommel
https://svn.blender.org/svnroot/bf-blender/trunk/blender Merging the node changes required a lot of conflict resolution, fixed the issues I could find but if you want stability you might want to wait a bit before updating.
2011-09-16use replace 0 with NULL for pointers, set some functions staticCampbell Barton
also fixed own errors in recent static check commit.
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-10recast and detour patch now builds again with GCCCampbell Barton
- rearrange structs to work for 64bit - define all vars before goto's - ifdefs for qsort_r/qsort_s - dont cast pointers to int only for NULL checks - dont printf STR_String directly, get the char pointer from it also minor change to gpu py module, no need to pass empty tuple to PyObject_CallObject, can just be NULL
2011-09-09warning fixesCampbell Barton
2011-09-09GPU: add gpu python module with export_shader() function to export GLSL shader.Benoit Bolsee
shader = gpu.export_shader(scene,material) Returns the GLSL shader that blender generates to produce the visual effect of material in scene for the purpose of reusing the shader in an external engine. This function is meant to be used in a material exporter so that the GLSL shader can be exported entirely. The return value is a dictionary containing the shader source code and all associated data. The full documentation is under sphinx. Warning: there has been an API between the patch and this commit: uniform['lamp'] and uniform['image'] now return python reference to ID block instead of ID name as before. The X3D exporter that uses this function must be adapted.
2011-09-09- turn RNA_warning into a macro which includes the function name (was being ↵Campbell Barton
written in manually but had incorrect func names in places). - add __func__ define to BLI_utildefines.h for MSVC.
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-05Adding noise module by default in driver_namespaceDaniel Salazar
http://www.pasteall.org/blend/8677
2011-09-03PyC_ExceptionBuffer is now threadsafe, used for converting exceptions into ↵Campbell Barton
reports.
2011-09-03whitespace editsCampbell Barton
2011-09-02Cycles: svn merge -r39669:39870 ↵Brecht Van Lommel
https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-01merge with trunk r39834Xiao Xiangquan
2011-09-01use a fixed 32byte buffer for getting an rna string from python. gives a ↵Campbell Barton
slight speedup when drawing heavy UI's
2011-09-01spaces -> tabs (configure you're editors right!)Campbell Barton
2011-08-31patch [#28218] During-render callback functionalityCampbell Barton
from Jesse Kaukonen (gekko) --- text from the patch. Recently Campbell Barton added callback functionality for Python's usage, but this only includes pre- and post-render callbacks. There are no callbacks for the duration of the render. This patch adds the few lines required for executing a callback while Blender Render is working. The callback resides in the rendering pipeline stats function, so whenever statistics are printed, the callback is executed. This functionality is required if one wants to: 1) Observe what is happening while Blender is rendering via the command line 2) Add custom statistics that Blender prints while the renderer works 3) The user wants to continue executing his Python script without the code halting at bpy.ops.render.render() Personally I'm currently using this for printing out more detailed progress reports at Renderfarm.fi (such as CPU time, time spent rendering, total progress in regards to the entire rendering process). Tested on Windows, Linux and OS X. Example on how to use the callback: def statscall(context): print("Thanks for calling!") bpy.app.handlers.render_stats.append(statscall) bpy.ops.render.render(animation=False, write_still=True)
2011-08-31fix for windows locale settingXiao Xiangquan
2011-08-31typo fix: end of lines ;; --> ;Campbell Barton
2011-08-30Fixes for snprintf usage:Brecht Van Lommel
* replace by BLI_snprintf in various places, note _snprintf on windows does not properly null terminate the string. * fix overflow in sequencer proxy code due to buffer being smaller than specified size. * fix some usage of snprintf as strcpy, this is will go wrong if the string contains % characters. * remove BLI_dynstr_printf function in gpu module, use BLI_dynstr_appendf
2011-08-28- use static vars and functions where possible.Campbell Barton
- use NULL rather than 0 when used as pointers.
2011-08-26correct missing bpy doc references.Campbell Barton
2011-08-26fix for crash when running a python script in a non utf8 blend path, ↵Campbell Barton
inspecting the exception for the path assumed utf8.
2011-08-26file-selector: when converting operator arguments to the file selector, ↵Campbell Barton
wasnt making paths absolute (abs paths are made relative when converting the other way).
2011-08-25executing operators that changed the context from the console wasnt ↵Campbell Barton
returning an operator set/flag.
2011-08-25error when a python operator gave an incorrect return value was near ↵Campbell Barton
useless, re-raise a more comprehensive error which includes the operator name.
2011-08-25bpy-rna - simplify enum string/set parsing.Campbell Barton
2011-08-24fix [#28356] Import export STL files, problem in script in version r39307Campbell Barton
& correct some bad comments.
2011-08-24Cycles: svn merge -r39457:39669 ↵Brecht Van Lommel
https://svn.blender.org/svnroot/bf-blender/trunk/blender