Commit Graph

750 Commits

Author SHA1 Message Date
e204d67cc7 Fix [#32135] FRAMERATE: Framerate display is truncated in selection box.
Filename extension was striped twice...
2012-07-18 08:51:19 +00:00
18f28e5408 Small cleanup... 2012-07-09 19:33:25 +00:00
063f78041a Grmbl, dummy argparse... 2012-07-08 17:18:01 +00:00
dc459c8fea Some cleanup, and update to make those files usable both as self-executables and module stuff...
Also updated update_mo to allwo specifying a custom po/mo file.
2012-07-08 17:10:10 +00:00
d96275a5c3 Some cleanup.
Also trying to make it usuable from other tools (imports become a bit tricky here :/ ).
2012-07-08 09:27:33 +00:00
3dacc164e4 Update/fixes (was escaping more chars than needed!) 2012-07-07 14:28:49 +00:00
2a140e93c1 style cleanup 2012-07-04 21:41:05 +00:00
99f0589ea7 Minor update to make it work within i18n repo too. 2012-07-04 18:19:58 +00:00
4149ea5f50 Last spell checking (for now).
Only mysterious courant from bpy.types.ParticleSettings.courant_target reamins...
2012-07-04 15:52:07 +00:00
558721ab59 More spell checking. 2012-07-04 15:04:38 +00:00
14b2c348c8 Minor updates. 2012-07-03 19:06:43 +00:00
37dc4006c7 First load of spell and typo fixes (mostly UI messages, but also one or two pieces of code using mis-spelled names). 2012-07-03 17:20:21 +00:00
8d4f9f9390 Grmph! module renaming broke the tool! 2012-07-03 15:05:10 +00:00
69ca014d50 More exception words to the ui dico... :/ 2012-07-03 13:24:13 +00:00
1f81930ad8 Minor edits. 2012-07-03 13:15:23 +00:00
f42d606789 rename module to something less generic. 2012-07-03 11:32:42 +00:00
63810ffcef Style edit (mostly), use """ for docstrings (not ''').
Should also fix the broken py ops tips...
2012-07-03 09:02:41 +00:00
4aa43a0bfd Nice update to xgettext replacement, now finds 608 strings, think this covers all cases...
Will run a complete test case tomorrow, regexes killed me this evening!
2012-07-03 01:11:59 +00:00
2d8a9a0cc3 Adding (moving from bf-translation) the i18n python module. This will make it available for future "UI Translation" addon, and probably other UI-related tools as well.
Notes:
* This is a somewhat reworked version of what is currently in bf-translation's trunk/po/tools, not yet fully functionnal (well, 95% is ;) ) nor fully tested. ultimately, it will replace it (being "svn-linked" in bf-translation).
* Added feature: more complete/strict tests (yet some work to be done here).
* Added spell checking (huge spellcheck commit incomming...).
* Trying to get rid of xgettext itself (should e.g. allow us to use #defines as contexts, among other things...). But currently captures less strings, work needed here too.

Please note this includes libfribidi.dll, as it is hard to find it for windows (unixes should have no problems here).
2012-07-02 19:51:06 +00:00
b0dedf3d3f new function: bpy.extras.view3d_utils.region_2d_to_origin_3d()
useful for doing ray casts from the view.
2012-07-01 08:06:01 +00:00
ac7b392247 code cleanup: some vars were assigned when not needed 2012-06-30 17:54:55 +00:00
bd21001aaf fix for bug where user scripts path set by an environment variable would write presets there but not show up in the menu. 2012-06-29 08:33:13 +00:00
acb0a50fb3 print warning if a script in the addons dir has no bl_info. 2012-06-28 19:22:13 +00:00
a09feb7386 option so operators can be executed with undo enabled (and redo). 2012-06-27 21:41:17 +00:00
f6337a2843 utility mesh function to return UV islands 2012-06-25 07:24:01 +00:00
b0b96bd9a1 add in convenience var 'D = bpy.data' - to the python console, add note for C, D - in initial message. 2012-06-20 08:49:59 +00:00
98e6912480 style cleanup 2012-06-19 22:17:19 +00:00
0d6ffd925d remove duplicate import 2012-06-10 00:22:18 +00:00
0f1fd51c21 picky change - rename keymap since there is no 'mask editor' 2012-06-04 17:13:38 +00:00
68a9dd54ec mask mode for clip editor developed by Sergey Sharybin, Pete Larabell and myself.
see:
http://wiki.blender.org/index.php/User:Nazg-gul/MaskEditor


note - mask editing tools need continued development, feather option is not working 100%
2012-06-04 16:42:58 +00:00
a8f84fac89 Fix #31658: missing properties in key configuration export, hidden properties
should be exported as well, not sure why this was disabled, it's supposed to
only affect UI hiding.
2012-05-31 16:04:07 +00:00
9ffb1c1dd8 bpy.utils.time_to_frame() and frame_to_time() utility functions. 2012-05-28 16:06:38 +00:00
cd85e5b317 fix [#31383] EditBone.align_orientation() uses Vector.normalize() incorrectly 2012-05-09 19:05:29 +00:00
61752c926d Addons: "persistent" parameter for addon_utils.enable(), so that you can enable
addons from a startup script and keep them enabled after loading .blend files.
2012-04-28 09:00:09 +00:00
af7eb3f210 fix for buffer overrun crash with saving scene name longer then 24 characters.
writing render info would try write= 64 length string into 24 length buffer.

updated py script to extract render info too.
2012-04-26 04:03:25 +00:00
1cf0358a33 bmesh todo: vertex dirtmap now working again.
also renamed Polygon helper property from 'loops' to loop_indices
2012-04-13 08:41:30 +00:00
4fc6ef1cf5 style cleanup: pep8 some C/style 2012-04-08 08:09:37 +00:00
fd37970b80 * Replace some more Blender 2.5x with Blender 2.6x and some code cleanup. 2012-04-07 18:39:29 +00:00
b9f9aa947a dont display any file as a preset in the menu (limit to *.py, *.xml)
backup files like .py~ for eg had their own menu entries which got annoying.

added optional filter_ext function callback argument to Menu.path_menu() to avoid displaying invalid types.
2012-04-07 02:19:11 +00:00
5b88712ff9 move debug flag into its own global var (G.debug), split up debug options.
--debug
  --debug-ffmpeg
  --debug-python
  --debug-events
  --debug-wm

This makes debug output easier to read - event debug prints would flood output too much before.

For convenience:
  --debug-all turns all debug flags on (works as --debug did before).

also removed some redundant whitespace in debug prints and prefix some prints with __func__ to give some context.
2012-03-31 00:59:17 +00:00
299025bdfb fix [#30402] modules dir missing from sys.path 2012-03-28 23:53:27 +00:00
44010fb659 fix [#30657] New UV layers created with Mesh.uv_textures.new reset previous ones.
adding UV's from python was resetting the active UV layer but not setting the new layer to active, resetting existing UV's.
2012-03-26 02:39:05 +00:00
03df918c2f more face -> tessface edits 2012-03-23 01:10:41 +00:00
8e2efc1dbf rna/python api change: rename Mesh.faces --> tessfaces, since existing scripts are using this to modify the mesh and its confusing that the edits are not kept.
This also makes it clearer that the faces are for tessellated results only.

Added a section on the Gotcha's about upgrading scripts, the pros and cons of MeshTessFace/MeshPoly/BMFace.
and spesifically how to upgrade importers and exporters for 2.63+.
2012-03-23 00:28:29 +00:00
b56d2f9766 fix [#30623] user-defined render presets bug
this report exposed multiple bugs in blender when using a non utf8 compatible home directory.

- bpy.utils.script_paths() would crash when homedir wasn't utf8 (reported bug)
- PyC_DefaultNameSpace() - would raise an error when running when __file__ was non utf8.
- preset filepath property was not set to accept non utf8.
- bpy.paths.display_name would raise an error on non utf8 paths, (used for preset draw)
2012-03-21 22:29:49 +00:00
6053e4f06c rename ngon tessellate function. 2012-03-21 08:35:50 +00:00
c6c0601d8e py api:
modify bpy.path.display_name_from_filepath() to accept bytes
2012-03-16 04:14:57 +00:00
d772b51b56 revert r44887, changes were OK but caused too many problems, better do this as a smaller patch.
sphinx_doc_gen.sh broke building docs - 
- examples/ svn directory was being removed since it assumed an out-of-source build.
- include references somehow stopped working (didnt find why).

also fixed an unrelated error with building docs in object_utils.py
2012-03-15 03:50:52 +00:00
e7c4a25963 Fix #30549: Error adding mesh object to scene 2012-03-14 22:34:25 +00:00
b745621038 Changes to python-defined add object operators:
- Reset rotation value when toggling Align to View property
  which correctly re-alignes object on continuous property
  toggling and fixes issue
  #30510: [2.62] Add Mesh - Torus - "Align to View" cannot be switched back when toggling off

- Moves all generic object-add properties into a helper function
  which might be easily re-used.
2012-03-14 08:55:57 +00:00