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-06-09Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/editors/space_view3d/drawobject.c
2018-06-09Cleanup: remove some G.main usages.Bastien Montagne
2018-06-08Depsgraph: Remove no longer needed nodetree values copying on evalDalai Felinto
Note: Depsgraph still calls the nodetree eval function that doesn't nothing in turn. We can remove it, but it is harmless though.
2018-06-08Sculpt/Paint: move PBVH building to use evaluated mesh instead of deprecated ↵Bastien Montagne
Derivedmesh. Pretty straightforward changes, merely mimicking dm-related code, which was already essentially using either Mesh or BMesh data to build the PBVH... Note that we "lose" the subsurf (a.k.a. grid) PBVH case here, but that one was already dead code in current blender2.8, since final dm is always a cddm built from evaluated mesh. Proper fix is pending new code for subsurf/multires area.
2018-06-08DRW: Fix animated material not refreshingDalai Felinto
This introduces a garbage collection system similar to gpu_texture.
2018-06-08Fix crash with wertex and weight modesSergey Sharybin
Similar to recent sculpt mode.
2018-06-08Alembic: Moved a BLI_assertSybren A. Stüvel
The assert should only be triggered when assigning a pointer, and not simply when checking the pointer.
2018-06-08mesh_get_eval_final() should check ob->runtime.mesh_evalSybren A. Stüvel
It has nothing to do with ob->derivedFinal, which it checked before.
2018-06-08Add check in BKE_pbvh_apply_vertCos that number of deforming cos matches ↵Bastien Montagne
number of pbvh vertices. This shall help catching issues in future.
2018-06-08Alembic import: fixed memory management for CoW copies of CacheFile blocksSybren A. Stüvel
When a CacheFile datablock is copied to an in-main datablock, it means that the new copy should be independent of the old copy. In this case certain properties are reset/duplicated. When it is copied to a no-main datablock, we assume this is a copy-on-write copy that's used for evaluating things, in which case the handle and object paths are referenced instead of reset/ duplicated. This prevents us from re-opening the Alembic file every time a new CoW copy is made. The same approach is taken when freeing data (only when an in-main datablock is freed do we actually free the data).
2018-06-08Alembic import: assign cache_file handle to original datablockSybren A. Stüvel
2018-06-08Cleanup: getting rid of G.main.Bastien Montagne
Sometimes one needs a *lot* of changes for a single G.main... :/
2018-06-08Studiolight: Segment when using float based matcapsJeroen Bakker
2018-06-08Workbench: UI for custom studio lights/matcapsJeroen Bakker
- all known image types are supported - BpyAPI for studiolights added - added open user pref operator in shading menu - possible to add multiple files in a single run For now refreshing studio lights will free all studiolights and reinit the whole mechanism. This can be improved by only freeing deleted, reset updated and add new custom studiolights. details to show currently only shows the path we perhaps want to add other information also
2018-06-07Don't tag UBO as dirty anymore otherwise it still crashes on renderDalai Felinto
2018-06-07BKE_world_eval: cleanupDalai Felinto
2018-06-07Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/editors/sculpt_paint/paint_vertex.c source/blender/editors/sculpt_paint/sculpt.c source/blender/editors/sculpt_paint/sculpt_undo.c
2018-06-07Cleanup: typo, and 0 -> false for booleans.Bastien Montagne
2018-06-07Fix T55126: COW problem: there is an active object even if unselectableSergey Sharybin
2018-06-07Depsgraph: Ensure collections are up to date after modificationsSergey Sharybin
Before that copied collection in copy-on-write were running out of sync with original ones. This was causing crash with the following scenario: - Delete some objects from scene - Add particle system to an object - Change particle mode to Hair Thanks Dalai for debug session! Pair programming ftw!
2018-06-07Merge branch 'master' into blender2.8Campbell Barton
2018-06-07Fix sculpt assert on initializationCampbell Barton
2018-06-07Particle mode: Support children drawingSergey Sharybin
The issue is that children drawing is done by object mode, which operates with data from evaluated context. But that data needs edit mode's cache to be properly updated first.
2018-06-07Particle edit: Simplify code by benefiting from single edit contextSergey Sharybin
Makes ADD brush to work. At some point children particles draw got broken, children are not visible for until first stroke is done. Still looking into it.
2018-06-06Cleanup: styleCampbell Barton
2018-06-06Cleanup: unused functionCampbell Barton
2018-06-06Depsgraph: remove legacy code for dupli group updates.Brecht Van Lommel
This caused crashes in some cases, and should be fully handled by the depsgraph now.
2018-06-06Fix incorrect double checked lock in collection object cache.Brecht Van Lommel
2018-06-06Alembic: Fix double-free of mutexSybren A. Stüvel
The mutex was shared between CoW copies of the CacheFile datablock, and as a result also freed multiple times. It is now only freed when the original datablock is freed; the CoW copies share the same mutex.
2018-06-06Fix double-free of custom dataSybren A. Stüvel
This causes a temporary spike in memory usage when creating a copy; the entire copy will be removed anyway when DerivedMesh is removed.
2018-06-06Depsgraph: Remove confusing metaball logicSergey Sharybin
DATA datablock must evaluation must never depend on object it is used for. If there is something what depends on an object, it must be done on object level. At least the actual callback was empty.
2018-06-06Ensure BKE_mesh_new_nomain_from_template() always has valid mxxx pointersSybren A. Stüvel
When the source mesh doesn't have the primary layers (CD_VERT for vdata, etc.) the returned mesh also didn't have those layers, even when non-zero elements were requested (for example requesting 4 vertices would still result in mvert = NULL).
2018-06-06Consolidated custom data layer initialisationSybren A. Stüvel
Code shared between BKE_mesh_new_nomain() and BKE_mesh_new_nomain_from_template() is now in separate functions, instead of copy-pasted.
2018-06-06Set mesh->totface in nomain-mesh creationSybren A. Stüvel
The totxxx fields should match the number of elements in their respective custom data layers.
2018-06-06Renamed BKE_nomain_mesh_xxx → BKE_mesh_nomain_xxxSybren A. Stüvel
This maintains the `BKE_mesh_` prefix for the mesh-related BKE functions.
2018-06-06DerivedMesh deprecation: Removed some functions in displist.cSybren A. Stüvel
Those functions were using DerivedMesh but are not called from anywhere. As a result, they cannot be tested after porting DerivedMesh to Mesh.
2018-06-06DerivedMesh deprecation: marked no-longer-in-use functionSybren A. Stüvel
Functions that are no longer in use can be marked as such, so that later we can easily remove them.
2018-06-06Modifiers: ported curve_calc_modifiers_post() internals from DerivedMesh → ↵Sybren A. Stüvel
Mesh The function still returns a DerivedMesh, but internally it uses Mesh now.
2018-06-06Merge branch 'master' into blender2.8Campbell Barton
2018-06-06Fix error using freed bmainCampbell Barton
Regression in 481cdb08ed6f3
2018-06-06Cleanup: rename WITH -> USE for internal definesCampbell Barton
2018-06-05Cleanup: styleCampbell Barton
2018-06-05Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/blenkernel/intern/blendfile.c source/blender/blenloader/intern/readfile.h source/blender/blenloader/intern/versioning_250.c source/blender/blenloader/intern/versioning_260.c source/blender/blenloader/intern/versioning_270.c source/blender/blenloader/intern/versioning_legacy.c source/blender/editors/render/render_shading.c source/blender/makesrna/intern/rna_movieclip.c source/blender/render/intern/source/pipeline.c source/blender/render/intern/source/voxeldata.c
2018-06-05Moved function declarations from BKE_DerivedMesh.h to BKE_mesh_runtime.hSybren A. Stüvel
The function definitions still reside in DerivedMesh.c. Once we're done porting all the DerivedMesh use to Mesh, we'll move the still-relevant functions to mesh_runtime.c. This move is now cumbersome due to shared statically-declared utility functions in DerivedMesh.c
2018-06-05Moved function declarations from BKE_mesh.h → BKE_mesh_runtime.hSybren A. Stüvel
2018-06-05Cleanup: use new accessors to blendfile path (Main.name).Bastien Montagne
2018-06-05Cleanup: add hleper functions to get filepath from Main.Bastien Montagne
This helps making things clearer and cleaner. Func returning filepath of G.main is separate, so that we can easily track its usages, and hopefully deprecate it at some point. Though that usage of G.main is likely the less evil one, you nearly always want current blendfile path in those cases anyway.
2018-06-05Cleanup: doxy grouping for mesh runtime APICampbell Barton
2018-06-05Object Modes: Flush COW on mode switchingCampbell Barton
Caused glitch w/ sculpt mode not updating.
2018-06-05Workbench: Matcaps T55291Jeroen Bakker
- users can use their own matcaps .config/blender/2.80/datafiles/studiolights/matcap/ folder - upto 100 matcaps can be loaded - color of the matcap is influenced by the color of the material/single color etc. To show the plain matcap use single color at 1.0 - chosing a matcap is at lighting level (flat/studio/matcap) - matcap only possible in solid mode - also works for X-Ray mode As the old matcaps are still in used by the clay engine I didn't remove it yet.