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-03-05Fix T62163: Duplicating particle system results in crashJacques Lucke
There were two problems: 1. `mesh_get_eval_final` has to be called with the evaluated object. 2. Particle systems have to have unique names within an object. The depsgraph seems to use the particle system name as identifier. This issue is actually independent of duplication. The old code used a small hack to create unique names. Reviewers: brecht Differential Revision: https://developer.blender.org/D4451
2019-03-05Fix parenting objects to bones/vertices causes offsetPhilipp Oeser
This reverts part of rBbc5482337669. Problem with above commit is that the evaluated object seems to not have partype, par1, par2, par3 copied from the original (yet). Using original object instead now. Second issue (when parenting to 'Bone Relative') is that the bones BONE_RELATIVE_PARENTING flag is set on the original, but not the evaluated bone (yet), setting this on both now. Fixes T60623 (and part of T59352) Reviewers: brecht, sergey Maniphest Tasks: T60623 Differential Revision: https://developer.blender.org/D4309
2019-03-04Preferences: Add option to disable edit-mode wire AntialiasingClément Foucault
Requested by some users who prefer old wireframe precision. Smooth wires are still enabled by defaults as they don't have a noticeable perf impact. Application restart is needed for changes to take effects.
2019-03-04GPencil: Move Object Depth Order to ObjectAntonioya
There was a conflict between Object "In Front" and how the strokes were managed in Stroke panel for grease pencil datablock. In order to keep consistency, the order of the object has been moved to Object level and now it's using the standard "In Front" flag. As all it is 3D, the option "Back" has been removed. This also fixes the problem with task T62137. Also related to commit 54ffc4e19dc4 and D4405
2019-03-04Fix T62175: Crash on Undo.Bastien Montagne
Again nodetree broken code... as usual...
2019-03-04Fix T62134: duplicating a material won't update node group's node tree user ↵Bastien Montagne
count anymore. Yet again we have to twist and curl like insane worms to cope with IDs-not-in-main infamous issue... :(
2019-03-04Show metadata for rendered imagesSergey Sharybin
Previously metadata was only shown for images which are saved to disk. This change makes it so that it's possible to see metadata right after pressing F12.
2019-03-03Fix (unreported) missing handling of 'never self' ID pointers in ↵Bastien Montagne
library_query and library_remap codes. Looks like something forgotten at some point, define in callback flags was there, just not used at all. Added most obvious cases now (we are probably still missing some), and proper handling for it in remapping code (when we hit such case, we 'convert' new_id to NULL and go on with it). Related (as in, exposed by) T62076, but not the actual cause of that bug.
2019-03-03DNA: rename BezTriple alfa to tiltCampbell Barton
2019-03-03Refactor duplicate code for collections.Bastien Montagne
* Fix incorrect handling of children collections being linked more than once in the hierarchy (previous code would make a new copy for each link, instead of just re-linking the first copy for each extra link). * Simplify some aspects of it (we do not need a GHash for new objects, we can use ID->newid pointer instead, and some iterations can be done directly on existing linked lists of old collection, instead of making temp local copies of them). * Move all copy logic into a single private recursive function (it was a bit odd/disturbing to see calling function being indirectly called again by the recursive helper one - not wrong, but that kind of code path can quickly become problematic in recursive patterns). * Added some comments about expected behavior of `BKE_collection_duplicate()` depending on its booleans options.
2019-03-02GPencil: Initialize Fill alpha to 1.0 by default for new materialsAntonioya
2019-03-02Fix T62098: Outliner: Delete hierarchy crash.Bastien Montagne
Stupid mistake in own logic would prevent first deleted ID to be properly unlinked from rest of .blend file before its deletion...
2019-03-01Outliner: Collection - Duplicate Hierarchy, and Duplicate Linked HierarchyDalai Felinto
As per the suggestion on T57064, this introduces two new options to duplicate collections. We then have: * Duplicate > Collection (New collection with linked content). * Duplicate > Hierachy (Duplicate entire hierarchy and make all contents single user). * Duplicate > Linked Hierarchy (Duplicate entire hierarchy keeping content linked with original). Development TODO: `single_object_users` can/should use the new functions. Reviewers: brecht, mont29 Subscribers: pablovazquez, billreynish, JulienKaspar Differential Revision: https://developer.blender.org/D4394
2019-03-01Cleanup: Update commentDalai Felinto
2019-03-01Cleanup: Set BKE_key_from_object/_p to take const Object *Dalai Felinto
2019-03-01Fix T62015: Duplicating object, rotating, pivot point not usedSergey Sharybin
Was caused by another fix in the area, and root to the wrong though that transformation is only initialized from a fully evaluated dependency graph. The latter one is not a case when changing transformation mode. Solved by copying transform to an evaluated object.
2019-03-01Cleanup: Use const for static number.Campbell Barton
Also use double indent instead of mixed tab/spaces.
2019-02-28Cleanup/refactor clnor code: add high-level helpers to set custom normals.Bastien Montagne
Now it will be simpler for code jsut wanting to preserve custom normals around to set them, without having to add same boiler plate code all the time around actual code.
2019-02-28CustomData: add function to clear layers' flags.Bastien Montagne
We only had one to set those flags, up til now...
2019-02-28Fix T60366: texture paint slots not updating when editing material.Brecht Van Lommel
Now always refresh when the material changes. Depsgraph tag moved out of the refresh function since that gets called on depsgraph update, which should not trigger a second depsgraph update.
2019-02-28GPencil: Remove dummy marker for Grease Pencil objectsAntonioya
After adding selecction using strokes, the dummy is not required because it was added as a provisional solution while we implement stroke selection.
2019-02-28Revert "Objects: Remove Textured from object display type"Clément Foucault
This reverts commit 6a4a984ff731070d0702821fe1e67dea40e593b9.
2019-02-28Split base flags on own and collection-definedSergey Sharybin
This allows to update base flags to a proper state then object's restriction flags are changed, without requiring to re-evaluate an entire tree of flags. Some old unused flags are were removed by this change, and also disabling menu items might not work the same as before. This is something we can bring back if it's really needed (the way how flags are handled did change since that interface code was done anyway, so code was looking weird anyway). Reviewers: brecht Differential Revision: https://developer.blender.org/D4420
2019-02-28Remove unused base flagSergey Sharybin
Was only set and read from a single location. Removing to keep things more manageable.
2019-02-28Depsgraph: Keep objects which has animated visibilitySergey Sharybin
This allows dependency graph to evaluate drivers of those objects and put them to a correct state. It will increase memory usage since now we can no longer save it by skipping copy-on-write for such objects. It will also currently make things slower, because we do not have granular enough visibility update of components in the dependency graph. Can do it later when the rest of the changes are finished. This commit does not update restriction flags on the base, since that is somewhat tricky to do currently: need to somehow see whether object is disabled due to flags on collection or due to own flags. Differential Revision: https://developer.blender.org/D4419
2019-02-28Objects: Remove Textured from object display typeClément Foucault
As discussed with @billreynish this makes little sense now that we don't have a dedicated textured mode. We don't have a superior texture or shaded mode anymore and we also cannot mix different engines together (workbench with eevee/lookdev). The only feature it removes is the possibility to hide textures for certain object in solid mode.
2019-02-28UI: rename Quit Prompt to Save PromptCampbell Barton
Eventually this should be used to prompt when loading a new file too.
2019-02-27Cleanup: better names and comments for library ID linking code.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D4415
2019-02-27Cleanup: remove redundant property assignmentCampbell Barton
Also cleanup comments
2019-02-27Move base flags evaluation to its own functionSergey Sharybin
No need to have iterator loop in the view layer evaluation, this only makes it more difficult to have base flags covered by the dependency graph. Other good thing is that we don't need to worry about whether base has been removed from the evaluated view layer or not. Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D4414
2019-02-27Fix typos related to unitsVaishnav S
2019-02-27Cleanup: header guard namesCampbell Barton
Missed in file rename.
2019-02-27Cleanup: remove unused Material.pr_lightCampbell Barton
Also no need for 14 bytes of padding.
2019-02-27Cleanup: file rename lamp -> lightCampbell Barton
2019-02-27Cleanup: rename lamp -> lightCampbell Barton
2019-02-27Cleanup: Main struct member namesCampbell Barton
Rename latt to lattice and don't use plural names.
2019-02-27DNA: rename Lamp -> LightCampbell Barton
- BKE_lamp -> BKE_light - Main.lamp -> light
2019-02-26GP: Draw: Stroke TrimCharlie Jolly
New edit mode operator and post-processing brush option. Trim works on a single GP stroke. It removes trailing points before and after the first intersection (or loop) nearest to the start of the stroke.
2019-02-26Cleanup: Spelling in commentSergey Sharybin
2019-02-26Cleanup: indentation, trailing spaceCampbell Barton
2019-02-25Merge branch 'blender2.7'Brecht Van Lommel
2019-02-25Fix T61946: Cycles border render missing samples and crypto metadata.Brecht Van Lommel
2019-02-253D View: support for editing cursor rotationCampbell Barton
Add buttons for editing the cursor rotation as well as rotation modes, similar to object and pose bones.
2019-02-25Units: Typo "Square/Cubic Thous" -> "Square/Cubic Thou"Vaishnav S
2019-02-23Revert "Glyph cache is cleared by UI_view2d_zoom_cache_reset, when zooming ↵Richard Antalik
V2D, but is required to calculate text height in UI_view2d_text_cache_draw" Accidentaly committed unwanted changes. This reverts commit 6bcdcc96c2548e0ee5e18acc37915aedee6329e0.
2019-02-23Glyph cache is cleared by UI_view2d_zoom_cache_reset, when zooming V2D, but ↵Richard Antalik
is required to calculate text height in UI_view2d_text_cache_draw This caused text in strips to "jump around" There was a comment in UI_view2d_zoom_cache_reset: While scaling we can accumulate fonts at many sizes (~20 or so). Not an issue with embedded font, but can use over 500Mb with i18n ones! See [#38244]. Reviewed by: Brecht Differential revision: https://developer.blender.org/D4389
2019-02-23Cleanup: quiet undeclared variable warningsCampbell Barton
2019-02-23Cleanup: move variable declarations to headersCampbell Barton
Quiet undeclared variable warning.
2019-02-22Multires: Support smooth shading when sculptingSergey Sharybin
On CCG side it is done similar to displacement, where we have a dedicated functor which evaluates displacement. Might be seemed as an overkill, but allows to decouple SubdivCCG from mesh entirely, and maybe even free up coarse mesh in order to save some memory. Some weak-looking aspect is the call to update normals from the draw manager. Ideally, the manager will only draw what is already evaluated. But it's a bit tricky to find a best place for this since we avoid dependency graph updates during sculpt as much as possible. The new code mimics the old code, this is how it was in 2.7. Fix shading part of T58307.
2019-02-22Fix T61788: Hidden objects reappear after renderingDalai Felinto
The change in outliner and viewport visibility (897e047374fa) was made assuming the bases of the render and viewport depsgraph were independent. Thus we were deliberately setting base visibility when rendering: ``` /* When rendering, visibility is controlled by the enable/disable option. */ if (mode == DAG_EVAL_RENDER) { base->flag |= BASE_VISIBLE; } ``` However, we were syncing data back to the original depsgraph, leading to hidden viewport objects to re-appear. Reviewers: sergey Differential Revision: https://developer.blender.org/D4391