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-03-21move script directories for internal blender scripts.Campbell Barton
ui/ --> startup/bl_ui op/ --> startup/bl_operators scripts/startup/ is now the only auto-loading script dir which gives some speedup for blender loading too. ~/.blender/2.56/scripts/startup works for auto-loading scripts too.
2011-02-11patch [#25809] Auto-Registration as utility function.Campbell Barton
This removes auto-registration, committed by Martin r30961. Realize this is a contentious topic but Brecht and myself both would rather opt-in registration. TODO: - addons need updating. - class list will be modified to use weakrefs (should have been done for existing system too). - will move bpy.types.(un)register functions into bpy.utils.(un)register_class, currently including these functions in a type list is internally ugly, scripts which loop over types also need to check for these.
2011-01-01pep8 cleanupCampbell Barton
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-21modified fix for commits r33811, 33812.Campbell Barton
- SSS Presets were not working on pinned materials. - added ability for save-presets to define variables to stop them becoming too verbose. - remove object.active_node_material
2010-12-18fix [#25262] Keyboard shortcut presets can't be made because of wrong folderCampbell Barton
New create option when getting a user resource for creating paths. bpy.utils.user_resource(type, path, create=False)
2010-11-02[#24491] not possible to create a new Rendering preset than "add render ↵Campbell Barton
preset.py" - Setting operator properties was broken because of bpy_types.py meta-classing (surprising this wasn't noticed before!) - Presets now use a dialog with an OK button. - Presets use a check function on the filename so invalid chars are replaced editing. - Submit docs operator was broken.
2010-10-31bugfix [#24466] Selecting of object with pattern leads to strange behaviorCampbell Barton
The undo problem was caused by python operators returning 'RUNNING_MODAL' rather then the return value from wm.invoke_props_popup(self, event) - 'FINISHED'. This was done because returning FINISHED would free the operator causing the buttons redo handler to try and run a freed operator and crash. So the real fix is to disallow any operators to use wm.invoke_props_popup(self, event) if they dont have the REGISTER option enabled, fixing the crash and redo problem.
2010-10-07bugfix [#23988] The Maya preset as defaultCampbell Barton
2010-10-06bugfix [#24157] AddPresetBase class writes incorrect values for float_vector ↵Campbell Barton
properties
2010-10-05bugfix [#24151] AddPresetBase class does not add Color import when saving ↵Campbell Barton
color properties
2010-09-14keyconfig updates/changesCampbell Barton
- use preset subclass with funcs for updating the keyconfig - keyconfig filenames are used for the UI names as with presets (so separation anymore) - keyconfig's are stored in the preset dir (scripts/cfg dir removed) - only the active keyconfig script is loaded - some bugfixes for saving keymaps - user interactions no longer saves keyconfigs too, I think this needs to be re-worked. developer note... multiple keyconfigs at once are not really needed now that they are stored & accessed directly in python. for now I left it alone but we could consider to remove this capability in the future.
2010-09-14button to remove presets.Campbell Barton
note: this is an option to the add preset operator which is a bit odd but easiest since these classes have all the info needed for removal as well.
2010-09-09replace self.properties.foo --> self.fooCampbell Barton
2010-09-07ran through pep8 checkerCampbell Barton
2010-09-02rna context renameCampbell Barton
* context.main & bpy.types.Main --> context.blend_data & bpy.types.BlendData * context.manager --> context.window_manager
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-20rna data path names which are more likely to break animations.Campbell Barton
Added an operator "Update Animation Data", access from the search menu to update drivers and fcurves.
2010-08-18rna renaming for Render* structsCampbell Barton
2010-08-17apply UserPrefs and Theme rna naming changes.Campbell Barton
2010-08-02RNA Types metaclass registrationMartin Poirier
See mailing list posts for details [1][2][3] Addons still need to be fixed; Campbell said he'd do it today. See any of the py files (outside netrender) in this commit for how to do it (it's rather simple). [1] http://lists.blender.org/pipermail/bf-committers/2010-February/026328.html [2] http://lists.blender.org/pipermail/bf-committers/2010-August/028311.html [3] http://lists.blender.org/pipermail/bf-committers/2010-August/028321.html
2010-07-14- text3d was missing menu items for toggling bold/underline/italic/smallcaps.Campbell Barton
- made smallcaps use a temp flag so caps can still have the smallcaps flag. - utility function for getting the char from a font. find_vfont_char(), was inline in ~5 places. - removed CU_STYLE mix of flags only used in one place, not needed. removed 'style' from rna too. - fix for some warnings.
2010-07-12- presets were not being written with 'import bpy' at the start.Campbell Barton
- attribute save_keyconfig defaulted to True when unset, not sure why, but . - use repr() rather then str() so strings are quoted without manually checking. also converts less common chars properly \m \" etc.
2010-06-14naming changesCampbell Barton
path -> filepath (for rna and operators, as agreed on with elubie) path -> data_path (for windowmanager context functions, this was alredy used in many places)
2010-05-10Wrong operator description in preset base class. Thomas Dinges
2010-04-19Fix [#22058] Presets system not setting some input options.Matt Ebb
Added a few more input properties to store in interaction presets
2010-04-17- for BGE mouse and keyboard events use tuples rather then listsCampbell Barton
- pep8 corrections
2010-04-14rna api, when linking objects to an inactive scene, dont change its layer, ↵Campbell Barton
removed NULL object data check since this isnt allowed from the api side.
2010-04-14avoid using exec()Campbell Barton
2010-04-14* Interaction PresetsMatt Ebb
This adds a new presets menu in the splash screen and the Input section of User Preferences to choose a preset interaction style, consisting of key configurations and also other user preferences such as select mouse button, view rotation style, etc. Currently, just 'Blender' and 'Maya' presets are included, hopefully we can have more presets contributed (and maintained!) by the community. It's best to keep these presets minimal to avoid too many key conflicts. In the Maya one I changed the view manipulation key/mouse combos and also the transform manipulator keys, not much more than that. To save an interaction preset, open the user preferences Input section, and press the [ + ] button next to the presets menu. It will save out a .py file containing any edited key maps and navigation preferences to the presets/interaction folder in your scripts folder. --- Part of this commit changes the way that key maps are exported/displayed in preferences - now partial key configs are allowed. Previously it would export/import the entire key configuration, regardless of whether individual key maps were edited or not (which would make them more susceptible to conflicts in unexpected areas). (note, in blender terminology, a key map is a category of key items, such as 'Object Mode' or 'View 2d'.) Now, the export and the UI display work in a similar way to how key maps are processed internally - Locally edited key maps (after pressing the 'Edit' button) are processed first, falling back to other key maps in the current key config, and then falling back to the default key config. So it's possible for a key config to only include a few key maps, and the rest just gets pulled from the default key config. The preferences UI display works like this too behind the scenes in deciding what to show users, however using it is just like it was before, the complexity is hidden.
2010-02-23scene.render_data -> scene.renderCampbell Barton
bpy.types.SceneRenderData -> bpy.types.RenderSettings better do these changes before there are too many scripts out.
2010-02-23pep8 cleanup + correction for external player operator return value.Campbell Barton
2010-02-16[#21177] Text editorCampbell Barton
Running scripts directly didnt call the register function, even though this is not essential its good to be able to run a script directly and see changes in the UI.
2010-02-14change python scripts so modules which register with blender have a ↵Campbell Barton
register() function rather then making import automatically run the register functions (generally considered bad practice by python people)
2010-02-12correct fsf addressCampbell Barton
2010-02-11Killing more dots!Daniel Salazar
2010-02-10Fix for bug [#21015] Render Panel Presets do not remember fieldsDaniel Salazar
setting. New presets will remember field settings but I didnt change existing presets since I think this could be dangerous.
2010-02-08Patch #21011: Tweaks to Sky/Atmosphere presetsJoshua Leung
Patch by Daniel Salazar - ZanQdo - Do not change save the distance factor since this is not relevant as a preset, it should stay at what ever the user set it to work with that particular scene - fixed a tooltip
2010-02-07sunsky presetsCampbell Barton
* Mountain: low turbidity, well-defined sun, blue-ish (high sun energy) * Desert: high turbidity (dust), big, diluted sun, red-ish * Classic: average turbidity (water vapor), small, diluted sun. also fixed a bug with saving string presets
2009-12-25operator draw function working again. needed to add layout to the operator ↵Campbell Barton
to give access to "self.layout" - like panels, headers and manu's have
2009-12-24* register operators like other classesCampbell Barton
* operators now return sets (converted into flags) * can't remove bpy_operator_wrap.c since macro's still use the custom register funcs
2009-12-13add pep8 headers so these scripts spit out errors when running pep8.Campbell Barton
made some changes but mostly these scripts will give pep8 warnings.
2009-12-07rna flag PROP_ENUM_FLAG which makes rna props a tuple of enums when ↵Campbell Barton
converted into a PyObject only used by wm.invoke_props_popup() currently
2009-11-29pep8 cleanup in ui and op dirs, added popup to select patternCampbell Barton
2009-11-27* Small Cleanup.Thomas Dinges
2009-11-22- add cloth button wasnt working because it was set to execute the operator.Campbell Barton
- for adding an operator, start with a blank name and dont write the default one. (still writes each name you type in, will need to fix this properly) - move the AddPresetBase class into presets.py since all the presets are defined there.
2009-11-22use context member rather then modifier name in presetsCampbell Barton
2009-11-22* Minor cleanups.Thomas Dinges
* Added Cloth Presets. Patch by nudelZ. Thanks!
2009-11-22remove template uiTemplate_view3d_select_faceselmenuCampbell Barton
2009-11-22SSS presets, Thomas and I added these at the same time, however I meant to ↵Campbell Barton
make this a more general system. this commit shows how to add a preset using the base preset class and menu with minimal effort.