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-05-17UI: File Close DialogJacques Lucke
This adds a new dialog that is shown whenever a file is closed. So, either when a new file is opened, or when Blender quits. The dialog allows to save unsaved changes. Furthermore it also allows saving images that have been modified in Blender, but are not saved yet. Known limitations: * Images that have no file path and have not been packed before, are not saved. * On MacOS the old dialog is shown when Blender quits. Reviewers: brecht, billreynish Differential Revision: https://developer.blender.org/D4860
2019-05-17Fix T64595: Mask does not update correctly when changing framesSergey Sharybin
Is caused by change which made all IDs to have parameters. Solved by using more explicit relations.
2019-05-17Fix compilation error in release modeSergey Sharybin
Caused by recent fix. For some reason compiled fine in debug mode, but not in release.
2019-05-17Set selection column restrict hidden by defaultDalai Felinto
This was discussed in the past, the idea is to get the outliner even more compact. Also to let users to use the viewport selection restriction further. It would be nice to haven indication that an invisible column is set, but this is no particular to the selection column.
2019-05-17Fix T63981: Factory default memory cache limit is 4096 MB (32bit builds)Sergey Sharybin
very straightforward: initialize default to the same hard limit as the RNA properties. Annoying part is that it's not trivial to make RNA to use same BLI functions, so leaving that behind for now.
2019-05-17Python: Raise an error even NO_MAIN data is assigned to objectSergey Sharybin
The goal is to prevent assignment of temporary or evaluated meshes to objects from the main database. Majority of the change is actually related on passing reports around. On a positive side there are more error prints which can become more visible to scripters. There are still possible further improvements in the related areas. For example, disable user counting for evaluated ID datablocks when assignment happens. But can also happen later on as a separate improvement. Reviewers: brecht, campbellbarton, mont29 Reviewed By: brecht Differential Revision: https://developer.blender.org/D4884
2019-05-17Cleanup: Eevee: Remove custom volumetric matrixClément Foucault
This was the same as using the inverse obmat.
2019-05-17Eevee: Remove the Volumetric Render checkboxClément Foucault
This is to simplify the usage of Volumetrics. Now it automatically detect if there is any Volumetric material in the view and allocate the needed buffer if any.
2019-05-17Eevee: Remove the Subsurface Render checkboxClément Foucault
This is to simplify the usage of SSS. Now it automatically detect if there is any SSS material in the view and allocate the needed buffer if any.
2019-05-17DRW: Fix warning on MSVCClément Foucault
2019-05-17DRW: Make fullscreen vertex shader position and uv without attributesClément Foucault
2019-05-17Cleanup: Eevee: Use SET_FLAG_FROM_TESTClément Foucault
2019-05-17Report an error when trying to remove non-in-main datablockSergey Sharybin
After recent dependency graph API changes it became easy to violate ownership design (since its changed) and request removal of out-of-main temporary mesh. This confuses Blender and can cause crashes/locks. Fixes T64731: Blender freezes after assigning result of object.to_mesh()
2019-05-17Depsgraph: State behavior details more explicitlySergey Sharybin
2019-05-17Fix T64713: Link to Collection Textfield does not become activePhilipp Oeser
automatically
2019-05-17Mesh Select: use select context instead of static structsmano-wii
This patch does not bring any functional change, but it does expose some utilities that can be very useful to correct occlusion and performance problems of Circle Select and similar. Creating a selection context still makes it easier to track issues.
2019-05-17Fix face mask edge select drawingCampbell Barton
All edges were drawing black.
2019-05-173D View: Support texture paint mask clippingCampbell Barton
2019-05-17UI: add tool panel for node editor, use tabsCampbell Barton
This follows the 3D view, adding an "Options" tab.
2019-05-17makesdna: Fix build error on win32.Ray Molenkamp
Win32 has some special struct alignment rules that makesdna is not warning about. See https://developer.blender.org/T63164#652815 for details.
2019-05-16Preference: don't autosave preferences when running with --factory-startupBrecht Van Lommel
This case is likely intended to be temporary, for manual or automated tests.
2019-05-16Images: more tweaks to save all modified imagesBrecht Van Lommel
Support showing warning messages before saving for cases that we can detect in advance, to be used by quit dialog.
2019-05-16Fix T64725: light power property dragging uses too small incrementsBrecht Van Lommel
2019-05-16BLI_memarena: unpoison memory before freeing itJacques Lucke
2019-05-16Use edit evaluated mesh when creating mesh for object in edit modeSergey Sharybin
Makes the result of object.to_mesh() and bpy.meshes.new_from_object() to be the same as what is visible in the viewport. This makes Cycles to respect modifiers enabled in edit mode, and should also easy some scripter's work. The final render still needs some work, which, maybe, will be about forcing objects out of editing modes.
2019-05-16Cycles/Eeeve: unify film transparent settingJeroen Bakker
For existing files, it will use the setting from Cycles or Eevee depending on the render engine in the scene. Differential Revision: https://developer.blender.org/D4874
2019-05-16Cycles: Fix missing viewport updates after recent changesSergey Sharybin
We can not access ensured-to-be-evaluated dependency graph from the render API: some of it is running from within evaluation which makes it possible for engines to access list of evaluated IDs. Solved by passing dependency graph to viewport functions, similar to the final render functions.
2019-05-16Images: move save modified images operator from Python to CBrecht Van Lommel
We will use this for saving images along with the .blend file. Ref D4861
2019-05-16Tweak API to support adding evaluated meshes to main databaseSergey Sharybin
One of the usecases is to create mesh from an object is a manner similar to how Apply Modifiers does it, and have it in the bmain so it can be referenced by other objects. This usecase is something what went unnoticed in the previous API changes, so here is a followup. Summary of changes: * bpy.meshes.new_from_object() behaves almost the same as before this change. The difference now is that it now ensures all referenced data-blocks are original (for example, materials referenced by the mesh). * object.to_mesh() now creates free-standing Mesh data-block which is outside of any bmain. The object owns it, which guarantees the memory never leaks. It is possible to force free memory by calling object.to_mesh_clear(). Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D4875
2019-05-16EEVEE: Viewport Rendering TAAJeroen Bakker
EEVEE assumed that the OGL renderer did FSAA, as the FSAA was removed we needed to revalidate this assumption. The temporal sampling only inited the matrices during init phase. As now we need to update the matrices for every sample rendered the code for updating the matrices was isolated in a new function `EEVEE_temporal_sampling_update_matrices`. Reviewed By: fclem Maniphest Tasks: T64646 Differential Revision: https://developer.blender.org/D4871
2019-05-16Fix T64576: Duplicate option in the headerCampbell Barton
D4856 by @Gvgeo
2019-05-16Fix unintended fall-through in switch statementSergey Sharybin
2019-05-16Depsgraph: Make depsgraph.update() safe for threadingSergey Sharybin
This is same as view_layer.update() is doing.
2019-05-16UI: tweak display of active, selected and edited items in the outlinerHarley Acheson
* Change circle to roundbox around active icons, so they don't overflow. * Change text color to indicate selected and active state. Differential Revision: https://developer.blender.org/D4650
2019-05-16Cleanup: rename IDP_FreeProperty_ex to IDP_FreePropertyContent_exJacques Lucke
This was missing from rBdb5120603f.
2019-05-16Refactor: Simplify ID Property freeingJacques Lucke
This also makes `IDP_CopyProperty` the "opposite" of `IDP_FreeProperty`, which is what I'd expect. Two refactoring steps: * rename IDP_FreeProperty to IDP_FreePropertyContent * new IDP_FreeProperty function that actually frees the property Reviewers: brecht Differential Revision: https://developer.blender.org/D4872
2019-05-16GPencil: New filter in Onion by keyframe typeAntonioya
This new filter allows to select only some type of keyframe (keyframe, breakdown, etc). This was a request of artists that are used to work with other 2D softwares. Also some cleanup to remove aninmatable option to some properties.
2019-05-16UI: Video Sequencer sidebar overhaulWilliam Reynish
- Use single column layout - Move the rather obscure Backdrop toggle into the View menu - Use correct units for Crop and Offset (pixels) - Re-organize the sidebar in 2 main groups: Adjust & Info Adjust includes Compositing, Offset, Crop, Video, Color, Sound Info includes strip name, path, start/end and other data Original changes by tintwotin, with changes and adjustments on top by me
2019-05-16Fix edit-mesh select crash when using face-dotsCampbell Barton
The GPUVertBuf was freed but not the GPUBatch. Old bug exposed by new code from 8a6414ed46f66.
2019-05-16EEVEE: Intel Shader Compiler BugJeroen Bakker
When using Intel GPU EEVEE did not display anything. This was due to an internal shader compilation bug inside the intel drivers. We had fixed this for other vertex shaders. The same change we have to apply to other vert shaders that want to limit the need of Matrix multiplications.
2019-05-16Fix edit-mesh face-dot drawing checkCampbell Barton
Since 8a6414ed46f66 the old logic no longer applies.
2019-05-16Cleanup: unused varsCampbell Barton
2019-05-16Fix T64678: wrong DDS normal map rendering after recent changesBrecht Van Lommel
2019-05-16Fix T64687: Loop select work only with edgesCampbell Barton
Regression in recent commit 8a6414ed46f66
2019-05-16Dependency graph API changesSergey Sharybin
Main goal here is to make it obvious and predictable about what is going on. Summary of changes. - Access to dependency graph is now only possible to a fully evaluated graph. This is now done via context.evaluated_depsgraph_get(). The call will ensure both relations and datablocks are updated. This way we don't allow access to some known bad state of the graph, and also making explicit that getting update dependency graph is not cheap. - Access to evaluated ID is now possible via id.evaluated_get(). It was already possible to get evaluated ID via dependency graph, but that was a bit confusing why access to original is done via ID and to evaluated via depsgraph. If datablock is not covered by dependency graph it will be returned as-is. - Similarly, request for original from an ID which is not evaluated will return ID as-is. - Removed scene.update(). This is very expensive to update all the view layers. - Added depsgraph.update(). Now when temporary changes to objects are to be done, this is to happen on original object and then dependency graph is to be updated. - Changed object.to_mesh() to behave the following way: * When is used for original object modifiers are ignored. For meshes this acts similar to mesh-copy, not very useful but allows to keep code paths similar (i.e. for exporter which has Apply Modifiers option it's only matter choosing between original and evaluated object, the to_mesh() part can stay the same). For curves this gives a mesh which is constructed from displist without taking own modifiers and modifiers of bevel/taper objects into account. For metaballs this gives empty mesh. Polygonization of metaball is not possible from a single object. * When is used for evaluated object modifiers are always applied. In fact, no evaluation is happening, the mesh is either copied as-is, or constructed from current state of curve cache. Arguments to apply modifiers and calculate original coordinates (ORCO, aka undeformed coordinates) are removed. The ORCO is to be calculated as part of dependency graph evaluation. File used to regression-test (a packed Python script into .blend): {F7033464} Patch to make addons tests to pass: {F7033466} NOTE: I've included changes to FBX exporter, and those are addressing report T63689. NOTE: All the enabled-by-default addons are to be ported still, but first want to have agreement on this part of changes. NOTE: Also need to work on documentation for Python API, but, again, better be done after having agreement on this work. Reviewers: brecht, campbellbarton, mont29 Differential Revision: https://developer.blender.org/D4834
2019-05-16Depsgraph: Add queries whether ID is original/evaluatedSergey Sharybin
2019-05-16Fix T64660: no access to node connectors when a node is inside a layout frame.Bastien Montagne
Note that the same issue actually showed without a frame node, when trying to click-drag on a socket on its 'inside node' part, you would get same behavior. Only solution I can see here is to prevent Node selection to go on when user clicks on one of its sockets, there is no way afaik to make drag-from-socket to start if we keep select-node operator running modal, since both operators (NODE_OT_select and NODE_OT_link) use the same shortcut, if select (which is checked first, being a Tool) returns modal, then event is considered handled it seems, even though Passthrough is also returned...
2019-05-16RNA: new FCurve.is_empty property that exposes the new empty curve check.Alexander Gavrilov
2019-05-16Minor change to last commitCampbell Barton
Don't show a background for the toolbar.
2019-05-16UI: Draw background for headerless panels with region-overlapCampbell Barton
These were drawing without a backdrop.