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
2019-01-15Fix T60410: Crash adjusting torus w/ enter edit-mode preferenceCampbell Barton
2019-01-10Fix anim_utils.bake_action typoCampbell Barton
D4172 by @rcorre
2018-12-21RNA: naming, user-preferences -> preferencesCampbell Barton
2018-12-05Fix own mistake in recent rB74361eebe68c.Bastien Montagne
One cannot assign to Class.__dict__, that is not a 'real' dictionnary... Thanks to @JacquesLucke for noting the issue.
2018-12-05Fix T58772: Stray "forward" and "up" options in 2.8 import addons?Bastien Montagne
Nice side-effect of using new __annotations__ thingy to store dynamically-generated fields in a class: __annotations__ dict is not ensured to exist for a given class, so we may end up modifying on of the parents' one!
2018-11-28Use collection and instance terminology in Python APISergey Sharybin
This follows naming convention agreed on in T56648.
2018-11-263D View: remove 3D cursorCampbell Barton
Use 3D cursor from the scene (was previously used for local-view).
2018-11-20Add option not to print debug/info in ngon_tessellate.Bastien Montagne
That func can be called a lot, generating a lot of noise in the console...
2018-11-20Keymap: update addon register/unregister utilitiesCampbell Barton
Use the same data format and loader that the default key-maps use. This supports nested properties (needed for macros) and fixes modal key-maps which weren't supported. This format still needs to be documented.
2018-11-20Cleanup: move keymap hierarchy into own fileCampbell Barton
2018-11-20Cleanup: move bpy_extras.keyconfig_utils to own moduleCampbell Barton
bpy_extras were meant to be useful high-level helper functions for script authors to perform common operations, to avoid writing to verbose API's. bpy_extras.keymap_utils contains some specialized API calls mainly intended for Blender's own internal use. Move keymap import export to internal API.
2018-11-18Cleanup: namingCampbell Barton
2018-11-18PyAPI: add bpy.utils.execfileCampbell Barton
Wraps `importlib.util`, avoids duplicate preset loading calls.
2018-11-16Fix related to T57851: broken normalmap handling in py shader wrapper.Bastien Montagne
Pretty stupid mistake...
2018-11-16Keymap: allow filling in existing key-configsCampbell Barton
Needed so we can get the preferences of a key-config which are sent to a function that generates the contents.
2018-11-16Keymaps: replace select / action mouse systemBrecht Van Lommel
For Blender builtin configurations the option to choose the select mouse remains and is now also in the splash screen. It works by changing the keymap dynamically in the script, rather than using special events. The system of automatic switching of events was not flexible enough to deal with side effects that require further keymap changes, so it is now under more manual control in the script. This breaks compatibility for some scripts and exported key configurations. These can be fixed by replacing SELECTMOUSE, ACTIONMOUSE, EVT_TWEAK_S and EVT_TWEAK_A with appropriate LEFTMOUSE, RIGHTMOUSE, EVT_TWEAK_L and EVT_TWEAK_R events. Other than that, there should be no functional changes.
2018-11-15Fix node_shader_utils: "Specular Tint" is a float (not a color)Philipp Oeser
2018-11-15WM: use Python bytecode cache to run presetsCampbell Barton
Key-maps can be very large, avoid parsing on every startup.
2018-11-15Keymap: remove keymap export that wrote API callsCampbell Barton
Use new keymap format which defines data to be loaded.
2018-11-15Tool System: use preset keymap loading logicCampbell Barton
The data structures for tool keymaps and presets were different, use the same structure and expose function publicly.
2018-11-11Fix T57776: Error when adding a Torus to the scene.Bastien Montagne
Not all Object.select_set() cases had been updated to new API... Tsst. ;)
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-11-06Fix/cleanup RNA viewlayer API.Bastien Montagne
RNA's ViewLayer would present 'first level' of layer collection as a list (collection property), when it is actually now only a single item, same as the scene's master collection. Note: did not try to update view_layer python tests, those are already fully broken for quiet some time I guess (they still assume view_layer.collections to be mutable e.g.)...
2018-11-01Merge branch 'master' into blender2.8Campbell Barton
2018-11-01Cleanup: move progress utility module into bpy_extrasCampbell Barton
Try avoid having too many toplevel modules with generic names.
2018-10-17node_shader_utils: Proper fix for node_normalmap accessor returning ellipsis ↵Bastien Montagne
value. Ellipsis value is internal ingredient only, to tag hidden _node_normalmap 'real' property as not yet initialized. Public node_normalmap accessor should never ever have that value, it's either None or a valid node!
2018-10-17Revert "Fix error on FBX export after material changes"Bastien Montagne
This reverts commit ce4cfbe108d0641832d86a731ea32f596220b7c5. Obviously wrong 'fix', please do not touch other dev’s code, especially in active/WIP area, when you do not fully understand it.
2018-10-17Fix error on FBX export after material changesDalai Felinto
Update the addons repository as well.
2018-10-16node_shader_utils: fix bad setting of use_nodes in readonly case.Bastien Montagne
Also added access to extension property in texture wrapper.
2018-10-13node_shader_utils: several fixes, improvements and cleanups.Bastien Montagne
Fix broken behavior in case of texcoords mapping (we do need texcoords node in all cases, then, even for UV coords...). Use nodes by default when generating new write-allowed wrapper around a material. Do not try to find nodes in existing tree all the time, do it only once, even for lazy-initialized nodes (through accessors). Fix ugly spacing in property accessors (since it looks like some people do not like a single 'block' with both getters, setters and prop definition, at least use one sep line everywhere (and two sep lines to separate properties)...
2018-10-12Python: change node_shader_utils diffuse RGBA to base_color RGB.Brecht Van Lommel
Best to give its actual name so it's clear that the Principled BSDF does not have a diffuse color exactly, and does not have an alpha component. Also image textures use UVs by default, so avoid creating a texture coordinate node for that.
2018-10-10Python API: add loop triangles access, remove tessfaces.Brecht Van Lommel
Loop triangles are tessellated triangles create from polygons, for renderers or exporters that need to match Blender's polygon tesselation exactly. These are a read-only runtime cache. Tessfaces are a legacy data structure from before Blender supported n-gons, and were already mostly removed from the C code. Details on porting code to loop triangles is in the release notes. Differential Revision: https://developer.blender.org/D3539
2018-10-05UI: rename Border Select -> Box SelectCampbell Barton
See: T56648
2018-10-03Keymap: expose tool keymaps in the preferencesCampbell Barton
Currently some modes share tool keymaps, we might want to disable this since it's confusing editing one thing in multiple places. However this should be resolved in the tool definitions.
2018-10-01Cleanup: use tuple unpackingCampbell Barton
2018-10-01Cleanup: pep8, unused importCampbell Barton
2018-09-30io_utils: remove `orientation_helper_factory`.Bastien Montagne
Now we only use orientation_helper decorator.
2018-09-28Python IO: Initial nodal shader support for import AND export.Bastien Montagne
That new bpy_extras' node_shader_utils module is remotely based on existing addons' cycles_shader_compat module. It has some key differences though: - It is based on Principled shader, instead of the noodle combination of half a dozen simpler shaders. - It does not do any value conversion (like e.g. clamping, which was only suited for FBX). Any conversion/adaptation is to be done by each IO add-on. - It extensively uses accessors to offer: - Easy read/write of values, hiding all the hairy noodly nodes (principled shader helps a lot here). - lazy creation of most nodes on accessing (when generating a material), which avoids getting unused nodes in final shader. - We only use Principled BSDF so far though, which means some features supported by previous system are not yet implemented in new one. Note that, even though we support 'exporting' side of things, this will only work for a very specific (and basic) kind of shader. This will have to be clearly explained in end-user documentation. Also, that code has had some basic testing, but most certainly needs a lot more refinement. As proof-of-concept, OBJ IO script will be updated to use that new system after that commit.
2018-09-21Py io_utils: deprecate `orientation_helper_factory` and add new ↵Bastien Montagne
`orientation_helper` decorator. This fixes warning about not using annotations, and a decorator here is a much cleaner solution anyway.
2018-09-12Fix T56766: Bake Action Visual Keying Not Working.Bastien Montagne
Consequences of new requirement to use named keywords parameters for our RNA API... Hopefully fixed all other cases in that file as well, but guess we'll find more of those in comming weeks. :|
2018-09-10Fix object_utils.py's matrix multiplication (use new @ syntax).Bastien Montagne
2018-09-10Fix image_utils.py's load_image() helper.Bastien Montagne
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-08-12PyAPI: update scripts for matrix multiply operatorCampbell Barton
Operators: - add torus - align objects - bake physics - make dupli faces - smart project Templates: - 3D view ray cast Other: - Methods for bones/edit-bones
2018-08-01Merge branch 'blender2.8' into soc-2018-bevelBastien Montagne
Conflicts: release/scripts/addons release/scripts/startup/bl_ui/space_view3d_toolbar.py source/blender/editors/space_outliner/outliner_draw.c
2018-07-31New Grease Pencil object for 2D animationAntonioya
This commit merge the full development done in greasepencil-object branch and include mainly the following features. - New grease pencil object. - New drawing engine. - New grease pencil modes Draw/Sculpt/Edit and Weight Paint. - New brushes for grease pencil. - New modifiers for grease pencil. - New shaders FX. - New material system (replace old palettes and colors). - Split of annotations (old grease pencil) and new grease pencil object. - UI adapted to blender 2.8. You can get more info here: https://code.blender.org/2017/12/drawing-2d-animation-in-blender-2-8/ https://code.blender.org/2018/07/grease-pencil-status-update/ This is the result of nearly two years of development and I want thanks firstly the other members of the grease pencil team: Daniel M. Lara, Matias Mendiola and Joshua Leung for their support, ideas and to keep working in the project all the time, without them this project had been impossible. Also, I want thanks other Blender developers for their help, advices and to be there always to help me, and specially to Clément Foucault, Dalai Felinto, Pablo Vázquez and Campbell Barton.
2018-07-24Fix incorrect active object setting in scripts.Brecht Van Lommel
2018-07-21Merge branch 'blender2.8' into soc-2018-bevelRohan Rathi
2018-07-14Keymap: reduce right shift in generated keymapsCampbell Barton