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
2011-09-02fix for keymap search, was using uninitialized memory when the keymaps ↵Campbell Barton
operator couldn't be found.
2011-08-15Fix #28202: deactivating keymap items not saving properly.Brecht Van Lommel
2011-08-06KEYMAP REFACTORINGBrecht Van Lommel
Diff Keymaps User edited keymaps now no longer override the builtin keymaps entirely, but rather save only the difference and reapply those changes. This means they can stay better in sync when the builtin keymaps change. The diff/patch algorithm is not perfect, but better for the common case where only a few items are changed rather than entire keymaps The main weakness is that if a builtin keymap item changes, user modification of that item may need to be redone in some cases. Keymap Editor The most noticeable change here is that there is no longer an "Edit" button for keymaps, all are editable immediately, but a "Restore" buttons shows for keymaps and items that have been edited. Shortcuts for addons can also be edited in the keymap editor. Addons Addons now should only modify the new addon keyconfiguration, the keymap items there will be added to the builtin ones for handling events, and not get lost when starting new files. Example code of register/unregister: km = wm.keyconfigs.addon.keymaps.new("3D View", space_type="VIEW_3D") km.keymap_items.new('my.operator', 'ESC', 'PRESS') km = wm.keyconfigs.addon.keymaps["3D View"] km.keymap_items.remove(km.keymap_items["my.operator"]) Compatibility The changes made are not forward compatible, i.e. if you save user preferences with newer versions, older versions will not have key configuration changes that were made.
2011-07-27svn merge -r38558:38752 ↵Nathan Letwory
https://svn.blender.org/svnroot/bf-blender/trunk/blender .
2011-07-22Handle NDOF events on RNA side for windowmanager.Nathan Letwory
2011-06-06Keymaps: fix keymap items created in python being added with the pythonBrecht Van Lommel
operator names instead of the internal names. This wasn't really noticeable, expect that it broke automatically looking up shortcuts for display in menus.
2011-06-06bug [#27582] Screen Editing > Split and Join area don't work.Campbell Barton
added 'INTERNAL' operator flag so operators which are only meant to be called by other operators or internal use are not displayed to the user. Currently only use this flag for the operator search toolbox, is ignored in debug mode.
2011-05-31tag unused rna args.Campbell Barton
2011-05-26add the property as an argument to enum item functions, not used yet but ↵Campbell Barton
needed for dynamic python enums.
2011-05-18RNA: make mechanism used by operators to keep python instance alive more ↵Brecht Van Lommel
generic, to be used by render engine later.
2011-05-18RNA: pass Main rather than Context to register/unregister callbacks.Brecht Van Lommel
2011-04-21whitespace only, no functional change mixed tabs/spaces --> tabs.v2.57aCampbell Barton
2011-04-13fix [#26895] STL import in Win 7 64bitCampbell Barton
fixes python non-utf8 path access for file selector 'files' property.
2011-03-28RNA functions for adding timer (needed for demo mode, also useful for python ↵Campbell Barton
modal operators). - timer = WindowManager.event_timer_add(time_step, window=None) - WindowManager.event_timer_remove(timer) Still TODO, is a way for python to check the timer identity.
2011-03-28- quiet new warnings with gcc 4.6Campbell Barton
- use BLI math funcs for normal float/short conversion. - correct some un-intentional float/double promotions.
2011-03-25fix [#26601] Python error when use of autocompleteCampbell Barton
Was a naming collision with 'keys' python method, reserve keys/items/values/get for python. Updated animsys_update.py for shapekey data paths. renamed: Particle.hair --> hair_keys Particle.keys --> particle_keys Key.keys --> key_blocks EnumProperty.items --> enum_items KeyMap.items --> keymap_items noted: http://wiki.blender.org/index.php/Dev:2.5/Py/API/Updates#Since_2.56a
2011-03-17add cancel() method for python defined operators.Campbell Barton
2011-03-03replace 0 with NULL when used as a pointerCampbell Barton
2011-02-27doxygen: blender/makesrna tagged.Nathan Letwory
2011-02-23doxygen: prevent GPL license block from being parsed as doxygen comment.Nathan Letwory
2011-02-19Adding support for the "media" play/pause/stop/next/prev buttonsJoshua Leung
available on many keyboards these days, so that they can be used for animation playback (giving more options over alt-a and alt-a ad- infinitum). Currently, this is Windows only as I don't have a Linux/Mac system to test on (it should compile with both mingw and msvc, at least using scons). Maintainers for those systems can probably easily add this in once they find out the relevant mappings for those systems.
2011-02-16rename IDPropertyGroup to PropertyGroupCampbell Barton
also renamed IDProperty to PropertyGroupItem (these are not referenced for common usage and we already have 'Property' defined).
2011-01-24fix [#25776] Crash when operator's bl_idname has more than one dotCampbell Barton
2011-01-24Raise an exception when registering classes with ID names which are too ↵Campbell Barton
long. (related to bug ), found while looking into bug [#25776].
2011-01-07remove references to BKE_utildefines where its not needed.Campbell Barton
- move GS() define into DNA_ID.h - add BLI_utildefines as an automatic include with makesrna generated files.
2011-01-07split BKE_utildefines.h, now it only has blender specific defines like GS() ↵Campbell Barton
MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h. no functional changes.
2010-12-24presets for operators, re-using same preset system as render, cloth etc use.Campbell Barton
- operators need to enable the option OPTYPE_PRESET or 'PRESET' in python. - hidden properties are not written. - currently this only works in the file selector (enabled for FBX/OBJ export) - currently the menu label doesnt change when presets are selected, this is a TODO, not so simple since the UI is defined in C and the label in python. - presets save in "scripts/presets/operators/*id*/*.py"
2010-12-07error checking for setting operator string values for python operators, and ↵Campbell Barton
get rid of annoying warnings (cmake/linux now builds without warnings again, except for extern libs).
2010-12-07pass along the context to extension functions, this was already being done ↵Campbell Barton
in all cases except for the render engine. this allows python to NULL its internal context while scripts are not running.
2010-12-06[#25047] Deletion of any custom key map item remove always first oneMartin Poirier
keymap item id for user defined keymaps wasn't defined properly. This is really old, I'm surprised with didn't catch this before.
2010-12-04Give functions that use printf style formatting GCC format attributes so if ↵Campbell Barton
incorrect formatting is used the compiler will warn of this. found & fixed 2x incorrect formatting args.
2010-12-01Bugfix #24903Ton Roosendaal
GRLESS key was missing in RNA key list, so it didn't show up in keymap editor. Internally support for it worked already. Thanks to Milos Zajic for showing the fix.
2010-11-17use 'const char *' by default with RNA functions except when the value is ↵Campbell Barton
flagged as PROP_THICK_WRAP. Also use const char in many other parts of blenders code. Currently this gives warnings for setting operator id, label and description since these are an exception and allocated beforehand.
2010-11-10bugfix [#24635] "Add Shortcut"Campbell Barton
2010-10-31rename and negate DISABLE_PYTHON --> WITH_PYTHONCampbell Barton
2010-10-21bugfix [#24342] Wrong Bubble description when creation add-on without python ↵Campbell Barton
comment on class
2010-10-05rename Command key to OSKey, Window manager already called it the OSKey but ↵Campbell Barton
internally it was mixed.
2010-09-17New optional operator function, check(), it takes the same arguments as ↵Campbell Barton
execute(). This runs after changing a property and allows correcting incompatible options. Returning True will redraw the UI. Currently this is used for setting the write extension when saving files, so changing the image format also corrects the extension. The same is accessible from python where its used when saving SVG/EPS/PNG files. This fixes: [#23828] obj export problems, [#23760] Exporting OBJ and filetype ending also fixed document submission operator. Now the filename in the file selector is the one used for writing this means we remove the "Save Over" popup which could be overlooked too easily. Instead display the filename field with red tint, and a note in the tooltip.
2010-09-09- bugfix, operators were getting their properties registered twice.Campbell Barton
- operator properties are now converted into python property() class members which bypass the operator 'properties' member. self.properties.mysetting ... can now be written as ... self.mysetting - fix for error reloading rigify
2010-09-09bugfix [#23725] bpy.context.window_manager.Campbell Barton
2010-08-30another function moved, should be last of the simple cases.Campbell Barton
km.item_from_id() --> km.items.from_id()
2010-08-30- keymap import/export works again (broke with own api changes)Campbell Barton
- function renames, move WM functions into collections wm.add_keymap() --> wm.keymaps.new() note: new is used for named items in a collection, which return the result. - Action.get_frame_range() is now a readonly property 'frame_range', floats rather then ints.
2010-08-25bpy.context.manager.clipboard get/set function (to get/set the Clipboard ↵Dalai Felinto
from a script) Thanks Campbell - one day I get used to C pointer management hell :) * when using it to get, the whole string comes in one single line with Linux EOL (\n) * works only for text
2010-08-24py/rna remove functions now all work in a similar way.Campbell Barton
- some remove() functions took an int argument rather then the item to remove. - disallow None argument. - raise an error if the item isnt in the collection.
2010-08-24- move more active properties into their collections:Campbell Barton
scene.active_keying_set --> scene.keying_sets.active ...same for active_uv_texture. active_vertex_color, active_keyconfig, - move mesh.add_uv_layer() and mesh.add_vertex_color() into their collections also have them return the newly created layer and dont set the layer active. uvtex = mesh.uv_layers.new(name) vcol = mesh.vertex_colors.new(name)
2010-08-19- Properties from base classes are now registered too, this allows class ↵Campbell Barton
mix-in's to define properties. An example of how this is useful - an importer mixin could define the filepath properties and a generic invoke function which can run the subclasses exec for each selected file. - Panels and Menus now skip the property check when registering. - renamed _idproperties_ to _idprops_ in function names, function names were getting very long.
2010-08-18rna renaming, still only adjusting properties that wont be animated (at ↵Campbell Barton
least its very unlikely).
2010-08-17apply rna rename most of the show_*, names.Campbell Barton
2010-08-13- remove WM_operatortype_exists since its almost the same as ↵Campbell Barton
WM_operatortype_find - hopefully fix reported problem with MSVC.
2010-08-03rna pointer poll function, not used yet.Campbell Barton