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
2020-08-18Fix IDProps definition still being editable in liboverrides.Bastien Montagne
One should be able to edit overridable IDProps values, but never their settings/definitions. Note that being able to add new IDProps to overrides is still a TODO. Reported by Josephbburg (@Josephbburg) over blenderchat, thanks.
2020-06-30Custom Properties: support default values for stringsDemeter Dzadik
Differential Revision: https://developer.blender.org/D8102
2020-01-13Fix T73062: Custom properties misalignedWilliam Reynish
The UI layout here was mistakingly made left aligned and very hard to read when viewed inside the Sidebar.
2019-09-25LibOverride: tweaks to custom props UI.Bastien Montagne
For now, do not allow to add custom props to overriding IDs (this should be possible in the future, by getting basic correct behavior here is already fairly hard, no reason to complicate things even more). Also, properly disallow editing of existing custom props in overriding IDs.
2019-08-14Custom Properties: allow changing the property UI to color picker.Alexander Gavrilov
To fully support storing colors as a custom property, it is necessary to allow switching the property UI to the standard color picker button. That means in effect supporting custom property subtype values. Change RNA_property_subtype to look for a 'subtype' string field in _RNA_UI and parse it as an enum value. To minimize performance impact, only do it if the property is an array; also, don't use the custom subtype during RNA path parsing. On the python side, allow setting some most useful seeming values from the custom property settings editor. Also, since some color picker code seems to run into a risk of buffer overruns if the array size is wrong, check the size in the UI layout code to be safe. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D5475
2019-08-13Custom Properties: officially support int and float arrays in the UI.Alexander Gavrilov
In some rare cases it is convenient to store a short array value as a custom property, e.g. a vector or color. For example, it may be helpful when importing/exporting certain formats that support custom or nonstandard attributes on objects. The custom property storage already can handle arrays in order to support properties defined via python. The only thing missing is UI support (and some bugs), and this patch fixes that: - Allow editing short array properties via Custom Properties panel. - Fix a UI layout sizing bug triggered by the previous item. - Fix a dependency graph bug with drivers using such properties. - Make RNA_*_get_default_array code robust in case of size mismatch. - Support custom default values for array properties, allowing both an array and a scalar value. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D5457
2019-07-28Cleanup: pep8Campbell Barton
2019-06-15Cleanup: Rename: Static Override -> Library Override.Bastien Montagne
Better to make internal code naming match official/UI naming to some extent, this will reduce confusion in the future. This is 'breaking' scripts and files that would use that feature, but since it is not yet officially supported nor exposed in 2.80, as far as that release is concerned, it is effectively a 'no functional changes' commit.
2019-05-19UI: add Panel.bl_order property to control order of panels for add-onsBrecht Van Lommel
This fixes poor Cycles panel ordering, with Freestyle and Custom Properties appearing at the top. For most cases order of registration is still the easiest way to control order and it's recommended to keep using that. This is mainly to solve a few cases where we want a few built-in panels to appear below add-on panels.
2019-05-09Cleanup: unused args/vars/imports in modulesCampbell Barton
2019-04-16Cleanup: use keyword only args to rna_idprop_ui_createCampbell Barton
2019-04-16Python: add a utility function for creating custom properties.Alexander Gavrilov
Creating a fully functional custom property requires also setting up its limits, description, default value and static override status. It is complex enough to warrant providing an official utility. Currently boolean properties are technically int, but the utility pretends they are separate in case that eventually they are. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D4620
2018-12-21RNA: naming, user-preferences -> preferencesCampbell Barton
2018-12-19RNA: support setting default values for custom properties.Alexander Gavrilov
NLA requires a usable default value for all properties that are to be animated via it, without any exceptions. This is the real cause of T36496: using the default of 0 for a scale related custom property obviously doesn't work. Thus, to really fix this it is necessary to support configurable default values for custom properties, which are very frequently used in rigs for auxiliary settings. For common use it is enough to support this for scalar float and integer properties. The default can be set via the custom property configuration popup, or a right click menu option. In addition, to help in updating old rigs, an operator that saves current values as defaults for all object and bone properties is added. Reviewers: campbellbarton, brecht Differential Revision: https://developer.blender.org/D4084
2018-10-08UI: new icon set by Andrzej Ambroz.Brecht Van Lommel
This is a monochrome icon set, with a more modern look and icons for various features that did not have a proper icon before.
2018-08-28RNA: UILayout.split(..) 'percentage' to 'factor'Campbell Barton
Misleading name since it's between 0..1. Use as a keyword argument to prepare for keyword only args. Also document that leaving unset has special behavior.
2018-08-28UI: text keyword argument to labelCampbell Barton
Prepare for keyword only args
2018-07-19Cleanup: styleCampbell Barton
2018-07-17UI: Single-column and flow layout for Scene propertiesVuk Gardašević
See D3532
2018-07-13UI: only show API defined custom properties when Developer Extras is on.Brecht Van Lommel
These are intended to behave just like any other builting property, so no to always show them in the Custom Properties panels for regular users.
2017-04-19Fix 'API defined' ID properties still having 'remove' button in UI.Bastien Montagne
We could not edit them, but still could delete them, which makes no sense, API-defined properties are similar to class members, removing them from single instances is pure garbage. And it was broken anyway. Found by @a.romanov while checking on T51198, thanks.
2015-11-30Fix T46891: Error removing PropertyGroupCampbell Barton
2015-09-10Fix T46048: Custom properties UI redraw issueCampbell Barton
Adding/removing custom properties didn't refresh elsewhere in the UI.
2015-03-25Fix T44026: ID prop delete leaves names in _RNA_UICampbell Barton
2015-01-29cleanup: pep8Campbell Barton
also remove empty class parenthesis
2014-07-22Cleanup: pep8 & redundant varsCampbell Barton
2014-06-06Fix T40520: Properties panel in properties region in 3D view does not go away.Bastien Montagne
Ignore '_RNA_UI' IDP...
2014-02-25Fix T38778: Properties from bpy.props could be edited as custom propsCampbell Barton
2014-02-25Fix for custom property editor when property id's contained quotesCampbell Barton
Adds bpy.utils.escape_identifier()
2013-02-15And more UI messages issues fixing... Thanks again to Gabriel Gazzán and ↵Bastien Montagne
Leon Cheung!
2013-02-08disable translations for some python buttons.Campbell Barton
2013-01-23fix [#29950] Linked proxy armature object properties can't be editedCampbell Barton
2012-01-01use `props` all over for operator properties varsCampbell Barton
2011-07-10cleanup for python scripts - unused vars and importsCampbell Barton
2011-06-17IDProperty python module updateCampbell Barton
- add support for IDProp array slicing, but not resizing. - rename array attribute type to typecode and use chars 'f', 'd', 'i' which match pythons array module. (was using int's which only have a meaning internally). - rename function 'convert_to_pyobject' to 'to_dict' and 'to_list' for IDProp group and array types respectively. - remove 'len' array attribute, calling len(array) is fine.
2011-01-01pep8 cleanupCampbell Barton
2010-12-19fix for own error [#25299] custom properties not showing in viedw3d panelCampbell Barton
error made when fixing id pinning, for non-properties space.
2010-12-17bugfix [#25240] Custom properties panel on pinned data fail.Campbell Barton
2010-09-18use is rather then == when comparing against None.Campbell Barton
2010-09-07ran through pep8 checkerCampbell Barton
2010-09-02bugfix [#23635] property limits don't work when added via scripting\Campbell Barton
also fix for bug where soft limits could be greater then hard limits with bpy.props.* functions.
2010-08-27bugfix [#23534] Custom Properties not showing in OBJECT panelCampbell Barton
2010-08-26rna api - replace panel properties bl_default_closed and bl_show_header with ↵Campbell Barton
bl_options which has 2 flags: 'DEFAULT_CLOSED' and 'HIDE_HEADER'. this matches operators which also uses bl_options like this
2010-08-09poll() as a python '@staticmethod' was too limiting and didnt allow useful ↵Campbell Barton
base class poll functions in many cases. now rna functions that dont have a 'self' are automatically assumed '@classmethods'. de-duplicated poll functions and made some minor tweaks too.
2010-08-02RNA Types metaclass registrationMartin Poirier
See mailing list posts for details [1][2][3] Addons still need to be fixed; Campbell said he'd do it today. See any of the py files (outside netrender) in this commit for how to do it (it's rather simple). [1] http://lists.blender.org/pipermail/bf-committers/2010-February/026328.html [2] http://lists.blender.org/pipermail/bf-committers/2010-August/028311.html [3] http://lists.blender.org/pipermail/bf-committers/2010-August/028321.html
2010-06-14naming changesCampbell Barton
path -> filepath (for rna and operators, as agreed on with elubie) path -> data_path (for windowmanager context functions, this was alredy used in many places)
2010-05-10Fix [#22296] Wrong Operator Names?Matt Ebb
2010-02-27store vars in py operators in the instance rather then the operator classes.Campbell Barton
2010-02-24allow cloth sim for linked duplicates, not many people use this but we need ↵Campbell Barton
for using hair on linked characters, if there are bugs with this we'll need to fix so enabling for now with comments that its experemental.
2010-02-12correct fsf addressCampbell Barton