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-01-21Fix T38297: missing StringProperty subtype 'PASSWORD' in API docs.Brecht Van Lommel
2014-01-16Code Cleanup: no need to pass empty strings as default valuesCampbell Barton
2014-01-04RNA API: use bool's for enum itemf callbacks.Campbell Barton
2013-12-12RNA: Add pixels property typeScott Petrovic
2013-09-19replace macro PYC_INTERPRETER_ACTIVE for PyC_IsInterpreterActive() function ↵Campbell Barton
call, (indirectly referenced Python define of ~30 lines, most were optimized out but still caused some code bloat).
2013-04-11Related to #34558: clarify the description for the "default" parameter in ↵Brecht Van Lommel
bpy.props.EnumProperty.
2013-04-08Fix #34875: 0 digits of precision was not supported for FloatProperty, nowBrecht Van Lommel
you can specify precision=0 for this, and use -1 for the default 2.
2013-04-07Fix for [#34898] Typo in error message of mathutils.VectorThomas Dinges
* Also fixed some more cases of "more then" -> "more than".
2013-03-25Fix to EnumProperty doc (content of items tuples was rather fuzzy, ways how ↵Bastien Montagne
these "parameters" are interpreted are rather strange, current text should now reflect exactly code's behavior).
2013-03-10add STREQ macro (commonly used macro like CLAMP, MAX2, STRINGIFY). Use for ↵Campbell Barton
some areas of the python api, bmesh.
2013-02-19bpy.props.RemoveProperty() py api docs were still incorrect.Campbell Barton
2013-02-19bpy.props.RemoveProperty() had incorrect docstring.Campbell Barton
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-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-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-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-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-01Add a warning to enum props' items parameter, to *never* use a generator as ↵Bastien Montagne
value for this param! It works in most cases, but in some it leads to an empty set of values for the enum (see [#33716]), and it's not an easy bug to track down!
2012-10-30when an invalid subtype is passed to a property, a list of valid subtypes is ↵Campbell Barton
now included in the exception message. from bug report [#33018], this avoids common mistakes.
2012-10-30rename subtype FILENAME --> FILE_NAME to match FILE_PATH, DIR_PATHCampbell Barton
2012-10-26* New string property subtype: PASSWORDJiri Hnidek
When this new subtypes is used, then string of property is hidden using asterisks, e.g.: mysecretpassword -> **************** This code was reviewed and modified by Brecht. Thanks very much: - https://codereview.appspot.com/6713044/ This new subtype of string property is intended mostly for Add-on developers writing Add-on which communicates with some server (http, sql, ftp, verse, etc.). When this server requires user authentication and user has to type username and password, then current API didn't allow to type 'hidden' password, e.g. when you want to demonstrate this script, then everybody can see this security password. Some examples of Add-on which could use this new subtype: - On-line database of textures - Integration of render farm - Integration of Verse Security Notes: - You can copy paste hiddent string of property from text input using (Ctrl-C, Ctrl-V), but you can do this in other GUI toolkits too (this behavior it is widely used). - Text of string property is stored in plain text, but it is widely used in other GUI toolkits (Qt, Gtk, etc.). Simple examples: - https://dl.dropbox.com/u/369894/draw_op_passwd.py - https://dl.dropbox.com/u/369894/blender-password.png
2012-10-26Fix #32973: crash adding python property with update=None parameter passed.Brecht Van Lommel
2012-10-21style cleanup: trailing tabs & expand some non prefix tabs into spaces.Campbell Barton
2012-09-28add warning that RNA update callbacks dont have checks for infinite recursion. Campbell Barton
2012-08-07mask - draw both sides of the curve when `filled` option is disabled.Campbell Barton
2012-08-07fix a crash when python is registering enum properties and the `items` ↵Campbell Barton
argument is a generator (some sequence type besides a list/typle), in this case it could free the strings before blender duplicates them. this fixes [#32192] Import Images as Planes script is broken
2012-07-17code cleanup: spellingCampbell Barton
2012-05-28missing from previous commitCampbell Barton
2012-05-28style cleanup: defines with bracesCampbell Barton
2012-05-20Added 'LIBRARY_EDITABLE' flag to bpy.props.*Dan Eicher
Rationale: custom props on linked objects are editable through ops and the console but the UI code calls RNA_property_editable() which returns false if (id->lib && !(prop->flag & PROP_LIB_EXCEPTION)) Setting the 'LIBRARY_EDITABLE' flag allows UI templates to change these props (but the changes aren't saved!) for things like indices into CollectionProperties which live on the linked object
2012-05-04Patch [#31279] clarifiy a python error-string (when incorrectly specifying enumJoshua Leung
items from python) Thanks Philipp Oeser (lichtwerk)
2012-03-27style cleanup: py apiCampbell Barton
2012-03-18spelling cleanupCampbell Barton
2012-03-17style cleanup: py/capiCampbell Barton
2012-03-03style cleanup - spelling corrections & update some incorrect comments.Campbell Barton
2012-01-21formatting edits (<120 line length), remove invalid 'defaults' keyword arg ↵Campbell Barton
from docs.
2012-01-12remove redundant trailing slashesCampbell Barton
2011-12-28for bpy.props, when 'name' argument is not initialized, vallback to the ↵Campbell Barton
attribute name rather than an empty string.
2011-12-26formatting edits only to use more consisted styleCampbell Barton
2011-12-18formatting edits in py api, no functional changesCampbell Barton
2011-11-30Fix: defining properties would fail with argument update=None instead of notBrecht Van Lommel
specifying the argument.
2011-11-26minor bpy api editsCampbell Barton
- strict check for rna properties - formatting edits (120 line width) - use PyDoc_STRVAR macros for getset docstrings
2011-11-15bytestring support for py/rna - this is so py can access data whichCampbell Barton
isn't meant to be accessed as unicode text.
2011-11-14fix [#29251] Properties options={'SKIP_SAVE'} not working, patch attachedCampbell Barton
patch from Domino Marama (domino)
2011-11-05documentation - brief descriptions for bpy api files.Campbell Barton
2011-11-05macro formatting & remve some unused code.Campbell Barton