Commit Graph

995 Commits

Author SHA1 Message Date
Bastien Montagne f94b87bbb8 New python API for units handling.
Exposes all supported unit systems & types, and to_value()/to_string() functions.

Reviewed and enhanced by CampbellBarton, many thanks!

Differential Revision: https://developer.blender.org/D416
2014-06-17 16:03:40 +02:00
Bastien Montagne 131d388d81 Usual UI message handling... 2014-06-09 21:52:10 +02:00
Bastien Montagne 553264ff8e Fix T40520: Properties panel in properties region in 3D view does not go away.
Ignore '_RNA_UI' IDP...
2014-06-06 14:50:55 +02:00
Bastien Montagne 3a41797df4 Usual UI messages tweaks. 2014-05-26 20:12:03 +02:00
Bastien Montagne 1c2e6de969 Usual typo and style fixes in UI messages... 2014-05-12 23:08:31 +02:00
Bastien Montagne c089150426 Fix T39806: Koro rig (Caminandes) wrong in master, worked in 270(a).
Edit existing animsys_refactor module to make able to execute more complex conversions
('to' can now be a callback, instead of a simple prop name), and add a new
Update Animated Transform Constraints operator that uses it to handle complex
conversion for this constraint (drived or animated properties).

Note this operator has to be called manually (from 'space' menu), will make this clear
in release notes.

Also, similar changes made in 2.70 are *not* addressed by this script (would rather wrote
new operators as/if need arise, but Transform constraint looks much more sensible that the others).

This op should not remain in more than two or three releases anyway, imho.
2014-04-28 13:26:01 +02:00
Campbell Barton a2489e29f6 Code cleanup: style, unused import 2014-04-28 00:19:15 +10:00
Campbell Barton a15be34389 Code cleanup: unused python vars & imports
Use frosted rather then pyflakes
2014-04-25 05:36:16 +10:00
Campbell Barton ea610e655c Style cleanup: C & pep8 2014-04-15 13:11:48 +10:00
Bastien Montagne 42fca2f145 Usual UI messages fixes... 2014-03-31 21:15:56 +02:00
Sv. Lockal 7397ef8666 UI: Fix more double ":" in UI labels 2014-03-27 07:15:08 +04:00
Bastien Montagne 9d45431a35 Follow Blender slangs! ;) 2014-03-25 21:17:04 +01:00
Thomas Dinges d18e4cf6ee Fix typo in API documentation. 2014-03-23 12:31:08 +01:00
Bastien Montagne 7698322846 Usual UI messages fixes... 2014-03-19 15:25:32 +01:00
Bastien Montagne 0c6e74436f Fix T39158: Help > Operator Cheat Sheet causes a python recursive loop.
Core issue exists since ages - the thing you get from bpy.types.YOUR_OT_operator is fuzzy, and may change,
due to the fact that both Operator and OperatorProperties share the same name...
Would be cool to get rid of this issue one day, but for now it's safer to use rna acessor...

