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
path: root/source
AgeCommit message (Collapse)Author
2019-09-19Fix T68091: Adding a corrupt video crashes/confuses BlenderSybren A. Stüvel
The problematic video from T68091 clearly has an invalid stream duration (it would be 55 centuries long if interpreted at 30 FPS, and given that it was recorded with an Android 9 device, it's unlikely that recording started that long ago). I've added a heuristic to check the stream duration against the container duration; if the stream is more than 4x longer than the container, Blender now falls back to the container duration. We could use MIN(stream duration, container duration), but there might be video files out there where the container duration is less precise than the stream duration; they are measured in different units of time (microseconds for the container vs. frames for the stream). Includes a unit test for the above heuristic. Reviewed by: jbakker Differential revision: https://developer.blender.org/D5853
2019-09-19Use FFmpeg's own `av_guess_frame_rate()` function instead of guessing ourselvesSybren A. Stüvel
This was introduced in FFmpeg lavf 55.1.100 in 2013. For systems that are still on LibAV or older FFmpeg there is a fallback implementation that performs the same guess as we did before in `av_get_r_frame_rate_compat()`.
2019-09-19Cleanup: don't index the same array multiple timesSybren A. Stüvel
There is now a clearer distinction between `video_stream` (the stream itself) and `video_stream_index` (its index), and no more repetition of accessing the same item of an array. This also makes the code a bit more readable in preparation for an upcoming functional change.
2019-09-19Fix T64855: smooth view not working in Eevee rendered modeBrecht Van Lommel
2019-09-19Fix missing 3D viewport solid shading mode request for UVs and vertex colorsBrecht Van Lommel
This probably fixes no current issues, because there is another one causing these to be computed unnecessarily.
2019-09-19Fix T70060: Add bgl wrapper for glVertexAttribIPointerJacques Lucke
2019-09-19Clean-up/safety check in new BKE_mesh_copy_settings().Bastien Montagne
From rBe7a514369fe70, since I did not have time to do proper review in D5808... Note that we could also consider that shallow copy of src should never be dst of that function and add some asserts instead. For now going the safest and simplest way though.
2019-09-19Cleanup: Spelling in commentSergey Sharybin
2019-09-19Fix T67934: Weight paint doesn't work with Subsurf/MultiresSergey Sharybin
This is a regression since PBVH was introduced for weight paint. The solution is: treat subsurf and multires modifiers as deforming ones for the weight painting. This is an easiest solution to make PBVH use subdivided location of original vertices. This change could simplify some of the weight paint by removing the grids check, since PBVH is not supposed to be built from grids in this case anymore. Differential Revision: https://developer.blender.org/D5751
2019-09-19Subdiv: Add vertex deformation callback to multires/subsurfSergey Sharybin
Currently unused but the intention is to use this to hook up these modifiers to a generic deformed PBVH to make it easier to sculpt or paint on a subdivided mesh.
2019-09-19Subdiv: Add deformation-only subdivisionSergey Sharybin
Is intended to be used to generate an array of coordinates of coarse vertices placed to the final subdivided position.
2019-09-19Subdiv: Cleanup, commentsSergey Sharybin
2019-09-19Fix T66154: viewlayer hide/exclude settings getting lost for linked collectionsBrecht Van Lommel
The problem was that the object and collection pointers in Base and LayerCollection would get lost of file read. Normally such ID pointers would be resolved by pointing to an ID_ID placeholder which has the datablock name, and then replacing it will the real datablock. However ID_ID is only written for directly linked datablocks. This adds the concept of an indirectly linked datablock with a weak reference to it. For this we write an ID_ID_WEAK_REF code, which is a reference that will only be resolved if the datablock was read for another reason. Differential Revision: https://developer.blender.org/D4416
2019-09-19Modifiers: every modifier now copies mesh settings, fixing texture space issuesBrecht Van Lommel
Modifier stack evaluation would copy mesh settings other than mesh topology automatically, outside of the individual modifier evaluation. This leads to hard to understand code, and makes it unclear which settings are available in following modifiers, and which only after the entire stack is evaluated. Now every modifier is responsible to ensure the mesh it outputs preserves materials, texture space and other settings, or alters them as needed. Fixes T64739: incorrect texture space for various modifiers Differential Revision: https://developer.blender.org/D5808
2019-09-19Fix T68852: Link select crashes after knife projectPhilipp Oeser
Knife project switches out of vertex selection mode, but wouldnt do this for all participating meshes. Logic in edbm_select_linked_pick would switch the viewcontext multiple times and the meshes selectmode was not in sync then, leading e.g. finding a vertex in 'unified_findnearest' (because last of the meshes selectmode was SCE_SELECT_VERTEX), but then later in 'EDBM_elem_from_selectmode' other meshes selectmode was not matching SCE_SELECT_VERTEX, leading to crash... Reviewers: campbellbarton Maniphest Tasks: T68852 Differential Revision: https://developer.blender.org/D5536
2019-09-19Cleanup: Remove redundant name checkingAntonio Vazquez
The BKE function already does this checking.
2019-09-19Fix T70009: GPencil copied layer is linked to its original layerAntonio Vazquez
As the layer and frame memory was duplicated, the pointers were connected to old data. This was solved when saved the file, but this was a bug. Also this required a duplication and clean all listbase items. Now, instead to duplicate and clear memory for layers and frames, just create a new layer and frame. This solution fix the problem, it's faster and also keeps the code cleaner.
2019-09-19Fix T70033: Crash editing keymap operatorCampbell Barton
Expanding operator names could buffer overrun.
2019-09-19Cleanup: use uint,ushort,uchar for modifiersCampbell Barton
2019-09-19Cleanup: spellingCampbell Barton
2019-09-18GPencil: Create blank texture only once by engineAntonio Vazquez
This texture is used for missing textures as replace. Differential Revision: https://developer.blender.org/D5845
2019-09-18Fix transforming paint curve edit points also doingPhilipp Oeser
ED_sculpt_end_transform in sculpt mode followup to rB67310ed97618, thx @mano-wii for the heads up.
2019-09-18Fix remesher operator poll functionPablo Dobarro
This commit also removes the name "voxel" from the messages because this function is now used for the voxel remesher and quadriflow. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5842
2019-09-18Fix T70006: crash when transforming paint curve edit points in sculpt modePhilipp Oeser
This was caused by rB309cd047ef46. Above commit introduced code that would skip early for sculptmode (leaving out the neccessary createTransPaintCurveVerts). Reviewers: pablodp606, jbakker, mano-wii Maniphest Tasks: T70006 Differential Revision: https://developer.blender.org/D5837
2019-09-18Fix excessive dependency graph evaluation while painting strokesBrecht Van Lommel
Particularly noticeable when vertex painting with a subsurf modifier. In some cases every sculpt or paint stroke step would evaluate the dependency graph. This should only happen for redraws. Now more selectively choose if the dependency graph should be evaluated to initialize the view context. Doing it in the view context evaluation is somewhat hidden, now it's more explicit. Differential Revision: https://developer.blender.org/D5844
2019-09-18Depsgraph: Cleanup, spelling in commentSergey Sharybin
2019-09-18Subvid: Initial support of subdiv topology querySergey Sharybin
Just some higher level functions to access topology information.
2019-09-18Subdiv: Cleanup, split function into smaller onesSergey Sharybin
2019-09-18BLI_tasks: simplify/generalize heuristic computing default chunk size.Bastien Montagne
That code is simpler and more general (not limited to some specific values of thread numbers). It still gives similar default chunk size as what we had before, but handles smoother increase steps, and higher number of threads, by keeping increasing the chunk size. No functional change expected from that commit.
2019-09-18GPencil: Fix unreported error using Grab sculpt in empty frameAntonio Vazquez
When the grab brush was used in an empty frame, a new frame was created, but as the depsgraph was no tagged, the evaluated data was wrong and the Grab hash failed.
2019-09-18GPU: AMD: Remove workaround that doesn't workmano-wii
2019-09-18Fix (unreported) missing viewport update deleting a particlePhilipp Oeser
If children hairs were displayed in particle editmode, these would not update when a particle was deleted. Reviewers: sergey Differential Revision: https://developer.blender.org/D5840
2019-09-18Fix T65816: Alembic export of procedural mesh results in a static mesh and ↵Sybren A. Stüvel
crashes The static mesh issue described in T65816 has been resolved by @Sergey in T60094. This commit fixes the last bit of the puzzle, which was two-fold: - A missing depsgraph update when setting `orig_object.data = new_mesh` from Python. Thanks @Sergey for providing the fix :) - Properly locking the interface while exporting. This prevents crashes as described in T60094. The previous approach of calling `BKE_spacedata_draw_locks()` was not enough.
2019-09-18Fix T69580: Smooth brush freezes on highpoly meshPablo Dobarro
Reviewed By: brecht Differential Revision: https://developer.blender.org/D5831
2019-09-18Fix preference for file browser and new window not being savedBrecht Van Lommel
The subversion should just be bumped for cases like this, it doesn't cost anything and functioning correctly is most important.
2019-09-18Revert "UI: Open file browser in fullscreen by default"Brecht Van Lommel
This reverts commit b962aca8003de89683c87c4da348579f756b75cd. We may revert to the fullscreen file browser if it's not good enough by the time of the 2.81 release. But then it first needs some changes since the in between state now is not good enough either.
2019-09-18Fix T69984: Cursor curve Alpha doesn't display curves other than CustomPablo Dobarro
Reviewed By: jbakker Maniphest Tasks: T69984 Differential Revision: https://developer.blender.org/D5823
2019-09-18Sculpt: Split original normal into original normal and planePablo Dobarro
This allows to create different effects with some brushes that use the sculpt plane. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D5818
2019-09-18UI: Open file browser in fullscreen by defaultJulian Eisel
Fullscreen as in, maximized area. This may be a temporary change until we consider the temporary window mode as working well enough. Note that you can still enable the windowed mode in the Preferences (Interface > Editors > Temporary Windows).
2019-09-18UI: Preference for file browser as fullscreen areaJulian Eisel
Addes a Preference setting to choose between opening new file browsers in a maximized area (like with the old file browser) or in a new window (like the new one).
2019-09-18UI: Move render display type to PreferencesJulian Eisel
Moves the render display type (to choose between rendering in a new window, in a fullscreen area, in an Image Editor, etc) from the scene to the preferences.
2019-09-18Refactor temp-space opening for optional fullscreen modeJulian Eisel
Will be put to use in followup commits.
2019-09-18Cleanup: minor changes to paint undoCampbell Barton
Use a shared tile freeing function.
2019-09-18Fix segfault when polling OBJECT_OT_voxel_remesh without active objectSybren A. Stüvel
The active object can be `NULL`, which causes a segfault in `BKE_object_is_in_editmode(NULL)` (and if that were made NULL-safe, the segfault would happen further down in `object_remesh_poll()`).
2019-09-18Cleanup: includes for readfile.cCampbell Barton
2019-09-17Fix T69989: Correct Mapping node min/max versioning.OmarSquircleArt
The old min/max options specified the target min/max values, they didn't act as min/max operators. So the versioning code should be adjusted accordingly. Reviewers: brecht Differential Revision: https://developer.blender.org/D5828
2019-09-17GPU: Comment incorrect assertsClément Foucault
These asserts are too simple and triggers false positive.
2019-09-17Fix T69809, T69810: sculpt gone or crashing after renderBrecht Van Lommel
Make a distinction between flush sculpt changes for rendering, and forcing sculpt data structures to be rebuilt after mesh changes. Also don't use PBVH for renders.
2019-09-17GPU: Fix broken assertClément Foucault
2019-09-17Fix paint cursor crashPhilipp Oeser
The new paint cursor (introduced in rBe0c792135adf) could crash for 2d painting without an active object. Note there are still drawing asserts (because we are mixing 2d and 3d drawing in 'paint_draw_cursor'), but these will be handled in a seperate commit. part of T69957 Reviewers: jbakker Maniphest Tasks: T69957 Differential Revision: https://developer.blender.org/D5820