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
2013-02-19fix [#34275] Text autocomplete cuts words with accents or special charactersCampbell Barton
autocomplete is now unicode aware, using python api's checks for now. eventually we should have our own.
2013-02-19bpy.props.RemoveProperty() py api docs were still incorrect.Campbell Barton
2013-02-19bpy.props.RemoveProperty() had incorrect docstring.Campbell Barton
2013-02-19minor change to own recent commit with transform fcurve centers and some ↵Campbell Barton
style edits and typo corrections.
2013-02-15style cleanupCampbell Barton
2013-02-13Fix physics' name not translated in main physics panel (reported on ↵Bastien Montagne
bf-translations ML). This also revealed another bug, as you could not explicitely set default context to text_ctxt UI func parameter (None is not accpeted by RNA string props), so I had to change default context from py POV to "*" instead of None. Anyway, that physics UI translation remains weak, as the trick used here (helper func) prevents message extractor script to directly find them. Currently it works because specified labels are also defined elsewhere, but it would be nice to have some kind of "translation markers" in py code too (similar to our N_/CTX_N_ C macros, unfortunately python does not have preprocessing ;) )...
2013-02-13bmesh operators exceptions were not cleared after raising as a python exception.Campbell Barton
also clear before calling the operator.
2013-02-12report [#33731] Fastorigin addon crashes on mesh.update()Campbell Barton
add a warning when python leaves the modified mesh without calling bmesh.update_edit_mesh()s. this doesn't fix the crash but points to the likely cause.
2013-02-10Actually, UI scripts should not use directly pgettext, but rather the iface ↵Bastien Montagne
or tooltip variants. Added those to bpy.app.translations, and used pgettext_iface. (Did not add those when I created that module, because I did not thought we would actually need them in usual UI code, but turned out I was wrong). Also made some optimizations in those py gettext funcs, when i18n is disabled at build time, no need to do pyobject -> cstring -> pyobject conversions!.
2013-02-08Cleanup: happily remove no-more-used PY_TRANSLATE RNA prop flag, and related ↵Bastien Montagne
code (just realized that flag value was wrong, probably own typo in a previous commit :/ ). That "trick" was nice when introduced, but it became kind of a pita since we added translation contexts...
2013-02-07fix for regression in bpy-api, python context passed to operators couldn't ↵Campbell Barton
override collections.
2013-02-06style cleanup: some warnigs & spelling.Campbell Barton
2013-02-06fix for building blender as a python module,Campbell Barton
changes to internal import behavior of py3.3 broke it.
2013-02-06some fixes for building blender as a python module again (wip, more work ↵Campbell Barton
needed).
2013-02-05add python api docstring for 'bpy.types.Operator.bl_property'Campbell Barton
2013-02-05fix [#34113] operator_menu_enum() - Tooltip not showing descriptionsCampbell Barton
Python wasn't able to set 'OperatorType.prop', which is used by uiButGetStrInfo(). add 'bl_property' to python operators which is assigned to OperatorType.prop when registering. (api docs coming next)
2013-02-04add BM_edge_is_contiguous(), check for python api.Campbell Barton
2013-02-02style cleanup: also correct doc example for 'foreach_get/set'Campbell Barton
2013-02-01make WITH_HEADLESS build again.Campbell Barton
2013-01-29Correct fix for r54164, the testcase I was using worked but different edge ↵Campbell Barton
slide examples didn't. Edge slide needed to check for concave ngons too. add BM_loop_is_convex() and expose to python too.
2013-01-28Fix for RNA FUNC_REGISTER/FUNC_REGISTER_OPTIONAL flags: The test in bpy ↵Lukas Toenne
validation of classes actually always passed for mandatory functions. This only worked since they all use fallback default implementations internally.
2013-01-28add mathutils function to intersect 2 circles. Converted to C from a python ↵Campbell Barton
script by Alex Fraser.
2013-01-26Fix [#33997] Units Scale in Metric mode displays wrong face area.Bastien Montagne
Also now display nice "area" units (maybe using "length" units was a perf matter, but anyway, you can't have more than a few tens of values displayed at a time, after that they become unreadable). Easy to undo anyway if we really want to keep ugly "10m" as area display!
2013-01-24Fixed for strict compiler flagsSergey Sharybin
2013-01-24Final memory fix for bpy.app.translations (not really a leak, but unfreed ↵Bastien Montagne
memory at end of program - I thought addons were unregistered at quit time...).
2013-01-24Fix #31338: python enum properties can now specify icons for items, in the ↵Brecht Van Lommel
following order: (identifier, name, description, icon, unique number) This also works without the icon still, for compatibility.
2013-01-23Fix own stupid memory leak in new py i18n code (forgot to free temp keys ↵Bastien Montagne
when searching messages in GHash cache!). Thanks to PerfectionCat for finding this.
2013-01-22Fix for build with scons whithout i18n support.Bastien Montagne
This should not be needed, I really see no reason for this linking error, but I'd rather use this hack than wasting more time over this issue. When will we get rid of this "two build systems to maintain" time-wasting situation?
2013-01-22comments for RNA_def_property_ui_range() and clamp some out-of-range values.Campbell Barton
2013-01-21On second thought, exposes bpy.app.translations also when built without i18n ↵Bastien Montagne
support, this will avoid the need for py scripts to test for its presence everywhere!
2013-01-21Print warnings when invalid py dict/key/value is found in translations data ↵Bastien Montagne
(do not error here, this is not critical and can be ignored/skiped, and it would break translations for other addons as well).
2013-01-21Expose locale_explode in bpy.app.translations, will be handy in i18n ↵Bastien Montagne
manipulation scripts/addons.
2013-01-21I18n fix: "" context is not the same as NULL context!Bastien Montagne
This bug did not appear earlier because the "" default context was actually never used, always NULL context was passed instead. But bpy.app.translations uses "" as default context in its keys (simplifies the hash/comp functions of internal py messages cache)... So now, Blender prefers NULL (None in python) as default context value, but understands also "" as such.
2013-01-21minor changes to _build_translations_cache(), remove unneeded NULL checks ↵Campbell Barton
and use slightly different funcs for getting strings.
2013-01-21code cleanup: style & warnings.Campbell Barton
2013-01-20Python i18n API. Many thanks to Campbell and Brecht for the reviews and ↵Bastien Montagne
suggestions! This commit adds: * A new bpy.app.translations module giving some info about locales/translation stuff (current active locale, all locales currently known by blender, all translation contexts currently defined, etc.). * The ability for addons to feature translations, using the (un)register functions of above module. * Also cleans up "translate py string when storing into RNA prop" by removing "PROP_TRANSLATE" string's subtype, and adding a PROP_STRING_PY_TRANSLATE flag instead (this way it is no more exposed to python...). Addon translations work with py dictionaries: each addon features a dict {lang: {(context, message): translation, ...}, ...}, which is registered when the addon is enabled (and unregistered when disabled). Then, when a key (context, message) is not found in regular mo catalog, a cache dict for current locale is built from all registered addon translations, and key is searched in it. Note: currently addons writers have to do all the work by hand, will add something (probably extend "edit translation" addon) to automate messages extraction from addons soon(ish)! To get a look to expected behavior from addons, have a look at render_copy_settings/__init__.py and render_copy_settings/translations.py (rather stupid example currently, but...). Once we have a complete process, I'll also update relevant wiki pages.
2013-01-14use booleans for bmesh api.Campbell Barton
2013-01-11fix for bpy.props string get-length callback, PyUnicode_GetLength() isn't a ↵Campbell Barton
measure of the buffer size.
2013-01-10pyapi internal api code: check for == -1 rather then < 0, for known error ↵Campbell Barton
returns.
2013-01-10Another fix for bpy.props getters/setters: PyC_AsArray does a refcount ↵Lukas Toenne
decrement internally on errors, need to skip Py_DECREF in that case to avoid negative refcounts.
2013-01-10Fix for bpy.props getter/setter callbacks. These were missing a valid GIL ↵Lukas Toenne
state when being called outside the UI context.
2013-01-09partial fix for [#32581] Mesh properties API does not allow for zeros in ↵Campbell Barton
byte array bmesh access allows zero bytes, support still needs adding via RNA.
2013-01-09style cleanupCampbell Barton
2013-01-07Add normal_flip() member to Python BMesh's Face.Howard Trickey
2013-01-07code cleanup: warnings and use stdbool for bpy* funcs.Campbell Barton
2013-01-06add ability to use world gradient rendering when 'Only Render' option is ↵Campbell Barton
enabled. supports paper/blend/real.
2013-01-06sequencer api args - rename start/end_frame to frame_start/end to match the ↵Campbell Barton
rest of the RNA api.
2013-01-05This patch adds support in bpy.props for getter/setter callback functions. ↵Lukas Toenne
We already have update callbacks, but generic get/set functions can come in handy in some cases where the functionality is too complex to use a single value. The current C callback functions are too simple allow a straightforward implementation, in particular they don't receive the PropertyRNA pointer itself as an argument, which means the callback cannot directly access the PropertyRNA's py_data pointers which store the python function objects. For this reason a second runtime variant of these callbacks has been added. It is only used for runtime callbacks and not in makesrna, but otherwise works the same way.
2013-01-04commit bpy_path files, missed these in recent commit.Campbell Barton
2013-01-04change bpy.app.build_options from frozen set to PyStructSequence_Field, ↵Campbell Barton
mathes similar members of bpy.app and less error prone (typos won't fail silently).