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-04-02Cleanup: Scene Copy: remove scene's camera remapping in core func.Bastien Montagne
This is useless at that point, since no object has been duplicated yet...
2019-04-02Fix T62970: Scene Copy: remove 'linked objects/obdata', add 'linked ↵Bastien Montagne
collections'. 'Linked objects' option was not behaving correctly before, effectively linking in collections, so this one has been renamed to just 'Linked Copy', and gives a fully shallow copy of current scene. 'Linked Obdata' was not really useful, kind of confusing, and was painful to maintain, so dropping it now.
2019-04-02Cleanup: remove DNA_PRIVATE_WORKSPACE hacks.Brecht Van Lommel
This is just not practical to do for the code as a whole, and having it as an exception for one specific data structure is not that helpful. This has only been in the way for me when refactoring code.
2019-04-02Cleanup: empty expression statement warningCampbell Barton
2019-04-01Tweak behavior of object.to_mesh()Sergey Sharybin
- Passing original object with apply_modifiers=false will give a non-modified non-deformed mesh. The result mesh will point to datablocks from the original "domain". For example, materials will be original. - Passing original object with apply_modifiers=true will give a mesh which has all modifiers applied. The result mesh will point to datablocks from the original "domain". For example, materials will be original. - Passing evaluated object will ignore apply_modifiers argument, and the result always contains all modifiers applied. The result mesh will point to an evaluated datablocks. For example, materials will be an evaluated IDs from the dependency graph. Fixes T62916: Applying boolean modifier does not set material properly Differential Revision: https://developer.blender.org/D4604
2019-04-01Modifiers: Proper fix for the Apply ModifierSergey Sharybin
It is up to the operator to pass valid object to the modifiers evaluation. Fixes T62916: Applying boolean modifier does not set materials properly
2019-03-31Fix: Buffer overflow in StudioLightRay Molenkamp
sl->light_ambient is a float[3], copy_v4_fl4 overwrites sl->free_function with a bogus pointer on 32 bit.
2019-03-30Cleanup: remove unused modifier methods.Brecht Van Lommel
2019-03-29Cleanup: styleCampbell Barton
2019-03-29Eevee: Material: Decouple transparent shadows from blend modeClément Foucault
This makes it easier to exclude a surface from casting shadows and can be used to manipulate the shadows even for opaque surfaces. Versionning ensure that old behavior is transfered to new rendering logic.
2019-03-29Fix T63042: Grease pencil and armature will sometimes copy successfully ↵Bastien Montagne
because of the put in Collection order, sometimes fail. Remove remapping to new IDs from `BKE_object_duplicate()` itself, doing it here will break later remapping done after all desired objects have been duplicated, preventing complete remap of ID pointers used in obdata and other sub-data of duplicated objects. Checked, the only two usages of this function were already doing separated later step for this anyway.
2019-03-29Cleanup: BKE_object_duplicate.Bastien Montagne
Comments, code consistency, remove disabled code...
2019-03-29Cleanup: Fix comment.Bastien Montagne
2019-03-29Fix T63075: edit mode crash with deforming modifiers, after recent changes.Brecht Van Lommel
2019-03-28UI: tweak display of report messages in the status bar.Nathan Craddock
Remove fading away the color, share theme colors with info editor. Differential Revision: https://developer.blender.org/D4197
2019-03-28Fix part of T60735: invalid CD_ORIGINDEX data in some modifier stack ↵Brecht Van Lommel
evaluations. BKE_mesh_new_nomain automatically added a CD_ORIGINDEX layer initialized to 0, which was never filled in correctly. In 2.7 the equivalent function used to modify the source derivedmesh and add valid original indices to it, but this is no longer possible in the new design and was quite unpredictable anyway. Now instead rely on mesh_calc_modifiers and the depsgraph to determine when CD_ORIGINDEX should be added.
2019-03-28Fix T60735: Cycles render hangs with vertex instancing.Brecht Van Lommel
This should not use the original index as a unique instance index, with for example an array modifier the same original index may be used multiple times.
2019-03-28Cleanup: better naming, comments, variable scoping in mesh_calc_modifiers.Brecht Van Lommel
2019-03-28Cleanup: remove unused derivedmesh code.Brecht Van Lommel
2019-03-28Fix T62944: Memory leak in animation playbackSergey Sharybin
Missing memory free in the early output of particles distribute initialization. Seems it was always there.
2019-03-26Fix T62952: remove lamp as camera using the lamp clip start/end.Brecht Van Lommel
Eevee and Cycles don't use these clipping distances the same as Blender Internal did, or at all in most cases. Just remove this since it makes no sense anymore.
2019-03-26Fix T62957: Camera frame returns zerosCampbell Barton
2019-03-263D View: move deselect all logic into an optionCampbell Barton
This removes `VIEW3D_OT_select_or_deselect_all`, adding a deselect_all option to the `VIEW3D_OT_select` operator. - Add utility functions to simplify de-selecting all. - Return true from selection functions when they change the selection to avoid redundant updates. - Use arrays of bases when passing objects between selection utility functions since some users require bases. - Fix logical error in box selection that updated all objects after the first hit.
2019-03-26Fix use of uninitialized variable in grease pencil materials.Brecht Van Lommel
2019-03-26Cleanup: styleCampbell Barton
2019-03-25Fix T62927: Assert when opening default 2.79 startup file in 2.80.Bastien Montagne
Not sure why that was asserted on instead of handling the flag properly, if base is not selectable, then just do not select it... Have the feeling this code handling sync of flags between bases and objects could use some cleanup, but that will be for another day.
2019-03-25GPencil: Only brushes with pinned materials have materialsAntonioya
Using GP_BRUSH_MATERIAL_PINNED to switch between active material and brush material, instead of updating all brushes on active material changes. This will allow brushes to have no material and therefore to not inflate the user count. This fix T62465. Patch contributed by @matc Reviewers: @brecht @antoniov @billreynish @mendio
2019-03-25Fix T62776: Face maps are initialized incorrectlyJacques Lucke
Reviewers: brecht Differential Revision: https://developer.blender.org/D4586
2019-03-25Fix T62865: Make Single User after Objects to Scene must be done twice.Bastien Montagne
Selected status was not properly moved from new object to new created base. This prevented next steps (making obdata, materials etc. local) to ever happen.
2019-03-25Fix T62891: particle even distribution is not even.Brecht Van Lommel
CD_ORCO coordinates are stored normalized by convention, this code path did not store them correctly.
2019-03-25Cleanup: Spelling in commentSergey Sharybin
2019-03-25Copy/Paste: refactor to be able to paste any kind of IDs, by type.Bastien Montagne
This commit does not add anything new from user perspective, but make it possible to paste any kind of IDs, not only objects/collections. Will be used by new copy/paste in the outliner in next commit.
2019-03-25Fix T62866: 3D text not filled by defaultAlex Strand
Regression in bc5b0f7a091c395526370 See D4581
2019-03-25Cleanup: styleCampbell Barton
2019-03-25Cleanup: style, array wrappingCampbell Barton
Add trailing comma for clang-format.
2019-03-24Fix T49979: HSV/HSL 'Far' interpolation in colorbands when both stops have ↵Bastien Montagne
same hue. When two stops had the exact same color, 'Far' interpolation would behave like the three others and generate constant colors, instead of generating expected 'full turn' in Hue space. Note that this will break the 'constant' color between two stops with same value in the 'Far' interpolation mode, but think that change is OK/expected. This fix also exposed that 'early out' case when we are after last stop was not working properly, still triggering actual interpolation computation in all cases, thus the refactor in `BKE_colorband_evaluate()` itself. We also now avoid computing factors in constant case, and get out early in all interpolation cases but the 'spline' ones (where color ramping can start before first stop, and end after last one). Work initiated by patch from Charlie Jolly (@charlie) in T49979, thanks. Reviewers: brecht, sergey Subscribers: charlie Differential Revision: https://developer.blender.org/D4556
2019-03-24Cleanup: redundant use of string formatting functionsCampbell Barton
2019-03-22Camera: change how the minimum near clip depth is setCampbell Barton
do_clip wasn't working for its intended purpose, replace with a simpler method.
2019-03-22RNA: Camera.view_frame no longer uses near clip for the camera frameCampbell Barton
Use the same values used for drawing.
2019-03-20Fix assert after recent changes.Brecht Van Lommel
Mark as localized immediately, so that functions that edit the node tree can verify they are being used under the correct conditions.
2019-03-20Cleanup: styleCampbell Barton
2019-03-20Fix T61759: Dynamic paint smudge crashSergey Sharybin
The issue was caused by mesh needed for dynamic paint brush being stored in the modifier. That make it to be freed and set to NULL when running copy-on-write. Solved by moving the mesh to be stored in modifier's runtime data.
2019-03-20Modifiers: Never copy runtime data pointerSergey Sharybin
2019-03-20Fix T62711: Incorrect motion path updateJacques Lucke
Reviewers: brecht Differential Revision: https://developer.blender.org/D4560
2019-03-20Fix BLI_path_frame_stripSybren A. Stüvel
The `BLI_path_frame_strip` function was completely broken, unless the number of digits in the sequence number was the same as the length of the extension. In other words, it would work fine for `file.0001.abc` (4 digit `0001` and 4 char `.abc`), but other combinations would truncate to the shortest (`file.001.abc` would become `file.###.ab` and `file.00001.a` would become `file.##.a`). The dependency between the sequence number and the file extension is now removed. The behaviour has changed a little bit in the case where there are no numbers in the filename. Previously, `path="filename.abc"` would result in `path="filename.abc"` and `ext=""`, but now it results in `path="filename"` and `ext=".abc"`. This way `ext` always contains the extension, and the behaviour is consistent regardless of whether there were any numbers found. Furthermore, I've removed the `bool set_frame_char` parameter, because it was unclear, probably also buggy, and most importantly, never used. I've also added a unit test for the `BLI_path_frame_strip` function.
2019-03-20Fix T60211: MemLeak Convert Curve To MeshJeroen Bakker
Ownership flag was not set, but was it was meanted to be. So the set runtime data to NULL disconnected the Mesh with no ownership.
2019-03-20Preferences: add threshold for cursor motionCampbell Barton
A hard coded threshold was used to ignore cursor motion, make this a preference since tablet users may want to increase it since a pen hovering isn't as easy to keep still as a mouse. Resolves T56278
2019-03-20Cleanup: use lowercase for dimensions in function namesCampbell Barton
Most API's already use this convention.
2019-03-20Fix T62736: Inconsistent behavior bpy.utils.user_resource()Philipp Oeser
If a subfolder was specified which didn't exist, logic would fallback to get_path_user (instead of get_path_environment). Now always use the from the environment variable if it's set and exists.
2019-03-19Cleanup: use BLI_kdtree_3d prefixCampbell Barton
Use prefix now there isn't only the 3d version.