Commit Graph

5758 Commits

Author SHA1 Message Date
Bastien Montagne
0dafa97ea3 UI translation from inside Blender UI: first part.
This commit reshapes a bit runtime button info getter, by adding a new uiButGetStrInfo() which accepts a variable number of uiStringInfo parameters, and tries to fill them with the requested strings, for the given button (label, tip, context, RNA identifier, keymap, etc.). Currently used mostly by existing ui_tooltip_create(), and new UI_OT_edittranslation_init operator.

It also adds a few getters (to get RNA i18n context, and current language iso code).

Finally, it adds to C operators needed for the py ui_translation addon:
*UI_OT_edittranslation_init, which gathers requested data and launch the py operator.
*UI_OT_reloadtranslation, which forces a full reload of the whole UI translation (including rechecking the directory containing mo files).

For the first operator to work, it also adds a new user preferences path: i18n_branches_directory, to point to the /branch part of a bf-translation checkout.
2012-07-09 14:25:35 +00:00
Bastien Montagne
063f78041a Grmbl, dummy argparse... 2012-07-08 17:18:01 +00:00
Bastien Montagne
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
Bastien Montagne
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
Bastien Montagne
3dacc164e4 Update/fixes (was escaping more chars than needed!) 2012-07-07 14:28:49 +00:00
Bastien Montagne
30037194cd Minor UI message update. 2012-07-07 13:51:07 +00:00
Thomas Dinges
0ee0eec6c6 Fix for [#32016] Tracking Settings Presets not working
* Removed outdated properties from the presets.

Note: it does not fail anymore, but needs an update for new settings probably.
2012-07-04 23:00:49 +00:00
Campbell Barton
2a140e93c1 style cleanup 2012-07-04 21:41:05 +00:00
Bastien Montagne
99f0589ea7 Minor update to make it work within i18n repo too. 2012-07-04 18:19:58 +00:00
Bastien Montagne
4149ea5f50 Last spell checking (for now).
Only mysterious courant from bpy.types.ParticleSettings.courant_target reamins...
2012-07-04 15:52:07 +00:00
Bastien Montagne
558721ab59 More spell checking. 2012-07-04 15:04:38 +00:00
Jeroen Bakker
778999cbbf Two pass execution:
1. first pass only fast nodes are calculated and only to the active
viewer node
2. second pass all nodes to all outputs

Temp disabled highlights because of random crashes.
2012-07-04 11:39:28 +00:00
Jeroen Bakker
33e12a2983 Highlight nodes that are being processed 2012-07-04 10:01:45 +00:00
Campbell Barton
81a509fa40 fix error in node template and quiet warning. 2012-07-03 21:03:39 +00:00
Bastien Montagne
468ef74ed7 More spell and typo fixes (mostly visualise->visualize, grey->gray, normalise->normalize). 2012-07-03 19:09:07 +00:00
Bastien Montagne
14b2c348c8 Minor updates. 2012-07-03 19:06:43 +00:00
Bastien Montagne
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
Bastien Montagne
8d4f9f9390 Grmph! module renaming broke the tool! 2012-07-03 15:05:10 +00:00
Bastien Montagne
69ca014d50 More exception words to the ui dico... :/ 2012-07-03 13:24:13 +00:00
Bastien Montagne
1f81930ad8 Minor edits. 2012-07-03 13:15:23 +00:00
Bastien Montagne
971ffd8fad Fix [#31977] Export Animated Mesh, terminate baking in fluid-sim
* Elbeem exporter code now overrides user settings to No Slip in case the object is animated;
* UI of fluid obstacles now disables slip settings when export animated is enabled;
* Added in this later option's tooltip a mention that it enforces No Slip!
2012-07-03 12:40:19 +00:00
Campbell Barton
f42d606789 rename module to something less generic. 2012-07-03 11:32:42 +00:00
Campbell Barton
314a275850 fix (actually nasty workaround), for groups incorrectly drawing in the object panel when the blend file has naming collisions with library data.
also minor style cleanup in bpy_rna.c
2012-07-03 10:32:10 +00:00
Bastien Montagne
63810ffcef Style edit (mostly), use """ for docstrings (not ''').
Should also fix the broken py ops tips...
2012-07-03 09:02:41 +00:00
Bastien Montagne
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
Bastien Montagne
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
Campbell Barton
f81c38ce2d another fix for error in the view raycast template 2012-07-01 13:57:32 +00:00
Campbell Barton
1eae6b5fb5 fix for 2 errors in the template 2012-07-01 11:05:11 +00:00
Campbell Barton
93cb7fb97b python template for doing mouse ray casts to pick objects in the 3d viewport. 2012-07-01 08:46:02 +00:00
Campbell Barton
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
Campbell Barton
9454015289 style cleanup: remove '.' from docstring endings and use quotes for descriptions. 2012-07-01 07:55:44 +00:00
Campbell Barton
ac7b392247 code cleanup: some vars were assigned when not needed 2012-06-30 17:54:55 +00:00
Lukas Toenne
83093d6770 Extended modes for snapping in the node editor.
The transform operators in nodes will now use the unselected nodes to generate snapping points. Unlike object snapping, node snapping works for the x/y axes separately and snaps node borders to same borders of unselected nodes. The sensitive area for node borders extends over the whole view2D range, to enable simple alignment of nodes in both x and y direction.

For snap points in the node editor an additional enum value is stored to indicate the type of node border (left/right/top/bottom). This works as a constraint on possible node alignments: only same border types align with each other.
2012-06-29 14:34:46 +00:00
Bastien Montagne
4f294a8f02 Fixing a bug found while checking "[#31937] UV/Image Editor: Copy Mirrored UV Coords" (which isn't a bug at all).
The tool works OK, except it was messing vertices' order of polys, often giving ugly results! Now only using sorted list of vertices indices to find matching polys.
2012-06-29 12:41:39 +00:00
Campbell Barton
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
Campbell Barton
acb0a50fb3 print warning if a script in the addons dir has no bl_info. 2012-06-28 19:22:13 +00:00
Lukas Toenne
855b6391ea Basic snapping in node transform operator.
Snapping actually was working already, but grid spacing was set to 1.0, which is basically pixel size in the node editor. Increased this to 1x grid step for fine snapping and 5x grid step for rough snapping.

Grid drawing in node editor now draws 2 levels in slightly different shades to indicate the different snapping modes better.

Node editor also supports the general use_snap tool setting to enable automatic snapping during transform. For now only the incremental snapping is supported, in future could be extended to enable alignment between nodes in a number of ways.
2012-06-28 08:47:22 +00:00
Campbell Barton
a09feb7386 option so operators can be executed with undo enabled (and redo). 2012-06-27 21:41:17 +00:00
Campbell Barton
f6337a2843 utility mesh function to return UV islands 2012-06-25 07:24:01 +00:00
Guillermo S. Romero
a21a0a4dcf SVN maintenance. 2012-06-23 02:10:54 +00:00
Gaia Clary
d0bf289f68 Fix: Collada (Exporter) replaced the initial operator Presets with 2 up to date versions 2012-06-22 17:14:50 +00:00
Campbell Barton
238d3fa4bb mask re-key feature - mango request. ability to reset selected points shape key data.
useful if you add many keys to one part of a curve, then later want to key another part - but dont want to continuously make the same corrections.
2012-06-22 11:53:49 +00:00
Thomas Dinges
b4440696a5 Themes:
* Fixes for the "Back to Black" theme, patch by meta-androcto. Fixed text editor select & vert edge select color. Thanks!
2012-06-21 14:05:31 +00:00
Bastien Montagne
19e81b12e7 Fix [#31714] Pinning object context causes texture list to disappear
Problem was py code of main texture panel was not doing any check on the pinned id, assuming it managed the textures itself - but this is not the case of the Object datablock...

All work actually done by Sergey, was just missing the Lamp specific case. Checked both in code and with tests, quite sure all cases are now correctly handled!
2012-06-21 07:32:06 +00:00
Mitchell Stokes
501922782f Fix for [#31792] "Character Physics type not detected by near sensor" reported by Mikko-Pentti Eronen.
Near sensors only pick up "actors," but objects with character physics did not have the actor option displayed. By setting the character physics object to actor, it can be picked up by the near sensor. However, it collides with the near sensor, which sounds like bug [#31701]
2012-06-21 05:30:57 +00:00
Sergey Sharybin
aa30e20272 Fix #31852: Sequencer duplicate cant move strips on Y axis in a meta
Issue was caused by some stuff happenign in wm_operator_finish() which uses
to somehow restore changes made by transformation invoke function.

Solved by not calling translation operator directly from duplication operator
(which is in fact really tricky) and use macros instead. This macros calls
duplication operator which simply duplicates strip, and then calls translation
operator.
2012-06-20 14:20:03 +00:00
Campbell Barton
72f7ab441d removing from group now shows menu to select group to remove. 2012-06-20 14:13:22 +00:00
Campbell Barton
fca0112ba3 add back blending for vertex and weight paint modes, you may want to keep the one brush and switch blending options. 2012-06-20 09:34:26 +00:00
Campbell Barton
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
Campbell Barton
98e6912480 style cleanup 2012-06-19 22:17:19 +00:00