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
2017-03-06Merge branch 'master' into blender2.8Julian Eisel
Conflicts: source/blender/editors/space_nla/nla_draw.c source/blender/editors/space_view3d/view3d_draw.c
2017-03-05BLI_rect: add init from point functionsCampbell Barton
Initialize a rectangle from point+size.
2017-03-02Merge branch 'master' into blender2.8Julian Eisel
Conflicts: source/blender/blenkernel/intern/scene.c
2017-03-02Remove all instance of OBACT from particle_edit.c and related changesDalai Felinto
2017-03-02Remove tons of OBACTDalai Felinto
There are now only referenced in: * drawobject.c * particle_edit.c * space_image.c (a single case to be handled on workspace branch) * rigidbody_constraint.c (to be handled in the following commit)
2017-03-02Fix duplicated 'Accurate' property for manipulator keymap itemJulian Eisel
Is already added through Transform_Properties
2017-03-02Fix another part of T50565: Planar constraints were always initialized to ↵Sergey Sharybin
accurate transform Now it is defined by keymap.
2017-03-02Fix second part T50565: Using planar transform once makes it enabled by defaultSergey Sharybin
Was caused by property being saved by the operator manager.
2017-03-02Edit Mode overlay: fast navigateClément Foucault
2017-02-26OpenGL: replace gluProject and gluUnProject, and simplify surrounding code.Brecht Van Lommel
Part of T49042.
2017-02-23Merge branch 'master' into blender2.8Bastien Montagne
2017-02-19Fix T50564: 3D view panning with scroll wheel inconsistent with dragging.Brecht Van Lommel
2017-02-07Partial "fix" for objects not being selectedDalai Felinto
To bring this fix a step further we need to address all the BA_WAS_SEL instances, and make sure they follow the new design. This commit allow you to see the object selected (its center anyways) when you do select all. Note: in the clay engine selection (a) was already working fine.
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-12-283D View roll & orbit were scaling view-quat lengthCampbell Barton
Over time roll and orbit would scale the quaternion which is documented as unit length. In practice any errors would be subtle, but better normalize as other operators do.
2016-12-17Cleanup: trackball logicCampbell Barton
Used SQRT2 and SQRT1_2 to calculate the same value, harmless but a little confusing, set once and check instead.
2016-12-16Make Shift+LMB on transform manipulator configurableJulian Eisel
It's now possible to change the shortcut that enables planar transformation with the transform manipulators (shift+LMB on axis). This actually fixes the workaround added in rB20681f49801fd. Thing is that we needed to allow using the manipulators, even if a modifier key is held so things like snapping work right away. That's why normal LMB behavior uses KM_ANY. However, event handling would always execute the KM_ANY keymap handler because it's iterated over first. Simply solved this by registering the KM_SHIFT keymap item first, so it has priority over the KM_ANY one.
2016-12-08Fix T49872: 3D cursor places with camera shift in ortographic modeJulian Eisel
2016-10-26Cleanup: rename functions in BLI_bitmap_draw_2dCampbell Barton
2016-10-26Cleanup: move bitmap drawing into its own moduleCampbell Barton
Bitmap drawing is out-of-scope for a general math API, move to BLI_bitmap_draw_2d.
2016-08-18NDOF: compile 3D mouse code only if WITH_INPUT_NDOFMike Erwin
When WITH_INPUT_NDOF is disabled, 3D mouse handling code is removed from: - GHOST (was mostly done, finished the job) - window manager - various editors - RNA - keymaps The input tab of user prefs does not show 3D mouse settings. Key map editor does not show NDOF mappings. DNA does not change. On my Mac the compiled binary is 42KB smaller after this change. It runs fine WITH_INPUT_NDOF on or off.
2016-07-31Correction to 0f2ff52c0866Julian Eisel
This info is shown while dragging, so should stay where it was.
2016-07-31Enable Undo for "Add background Image"Julian Eisel
Enabled the Undo option for the operation "Add background Image". This is to treat adding a background image like opening an image. This behavior is useful when a background image is add using 'drag and drop'. Reviewers: Severin Reviewed By: Severin Subscribers: brecht Tags: #bf_blender Maniphest Tasks: T47050 Differential Revision: https://developer.blender.org/D1725
2016-07-13Vertex/Weight Paint: Support view-selected on last-strokeCampbell Barton
D1875 by @lichtwerk
2016-07-07Cleanup: spelling, styleCampbell Barton
2016-07-06Replace of (id->lib != NULL) check by meaningful macro.Bastien Montagne
Idea is to replace hard-to-track (id->lib != NULL) 'is linked datablock' check everywhere in Blender by a macro doing the same thing. This will allow to easily spot those checks in future, and more importantly, to easily change it (see work done in asset-engine branch). Note: did not touch to readfile.c, since there most of the time 'id->lib' check actually concerns the pointer, and not a check whether ID is linked or not. Will have a closer look at it later. Reviewers: campbellbarton, brecht, sergey Differential Revision: https://developer.blender.org/D2082
2016-07-05Render border: don't disable when drawing around the entire camera.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D712
2016-06-18Cleanup: style, whitespace, doxy filepathsCampbell Barton
2016-06-08Cleanup: typoCampbell Barton
2016-05-22Make Shift-Z in viewprot a toggle between current shading mode and rendered oneSergey Sharybin
This way it is now possible to toggle between material and rendered shading while previously rendered viewport will always go back to solid shading.
2016-05-09View selected support for grease-pencilCampbell Barton
2016-05-05Correct error in recent smoothview editsCampbell Barton
2016-05-04View3D: apply smoothview before modal view operationsCampbell Barton
2016-05-04Cleanup: rename ED_view3d_smooth_view_finish (to force_finish)Campbell Barton
2016-05-03Fix T48340: Smooth view cancels previous view actionCampbell Barton
Previously users needed to wait for view orbit to finished, so quickly pressing keys would gave different result.
2016-04-22Transform Snap: initial snap context refactorCampbell Barton
This introduces a snap-context that can be re-used for casting rays into the scene (by operators such as walk-mode, ruler and transform code). This can be used to cache data between calls too.
2016-03-25Revert "Fix T47263: numpad4/6 rotates around worl Z axis and not view Y axis."Bastien Montagne
This reverts commit fe0ca82b232dcab29030c4a20b8bd1b033d1d346. This is a design issue, needs more thinking, for now just revert back to old behavior.
2016-02-07Cleanup: line widthCampbell Barton
2016-02-01UI: minor tweaks to view orbit shortcuts showCampbell Barton
2016-01-30Fix T47263: numpad4/6 rotates around worl Z axis and not view Y axis.Bastien Montagne
Those two were the only one rotating around some world axis (turntable mode), so better make their behavior consistent with other rotating numpad keys. This breaks the turntable-rotation with numpad keys, though.
2016-01-12Fix T47164: [Scene.raycast] - True result when it should be False.Bastien Montagne
We cannot use FLT_MAX as initi distance for raycast... Renamed TRANSFORM_DIST_MAX_RAY to BVH_RAYCAST_DIST_MAX, moved it into BLI_kdopbvh, and use in RNA raycast callbacks (and all other places using that API).
2015-12-31Fix T47089: View rotate fails w/ auto depth+perspectiveCampbell Barton
2015-12-28Cleanup: style, indentationCampbell Barton
2015-12-26CleanupCampbell Barton
2015-12-22View3D: Rotate around selected support for view-rollCampbell Barton
2015-12-22Fix T31605: Nupad ignores Rotate around selectionCampbell Barton
Add support for smooth-view orbiting a point besides the view center.
2015-12-22Fix error orbiting out of camera + orbit-selectedCampbell Barton
Would use the wrong view center (that wasn't update from the camera).
2015-12-22View3D: use c99 compound literals for smoothview paramsCampbell Barton
Smooth-view functions took many arguments which were often NULL, now take struct instead.
2015-12-17Revert "3D Cursor: Add option to lock it in place to prevent accidental ↵Campbell Barton
modification" This reverts commit a791153ca5e6f87d50396e188a3664b579884161. Rather users get feedback on changing cursor-depth, instead of preventing 3d-cursor placement entirely.
2015-12-133D Cursor: Add option to lock it in place to prevent accidental modificationJoshua Leung
This option helps users protect themselves from accidentally changing the cursor location (and not being aware of this until it has already caused problems) when drawing using Grease Pencil (or with other tools where this is equally likely). It seems to occur most frequently when using a tablet. Currently, this only affects the use of the mouse to set the cursor, as this is where most accidental invocations occur. (I'm aware that this change may turn out to be quite contentious. Fortunately, it should be simple to just revert this commit in that case :)