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
2018-07-14Merge branch 'master' into blender2.8Campbell Barton
2018-07-14Keymap: option to export all keymapsCampbell Barton
Useful to store a snapshot of the current keymap state so changes to the default keymap are ignored. Also useful for testing keymap export works properly.
2018-07-11PyAPI: Use annotations for RNA definitionsCampbell Barton
- Logical use of fields since they define type information. - Avoids using ordered-dict metaclass. Properties using regular assignments will print a warning and load, however the order is undefined.
2018-07-07Correct recent keymap change, writing all keymapsCampbell Barton
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-07Merge branch 'master' into blender2.8Campbell Barton
2018-07-07Cleanup: isinstance can take multiple typesCampbell Barton
2018-07-05Shaders: add target setting to material output node.Brecht Van Lommel
This makes it possible to have a single shading nodetree that contains separate Cycles and Eevee shaders. By default the target is set to All so shaders are shared.
2018-07-03Cleanup: pep8Campbell Barton
2018-07-03Merge branch 'master' into blender2.8Campbell Barton
2018-07-03Cleanup: pep8Campbell Barton
2018-05-25Applied soc-2017-normal-toolsRohan Rathi
2018-05-053D Viewport: make shading and overlay DNA match UI names.Brecht Van Lommel
We should use consistent naming between the internal code and UI whenever possible, only reason not to is file compatibility.
2018-04-17Remove Shift+F2 and other related BGE keymapsDalai Felinto
Reported by Pablo Vazquez (venomgfx)
2018-04-05Remove workspace object mode, reverts changes w/ 2.8Campbell Barton
This caused too many problems syncing object modes with multiple objects/windows/workspaces, see: D3130 for details.
2018-02-08Object Mode: move to workspace structCampbell Barton
- Read-only access can often use EvaluationContext.object_mode - Write access to go to WorkSpace.object_mode. - Some TODO's remain (marked as "TODO/OBMODE") - Add-ons will need updating (context.active_object.mode -> context.workspace.object_mode) - There will be small/medium issues that still need resolving this does work on a basic level though. See D3037
2017-12-20Merge branch 'master' into blender2.8Campbell Barton
2017-12-19bpy_extras: add missing colorband keymap to keyconfig_utils.pyRay Molenkamp
fixes failing ctest script_load_keymap
2017-11-29Merge branch 'master' into blender2.8Campbell Barton
2017-11-29Cleanup: Python importsCampbell Barton
Split over lines to diff more easily.
2017-11-23Rename any instance of scene layer or render layer in code with view layerDalai Felinto
The RenderResult struct still has a listbase of RenderLayer, but that's ok since this is strictly for rendering. * Subversion bump (to 2.80.2) * DNA low level doversion (renames) - only for .blend created since 2.80 started Note: We can't use DNA_struct_elem_find or get file version in init_structDNA, so we are manually iterating over the array of the SDNA elements instead. Note 2: This doversion change with renames can be reverted in a few months. But so far it's required for 2.8 files created between October 2016 and now. Reviewers: campbellbarton, sergey Differential Revision: https://developer.blender.org/D2927
2017-11-20Merge branch 'master' into blender2.8Campbell Barton
2017-11-19Bake Action operator: Added missing Bendy Bones supportJoshua Leung
2017-09-14Merge branch 'master' into blender2.8Sergey Sharybin
2017-09-14Recent action-bake used Py3.6 syntaxCampbell Barton
2017-09-11Merge branch 'master' into blender2.8Campbell Barton
2017-09-10Bake Action: operate on selected objectsCampbell Barton
Previously only the active object was used. Use coroutines to support baking frames for multiple objects at once, without having to playback the animation multiple times.
2017-09-10PyAPI: Add object argument to bake_actionCampbell Barton
Avoids having to set the scene's active object first.
2017-08-01Render: make Cycles and Evee support each other's output material nodes.Brecht Van Lommel
This changes the Cycles exporting and Cycles/Eevee UI code to support both output material nodes, giving priority to the renderer native one. Still missing is Eevee code to prefer the Eevee output node.
2017-05-30Bpy Extras: Port cycles node functions to new node_utils.pyClément Foucault
2017-05-19Fix crash when adding Torus in edit modeDalai Felinto
2017-04-09Merge branch 'master' into blender2.8Campbell Barton
2017-04-08Add helpers in bpy_extras.keyconfig_utils for addons to (un)register their ↵Bastien Montagne
keymaps. Doing this in a fully 'clean' way is far from obvious, especially unregister, you often end up leaving nasty 'orphanned' keymap items referring to unregistered operators...
2017-02-24Fix T50714: Collections: Adding object to scene without an existing collectionDalai Felinto
This was causing blender to segfault. We now add create a new collection and link to the layer before adding the new object (also included unittests, and requires updated lib/tests)
2017-02-07Render Layers and Collections (merge from render-layers)Dalai Felinto
Design Documents ---------------- * https://wiki.blender.org/index.php/Dev:2.8/Source/Layers * https://wiki.blender.org/index.php/Dev:2.8/Source/DataDesignRevised User Commit Log --------------- * New Layer and Collection system to replace render layers and viewport layers. * A layer is a set of collections of objects (and their drawing options) required for specific tasks. * A collection is a set of objects, equivalent of the old layers in Blender. A collection can be shared across multiple layers. * All Scenes have a master collection that all other collections are children of. * New collection "context" tab (in Properties Editor) * New temporary viewport "collections" panel to control per-collection visibility Missing User Features --------------------- * Collection "Filter" Option to add objects based on their names * Collection Manager operators The existing buttons are placeholders * Collection Manager drawing The editor main region is empty * Collection Override * Per-Collection engine settings This will come as a separate commit, as part of the clay-engine branch Dev Commit Log -------------- * New DNA file (DNA_layer_types.h) with the new structs We are replacing Base by a new extended Base while keeping it backward compatible with some legacy settings (i.e., lay, flag_legacy). Renamed all Base to BaseLegacy to make it clear the areas of code that still need to be converted Note: manual changes were required on - deg_builder_nodes.h, rna_object.c, KX_Light.cpp * Unittesting for main syncronization requirements - read, write, add/copy/remove objects, copy scene, collection link/unlinking, context) * New Editor: Collection Manager Based on patch by Julian Eisel This is extracted from the layer-manager branch. With the following changes: - Renamed references of layer manager to collections manager - I doesn't include the editors/space_collections/ draw and util files - The drawing code itself will be implemented separately by Julian * Base / Object: A little note about them. Original Blender code would try to keep them in sync through the code, juggling flags back and forth. This will now be handled by Depsgraph, keeping Object and Bases more separated throughout the non-rendering code. Scene.base is being cleared in doversion, and the old viewport drawing code was poorly converted to use the new bases while the new viewport code doesn't get merged and replace the old one. Python API Changes ------------------ ``` - scene.layers + # no longer exists - scene.objects + scene.scene_layers.active.objects - scene.objects.active + scene.render_layers.active.objects.active - bpy.context.scene.objects.link() + bpy.context.scene_collection.objects.link() - bpy_extras.object_utils.object_data_add(context, obdata, operator=None, use_active_layer=True, name=None) + bpy_extras.object_utils.object_data_add(context, obdata, operator=None, name=None) - bpy.context.object.select + bpy.context.object.select = True + bpy.context.object.select = False + bpy.context.object.select_get() + bpy.context.object.select_set(action='SELECT') + bpy.context.object.select_set(action='DESELECT') -AddObjectHelper.layers + # no longer exists ```
2016-11-18Fix UV layer bug in object_utils.object_data_add()Campbell Barton
Adding a torus in edit-mode, with 'Generate UVs' for example would either create another UV layer with the default name or switch to the default UV layer name if it exists. Now use the existing UV layer if present.
2016-10-27Fix T49743: Adding torus in edit mode local mode shows errorBastien Montagne
The 'local' layers were not correctly set when redoing 'add object' addons using object_utils.py helper (we always want to restore layers from view in local view, even if we set 'real' layers from operator afterwards).
2016-10-11Fix objects added via py being on the wrong layer when viewport is decoupled ↵Sergey Sharybin
from scene
2016-10-03Fix missing new eyedropper keymap entry in keyconfig_utils.pyBastien Montagne
Missing from rBe9bcdcdbbd91d9.
2016-09-21UI: Make eyedropper shortcut configurableJulian Eisel
It's now possible to change the shortcut for invoking the eyedropper while hovering a button (E by default). Also removed the keymap editor entry for the modal eyedropper keymap, it's now automatically appended to the eyedropper shortcut.
2016-09-16Fix T49349: Baking action doesnt bake multiple objects.Bastien Montagne
Tooltip was wrong here, it can only bake a single (active) object, 'only selected' option is for pose bones only...
2016-07-30Cleanup: pep8Campbell Barton
2016-07-24Fix T48397: Can not bake tweaked NLAKévin Dietrich
We need to leave tweak mode before trying to modifiy the action as doing so will leave Blender in a semi-corrupted state. Reviewers: #animation Reviewed by: aligorith Maniphest Tasks: T48397 Differential Revision: https://developer.blender.org/D2119
2016-06-15Fix region_2d_to_origin_3d not working with ortho viewDalai Felinto
In some cases when: * the viewport was in the camera mode * the camera was ortho * the view was not fitting (as oppose to use HOME) region_2d_to_origin_3d would misbehave (and consequently region_2d_to_location_3d). Sample addon to test it: ``` import bpy from bpy_extras.view3d_utils import ( region_2d_to_location_3d, ) from mathutils import ( Vector, ) class MoveXYOperator(bpy.types.Operator): """Translate the view using mouse events""" bl_idname = "view3d.move_xy" bl_label = "Move XY" @classmethod def poll(cls, context): return context.object def modal(self, context, event): if event.type == 'MOUSEMOVE': self.move(context, event) elif event.type in {'LEFTMOUSE', 'RIGHTMOUSE', 'ESC'}: return {'FINISHED'} return {'RUNNING_MODAL'} def invoke(self, context, event): if context.space_data.type == 'VIEW_3D': self.ob = context.object context.window_manager.modal_handler_add(self) return {'RUNNING_MODAL'} else: self.report({'WARNING'}, "Active space must be a View3d") return {'CANCELLED'} def move(self, context, event): xy = region_2d_to_location_3d( context.region, context.space_data.region_3d, (event.mouse_region_x, event.mouse_region_y), Vector(), ).xy self.ob.location.xy = xy def register(): bpy.utils.register_class(MoveXYOperator) def unregister(): bpy.utils.unregister_class(MoveXYOperator) if __name__ == "__main__": register() ```
2016-06-13Keymap: include 'Dopesheet Generic'Campbell Barton
2016-03-29Fix T47986: OBJ Import fails w/ imagepath encodingCampbell Barton
2016-02-29User customizable keymap for eyedropper (modal operator)Julian Eisel
2016-02-29Add User Interface keymap (no items yet)Julian Eisel
Needed to allow modal UI keymaps, but I'm sure we'll need this more often in future. First item will be modal eyedropper keymap coming in a following commit.
2016-02-08Fix T47360: Image loading fails when accessible from the CWDCampbell Barton
2016-01-31Cleanup: pep8Campbell Barton