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
2012-01-22minor edit for operator error macro so it can return different values.Campbell Barton
2012-01-22Bugfix for r.43592Joshua Leung
A typo (?) meant that enum menus, such as the Set Parent (Ctrl P) menu would get shown with empty string labels.
2012-01-22reduce operator lookups in the UI (could do 4 hash lookups per button).Campbell Barton
2012-01-22style chang, made mainly because I wanted to be able to add breakpoints to ↵Campbell Barton
MEM_freeN calls which were on the same line as the if's.
2012-01-16more keymap editsCampbell Barton
- make sure defaults are not assumed (so reuse last settings doesnt override) - replace 0/1 for TRUE/FALSE defines.
2012-01-11running operators now uses last used settings, added reset button to set ↵Campbell Barton
defaults. details - uses redo stack to get recent settings from. - adds a flag to IDProperties so RNA_property_is_set() can return false even if the property is exists. - PROP_SKIP_SAVE option skips these settings from getting reset (as with presets).
2012-01-11Longer names support for all ID and other object namesSergey Sharybin
This commit extends limit of ID and objects to 64 (it means 63 meaning characters and 1 for zero-terminator). CustomData layers names are also extended. Changed DNA structures and all places where length constants were hardcoded. All names which are "generating" from ID block should be limited by MAX_ID_NAME-2, all non-id names now has got own define called MAX_NAME which should be used all over for non-id names to make further name migration stuff easier. All name fields in DNA now have comment with constant which corresponds to hardcoded numeric value which should make it easier to further update this limits or even switch to non-hardcoded values in DNA. Special thanks to Campbell who helped figuring out some issues and helped a lot in finding all cases where hardcoded valued were still used in code. Both of forwards and backwards compatibility is stored with blender versions newer than January 5, 2011. Older versions had issue with placing null-terminator to DNA strings on file load which will lead to some unpredictable behavior or even crashes.
2011-11-22image save operator now shares settings and UI with render & image out node.Campbell Barton
details: - setting format options from python isnt possible anymore since this isnt exposed via op->properties, python should use image.save() function instead. - image save UI now hides 'Relative' option when copy is selected since it has no effect. - default image depth is set to 8 or more if the image has no float buffer, otherwise its set to 32 or less. other fixes: - image new was adding an image with a filepath set to "untitled", if this file happened to exist in the current directory a save on the generated image would overwrite it, now initialize to empty path. - BKE_ftype_to_imtype was returning an invalid value if ftype==0.
2011-11-15Fix for #29165 bugfix: adding nodes from shift+A menu in node editor did ↵Brecht Van Lommel
nothing.
2011-11-15add support for python __doc__ comments in menu classes showing in the ↵Campbell Barton
tooltip, since menus are used as buttons too.
2011-11-15show tooltips for menus, currently works for operators and enum properties ↵Campbell Barton
which are can be accessed as menus from the UI (camera overlay enum for example)
2011-11-15pass a pointer to IDP_New's IDPropertyTemplate rather then a copy.Campbell Barton
2011-11-15Fix #29165: Arrow keys not working correct in Compositing Node EditorSergey Sharybin
Bug is caused because of how ui_handle_menu_event works -- it makes quite tricky check in which direction movement happens depending on button type. Checked usages for uiItemV and found that it's used in node_editor only, so changed type of button used there, so ui_handle_menu_event works would detect right direction of movement.
2011-11-14fix [#29242] menus have no keyboard shortcutsCampbell Barton
2011-11-10presets now work from non-redo popups,Campbell Barton
ended up having to add a new pointer into the uiBlock (which I'd rather have avoided), but setting the uiLayoutSetContextPointer(..) was complicated to properly use for submenus and popus.
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-22py api - added PyC_UnicodeFromByteAndSize() to match ↵Campbell Barton
PyUnicode_FromStringAndSize() also made RNA_property_string_get_alloc() return the length of the new string to avoid having to run strlen on it after.
2011-10-21Cleaning i18n code.Bastien Montagne
Previous state: Right now, there are "memories" of the "old" (less than a month!) translation way: * A few remaining calls to BLF_gettext() (only UI_translate_do_iface and UI_translate_do_tooltip should be used). * The _() macro still also calls BLF_gettext()! New state: Here are the changes made by the patch: * Removing the no more needed _() macro. * Removing most N_() and _() calls, only keeping the few needed ones (i.e. strings that are in no other way findable by xgettext and/or update_msg script). * Defining in UI_interface.h IFACE_() and TIP_() macros (resp. for UI_translate_do_iface and UI_translate_do_tooltip). * Replacing all calls to BLF_gettext by relevant IFACE_ or TIP_ one. * Replacing all calls to UI_translate_do_iface by IFACE_. * Replacing all calls to UI_translate_do_tooltip by TIP_. All this somewhat clarifies and simplifies the code. On the bf-translations scripts side, this only implies adding IFACE_ and TIP_ as detection markers for xgettext. It also allows to reduce POTFILES.in quite notably (only 20 files remaining in it). Please also have a look at those pages: * Coder POV: http://wiki.blender.org/index.php/Dev:2.5/Source/Interface/Internationalization * Translator POV: http://wiki.blender.org/index.php/Dev:2.5/Doc/How_to/Translate_Blender
2011-10-05minor editsCampbell Barton
- use TRUE/FALSE rather than 1/0 - WM_operator_properties_create_ptr rather than WM_operator_properties_create since the pointers available. - remove redundant strlen()
2011-10-03minor edit for UI code, pointless short/int mix.Campbell Barton
2011-09-26use BLI_snprintf rather than sprintf for interface functionsCampbell Barton
2011-09-26change define INTERNATIONAL --> WITH_INTERNATIONALCampbell Barton
also rename backface_culling --> use_backface_culling (which is used elsewhere in rna)
2011-09-20i18n: code clean-upSergey Sharybin
- Move all translation-related declarations to BLF_translation.h - Reverted some changes to match trunk svn rev40365
2011-09-19Merging r40345 through r40365 from trunk into soc-2011-garlicSergey Sharybin
2011-09-19i18n: code cleanup and fixing unneeded translation (when partial translation ↵Sergey Sharybin
is used only)
2011-09-19/blender/editors: Removed final points in UI strings and messages.Bastien Montagne
Plus a few cuts in very long lines…
2011-09-15Fixing issues with i18n stuff:Sergey Sharybin
- Make gettext stuff draw-time. so switching between languages can happens without restart now. - Added option to translate visible interface (menus, buttons, labels) and tooltips. Now it's possible to have english UI and localized tooltips. - Clean-up sources, do not use gettext stuff for things which can be collected with RNA. - Fix issues with windows 64bit and ru_RU locale on my desktop (it was codepage issue). - Added operator "Get Messages" which generates new text block with with all strings collected from RNA. - Changed script for updating blender.pot so now it appends messages collected from rna to automatically gathered messages. To update .pot you have to re-generate messages.txt using "Get Messages" operator and then run update_pot script. - Clean up old translation stuff which wasn't used and most probably wouldn't be used. - Return back "International Fonts" option, so if it's disabled, no gettext lookups happens on draw. - Merged read_homefile function back. No need in splitting it. TODO: - Custom fonts and font size. Current font isn't nice at least for russian locale, it's difficult to read it. - Put references to messages.txt so gettext can merge translation when name/description of some property changes.
2011-09-15svn merge -r39834:40222 https://svn.blender.org/svnroot/bf-blender/trunk/blenderSergey Sharybin
2011-09-12fix for ntreeGPUMaterialNodes(), using uninitialized exec pointer.Campbell Barton
also commented some set-but-unused variables.
2011-09-09- turn RNA_warning into a macro which includes the function name (was being ↵Campbell Barton
written in manually but had incorrect func names in places). - add __func__ define to BLI_utildefines.h for MSVC.
2011-09-05Fix #28404: certain keyboard shortcuts not shown in menus, e.g. move operatorsBrecht Van Lommel
in graph editor > channel menu. Problem was these did not inherit operator execution context correctly. Fix found by Sergey, also needed to fix logic operators which were not working when invoked instead of executed.
2011-09-05Fix #28389: UILayout.menu function didn't emboss menu button correct in theBrecht Van Lommel
3d view tools region.
2011-09-01merge with trunk r39834Xiao Xiangquan
2011-08-28- use static vars and functions where possible.Campbell Barton
- use NULL rather than 0 when used as pointers.
2011-08-18misc changes to unterface & undoCampbell Barton
- operator strings were doing undo pushes (in fileselector text for example), this is dumb since the operators themselves handle undo. - interface code checks rna props are arrays rather then checking the array length. - disable properties window pin undoing. - sequencer refresh was calling undo, disable since this is clearnign global data not handled by undo. - added commented out code for drawing mesh vertex index/key index, useful for debugging shapekey - hook issyes.
2011-08-14fix for fix r39388, this added checkboxes to buttons which are not supposed ↵Campbell Barton
to have them. now only add checkboxes when the background is not emboss - which works for menus but will work in more general cases too.
2011-08-14add in asserts for when array/non array RNA funcions are used incorrectly, ↵Campbell Barton
would have made previous fix a lot easier to find. also remove unused argument from RNA_property_array_check.
2011-08-14fix [#28245] Checkboxes in menu items fail for boolean arrays.Campbell Barton
2 bugs with displaying boolean arrays.
2011-08-10merge with trunk r39216Xiao Xiangquan
2011-08-08fix [#28183] Wavefront OBJ import has no preset savingCampbell Barton
2011-08-06rna/ui: avoid duplicate property gHash lookups by passing the property when ↵Campbell Barton
its already been found. added _prop suffix to ui functions which take a prop rather then a propname, may change this later since its not that nice but for gsoc branches this keeps existing UI functions working the same.
2011-07-29merge with trunk r38787Xiao Xiangquan
2011-07-27* Fixed a typo in the code (uiLayoutItemSplt -> uiLayoutItemSplit)Thomas Dinges
2011-07-26- bugfix for icon listview where the icons would only wrap onceCampbell Barton
- also quiet some clang warnings
2011-06-24merge from trunk #37722Xiao Xiangquan
2011-06-16use directory selector for properties defined as PROP_DIRPATH, user ↵Campbell Barton
preferences 'File' buttons for eg.
2011-06-15translate left panelXiao Xiangquan
2011-06-05operator buttons get a red highlight when alert is set for the layoutCampbell Barton
2011-05-25fix [#27479] Missing 'Select vertex groups under the cursor' in weight paint ↵Campbell Barton
mode really todo :) but still needs to be done. Split this into 2 operators, works like 2.4x - Ctrl+LMB samples weight. - Shift+LMB selects vertex groups.
2011-05-19UI: fix direction properties not showing the right direction editing widget,Brecht Van Lommel
code was there but in the wrong location. This makes the opengl lights in the user preferences show that widget again as in 2.4.