This commit is to be backported to 2.70.
2014-03-13 17:37:19 +01:00
Campbell Barton 03018353f6 Fix T38827: Input preferences can not find Left Mouse or Left Arrow 2014-02-26 00:39:20 +11:00
Campbell Barton 92653fe944 Keymap search: check 'key_modifier' as well as 'type' 2014-02-26 00:13:20 +11:00
Campbell Barton bb62f9a582 Fix T38778: Properties from bpy.props could be edited as custom props 2014-02-25 17:01:46 +11:00
Campbell Barton 18f6bb04fa Fix for custom property editor when property id's contained quotes
Adds bpy.utils.escape_identifier()
2014-02-25 16:19:57 +11:00
Campbell Barton dea4bcdf67 PyAPI: bpy.ops was showing 'module' in autocomplete output 2014-02-19 13:41:41 +11:00
Campbell Barton 2a9e33fba5 Keymap: load/save improvements
- avoid passing redundant operator name to keymap property set function.
- avoid double attr lookups when setting each property.
- handle exceptions on value type mismatch.
- avoid resource warning on failed load.
2014-02-19 10:32:23 +11:00
Campbell Barton e965afcdcc Python: remove redundant len() use 2014-02-19 00:05:31 +11:00
Brecht Van Lommel a5cfd3f518 Fix T38635: key configuration search not working well when typing 'slash'. 2014-02-17 15:03:24 +01:00
Campbell Barton aea00c7a81 Code cleanup: style 2014-02-13 08:52:12 +11:00
Howard Trickey da33a557bc Fixes to make script_load_keymap test pass.
Removed Armature Sketch keymap, as the entries that were there
appear to have been moved to the Armature keymap.
Removed the Script keymap. The Script space is deprecated
and I could find no way that the keymap could be activated.
2014-02-08 10:52:56 -05:00
Brecht Van Lommel a0e03bb5cf Fix part of T38425: keymap editor search for "1" only showed numpad 1, not 1-key. 2014-02-03 15:48:50 +01:00
Brecht Van Lommel be849f6f7e Fix T37038: user preferences > input category names unnecessarily cut off. 2014-01-29 16:36:42 +01:00
Campbell Barton 029a7bbade UI: Fix for icon-only menus too small click-able area 2014-01-27 19:11:37 +11:00
Campbell Barton a71f072f9c UI: Replace +/- menus with collapsible ones
Patch D160, by Scott Petrovic with  own modifications.
2014-01-27 18:42:11 +11:00
Bastien Montagne 52f2c8aec5 Add support for new "bl_category" member (new panels "tabs" system). 2014-01-23 22:30:18 +01:00
Brecht Van Lommel 418aafd503 Fix T38315: keymap configuration export did not export deactivated items correct. 2014-01-22 14:25:43 +01:00
Bastien Montagne aeca473a41 Usual UI messages fixes. 2014-01-21 20:18:07 +01:00
Campbell Barton 61ff3dfdda Code Cleanup: spelling 2014-01-13 15:31:57 +11:00
Campbell Barton da16b3000b Fix T38044: Filter Key Binding shows Incorrect result 2014-01-07 19:27:44 +11:00
Campbell Barton f25dbe320f Text API: make text.current_line_index writable
use for setting the text position when writing system info.
2014-01-05 01:24:10 +11:00
Campbell Barton 0a3ce15ce3 Revert "Quick fix for system info text always being scrolled out of view when loaded for the first time"
This can be done without extending the API, using RNA access instead.
2014-01-05 01:13:06 +11:00
Joshua Leung 1db7f2f93d Quick fix for system info text always being scrolled out of view when loaded for the first time
Added an API method to Text datablocks for moving the cursor to a specific line in the
file. This makes it possible to reset the cursor position at the end of the sysinfo
operator.
2014-01-05 01:24:54 +13:00
Campbell Barton 33b87dc1ad update console shell for changes in api 2013-12-29 00:51:51 +11:00
Bastien Montagne d9634122f6 More slangs and other spellchecking exceptions... 2013-12-16 21:26:48 +01:00
Thomas Dinges 2069606dc5 Code cleanup: UI cleanup for cycles UI code and fix typo in system info. 2013-12-08 12:13:09 +01:00
Sergey Sharybin 46f8dba4c7 Extend system-info with information about OIIO, OCIO and OSL
Summary:
Version of those libraries might be useful to know.

- OIIO and OCIO is exposed via bpy.app.oiio and bpy.app.ocio.
  There're "supported", "version" and "version_string" defined
  in those modules.

- OSL is available as _cycles.osl_version and _cycles.osl_version_string.

Reviewers: campbellbarton

Reviewed By: campbellbarton

CC: dingto

Differential Revision: http://developer.blender.org/D79
2013-12-08 15:03:17 +06:00
Campbell Barton e63d5f2356 Keymap: add walk mode 2013-12-04 00:40:45 +11:00
Bastien Montagne a5c7b9202b i18n module cleanup: remove hack used during svn -> git transition phase! 2013-11-25 22:00:14 +01:00
Campbell Barton 1ea47c9af9 Code Cleanup: style, spelling and pep8 edits 2013-11-20 03:40:10 +11:00
Campbell Barton 995d4d803a Maintenance: Shebang lines fix for some python scripts 2013-11-18 20:41:22 +11:00
Brecht Van Lommel f546c7a889 Addons: remove tracker URL from addon template, as this is no longer used,
and link to the new Addons bug reporting page.
2013-11-16 03:15:17 +01:00
Sergey Sharybin 927dea436e Further tweaks to buildinfo
Summary:
Old idea with changes since previous release tag
didn't work good enough. In most of the cases tag
was done in a branch hence not actually reachable
from the master branch.

Now change since release is gone, and date of
the latest commit is used instead.

The date is displayed in format YYYY-MM-DD HH:mm
in the splash.

New bpy.app fields:

- build_commit_timestamp is an unix timestamp of
  the commit blender was build from.
- build_commit_date is a date of that commit.
- build_commit_time is a time of that commit.

Reviewers: campbellbarton

Differential Revision: http://developer.blender.org/D5
2013-11-15 18:05:27 +06:00
Sergey Sharybin be09e694b1 Fix #37338: Add objects from addon work in a Linked Scene
Added a poll function to add object helper which checks
whether scene is linked or not.

All the primitives which are delivered from this helper
will work properly for linked scenes. If there're still
primitives which are not delivered from this class, well
nothing i can do now.
2013-11-07 08:40:47 +00:00
Thomas Dinges 28bd03d9b5 Code cleanup:
* Remove "FCurve/Driver Version fix" from help menu, was used for RNA changes during 2.5x. 
* Keep utility code in animsys_refactor.py, might still become useful according to Joshua.
2013-11-05 08:52:12 +00:00
Bastien Montagne 84daa57188 Update i18n tools for new build_hash... 2013-11-04 18:26:56 +00:00