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
2020-10-02Cleanup: pep8, blank linesCampbell Barton
2020-09-17Fix T63651: ImagePreviewCollection.new,load don't work as documentedCampbell Barton
Update doc-strings, add note for why this decision was made.
2020-09-14Fix T80694: Crash reloading scripts from the Python consoleCampbell Barton
Running `bpy.ops.script.reload()` from Python was crashing since the operator being called was it's self freed. Change the reload operator to defer execution - as supporting re-registration during execution is quite involved for a corner-case.
2020-09-01PyAPI: expose 'bl_options' for operators in bpy.opsCampbell Barton
Useful for checking which operators are only for internal use.
2020-07-17Cleanup: remove f-string use in favor of percentage for formattingCampbell Barton
2020-06-26Cleanup: use percentage formattingCampbell Barton
`str.format` and `f-string` use was minimal. Prefer using a single style of string formatting unless an alternative is more widely adopted.
2020-04-21Fix: Incorrect f-string in previews.pyJacques Lucke
Contributed by @deadpin Differential Revision: https://developer.blender.org/D7458
2020-03-27Fix T66655: Add-on tool keymap not working after restartCampbell Barton
- Use addon keyconfig for registered tools so reloading the keymap doesn't clear them. - Ensure there is a default keymap, needed for addon keymaps to be available in the user keyconfig.
2020-01-28Error in last comment (redundant assignment)Campbell Barton
2020-01-28Fix T69213: App-Template doesn't run scripts in BLENDER_USER_SCRIPTSCampbell Barton
2020-01-27Fix T73409: error deleting preset saved on different drive than Blender installBrecht Van Lommel
2019-11-01Fix python error when trying to delete presetsSebastian Parborg
In some cases the default data paths for blender does not exist. For example on windows when using the portable install. This would lead to errors when trying to lookup default paths in is_path_builtin. Now we handle cases like this gracefully.
2019-10-31Cleanup: comments for is_path_builtinCampbell Barton
Also reduce scope of import.
2019-10-30Fix T59065: Blender default keyset is deletable by user!Sebastian Parborg
Previously, you could delete presets that were part of the blender default install. Now we check if the preset file resides in the bundled file paths. If so, prevent deletion of the preset. Reviewed By: Campbell Differential Revision: http://developer.blender.org/D4522
2019-10-28PyAPI: change behavior of bpy.path.module_namesCampbell Barton
Instead of checking for names that contain ".", only skip files that start with a "." (since they're used for ".git" & ".arcconfig"). While other path names may fail to import, it's not the purpose of this function to validate the path, have the caller must raise an error instead of silently skipping them. See D6140.
2019-08-15Fix T68014: Add-on's override Python built-in modulesCampbell Barton
Append addon paths to the sys.path to avoid name collisions with system modules.
2019-08-11Cleanup: spellingCampbell Barton
2019-07-23Fix T63775: Toolbar icons ignore BLENDER_SYSTEM_DATAFILESCampbell Barton
The environment variable to locate system data-files was ignored by toolbar icons. Add bpy.utils.system_resource to match Blender's internal data-file access.
2019-06-19Fix T65398 - Fix frame rate base use in Python SMPTE functionsRichard Antalik
Differential Revision: https://developer.blender.org/D5064 Reviewed By: brecht
2019-06-13Cleanup: tweak logic for skipping modulesCampbell Barton
Startup is the special case, so match against this instead of 'modules'.
2019-06-04Fix (unreported) missing updates in scripts/docs after `scene.update()` removal.Bastien Montagne
This should really have been done together with API changes, simple usage of grep does the trick to catch most places needing updates.
2019-05-09Fix bpy.utils.script_paths ignoring user_pref argCampbell Barton
2019-05-09Cleanup: unused args/vars/imports in modulesCampbell Barton
2019-03-17Cleanup: unused variablesCampbell Barton
2019-03-15Tool System: add tool registration APICampbell Barton
This mimics RNA style class registration, keeping the same internal data types. Currently there is a template which shows an example of adding a tool group with a keymap. Icon generation still needs to be exposed for general use.
2019-02-14Fix T61497: Old keymap causes error on startupCampbell Barton
When a keymap has an error loading, don't make it active since it will be partially loaded and not usable.
2019-01-25Fix UI extension removalCampbell Barton
App-templates & keymap names had their extensions removed twice. Confusing for filenames containing dots.
2019-01-05UI: Preferences Redesign Part 2Severin
(Part 1 was 00963afc14978b) Does the following changes visible to users: * Use panels and sub-panels for more structured & logical grouping * Re-organized options more logically than before (see images in D4148) * Use flow layout (single column by default). * New layout uses horizontal margin if there's enough space. * Change size of Preferences window to suit new layout. * Move keymap related options from "Input" into own section. * Own, left-bottom aligned region for Save Preferences button. * Adjustments of names, tooltips & icons. * Move buttons from header into the main region (except editor switch). * Hide Preferences header when opened in temporary window. * Use full area width for header. * Don't use slider but regular number widget for UI scale. * Gray out animation player path option if player isn't "Custom" Internal changes: * Rearrange RNA properties to match changed UI structure. * Introduces new "EXECUTE" region type, see reasoning in D3982. * Changes to panel layout and AZone code for dynamic panel region. * Bumps subversion and does versioning for new regions. RNA changes are documented in the release notes: https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Python_API/Preferences_API Design & implementation mostly done by @billreynish and myself. I recommend checking out the screenshots posted by William: https://developer.blender.org/D4148#93787 Reviewed By: brecht Maniphest Tasks: T54115 Differential Revision: https://developer.blender.org/D4148
2018-12-21RNA: naming, user-preferences -> preferencesCampbell Barton
2018-11-28Tool System: remove custom tool registrationCampbell Barton
API is not ready for beta (likely to change).
2018-11-18PyAPI: add bpy.utils.execfileCampbell Barton
Wraps `importlib.util`, avoids duplicate preset loading calls.
2018-11-16WM: fix hard coded renameCampbell Barton
Currently the filenames are used when setting keymaps. This hard coded naming meant the preset and setting function need to be kept in sync. Prefer to not have hard coded replacements which need to be duplicated.
2018-11-13Keymaps: refactor loading of default keymap, fix bugs.Brecht Van Lommel
This refactors loading of key configurations to clear and refill existing ones, rather than adding a new one and then removing the old one. This fixes broken loading of non-default configurations after recent changes, and prepares for future changes to make it possible to dynamically change key configurations based on user preferences.
2018-11-09Keymap: skip loading the keymap preset in background modeCampbell Barton
Caused a crash on exit and isn't needed.
2018-11-09Keymap: move builtin keymaps from C to PythonBrecht Van Lommel
This should be purely an implementation change, for end users there should be no functional difference. The entire key configuration is in one file with ~5000 lines of code. Mostly avoiding code duplication and preserve comments and utility functions from the C code. It's a bit long but for searching and editing it's also convenient to have it all in one file. Notes: - Actual keymap is shared by blender / blender_legacy and stored in `keymap_data/blender_default.py` This only generates JSON-like data to be passed into `keyconfig_import_from_data`, allowing other presets to load and manipulate the default keymap. - Each preset defines 'keyconfig_data' which can be shared between presets. - Some of the utility functions for generating keymap items still need to be ported over to Python. - Some keymap items can be made into loops (marked as TODO). See: D3907
2018-10-18PyAPI: Support for custom tool registrationCampbell Barton
Added a module bpy.utils.toolsystem which only exposes ToolDef, to avoid scripts referencing bl_ui internals.
2018-09-13Merge branch 'master' into blender2.8Campbell Barton
2018-09-13PyAPI: remove operator methods that leak memoryCampbell Barton
2018-09-13PyAPI: use brief description for operator reprCampbell Barton
Only include description in docstring. Also avoid using op_get_rna.
2018-09-13Merge branch 'master' into blender2.8Campbell Barton
2018-09-13PyAPI: add API call to get an operators typeCampbell Barton
Getting the instance leaks memory and was only meant to be used for generating docs.
2018-09-03Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/blenkernel/intern/collision.c
2018-09-03Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3668
2018-07-12PyAPI: remove bpy.utils.register_moduleCampbell Barton
Remove bpy.utils.register_module() & logic tracked RNA classes.
2018-07-07Keymap: support for reading/writing keymaps as dataCampbell Barton
Instead of running code to create a keymap, store them as data. This allows for keymaps to share content as well as running transformations at load time.
2018-07-05Merge branch 'master' into blender2.8Campbell Barton
2018-07-03Cleanup: pep8Campbell Barton
2018-07-03Merge branch 'master' into blender2.8Campbell Barton
2018-07-03Cleanup: pep8Campbell Barton
2018-06-30Merge branch 'master' into blender2.8Campbell Barton