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-11GHOST: WGL: Delay context initialization for offscreen contexts.fclem
Same as 128926a41b368e166af63515370d9c9367e3dda2 but for windows.
2018-06-11Render: Fix build problem with missing GL/glew.hfclem
2018-06-11Fix separator element for headers with multiple directionsDalai Felinto
2018-06-11UI: Separator spacerDalai Felinto
This support layout.separator_spacer() to be used by headers as a way to dynamically separate the ui buttons. Right now no UI file is changed, though we can use this right away in the timeline, and shortly after in the viewport header (moving settings from the topbar to it). Original design by William Reynish. Review: Campbell Barton D3468
2018-06-11Merge branch 'master' into blender2.8Bastien Montagne
2018-06-11Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: intern/cycles/blender/blender_object.cpp source/blender/alembic/intern/abc_exporter.cc source/blender/alembic/intern/abc_mball.cc source/blender/alembic/intern/abc_mball.h source/blender/blenkernel/BKE_anim.h source/blender/blenkernel/BKE_displist.h source/blender/blenkernel/BKE_dynamicpaint.h source/blender/blenkernel/BKE_group.h source/blender/blenkernel/BKE_mball.h source/blender/blenkernel/BKE_mball_tessellate.h source/blender/blenkernel/BKE_object.h source/blender/blenkernel/BKE_scene.h source/blender/blenkernel/intern/anim.c source/blender/blenkernel/intern/depsgraph.c source/blender/blenkernel/intern/displist.c source/blender/blenkernel/intern/dynamicpaint.c source/blender/blenkernel/intern/group.c source/blender/blenkernel/intern/mball.c source/blender/blenkernel/intern/mball_tessellate.c source/blender/blenkernel/intern/mesh_convert.c source/blender/blenkernel/intern/object.c source/blender/blenkernel/intern/object_dupli.c source/blender/blenkernel/intern/object_update.c source/blender/blenkernel/intern/pointcache.c source/blender/blenkernel/intern/scene.c source/blender/blenkernel/intern/smoke.c source/blender/depsgraph/intern/builder/deg_builder_nodes.cc source/blender/depsgraph/intern/builder/deg_builder_relations.cc source/blender/editors/include/ED_object.h source/blender/editors/object/object_add.c source/blender/editors/object/object_edit.c source/blender/editors/object/object_modifier.c source/blender/editors/physics/dynamicpaint_ops.c source/blender/editors/sculpt_paint/paint_vertex.c source/blender/editors/sculpt_paint/sculpt_uv.c source/blender/editors/space_view3d/drawobject.c source/blender/editors/space_view3d/view3d_draw.c source/blender/editors/transform/transform_conversions.c source/blender/editors/transform/transform_snap_object.c source/blender/editors/util/ed_util.c source/blender/gpu/intern/gpu_material.c source/blender/makesrna/intern/rna_meta.c source/blender/makesrna/intern/rna_object_api.c source/blender/modifiers/intern/MOD_dynamicpaint.c source/blenderplayer/bad_level_call_stubs/stubs.c
2018-06-11Render: Create a separate gl context for rendering.Clément Foucault
This should take care of all the threading stability issues some people are reporting.
2018-06-11GHOST: Delay opengl context initializationClément Foucault
This way they can be init in their owner thread. Contexts should not be shared accross threads. Once you make a context active on a thread it is owned by the thread. This commit only have the GLX backend updated but should not break orther platform.
2018-06-11DRW: Rename ogl_context to gl_contextClément Foucault
We might not use opengl forever :)
2018-06-11DRW: Add cache reset.Clément Foucault
This is a temporary solution to the use of the shared cache. Ideally this cache should be per gl drawing context.
2018-06-11Cycles: Cleanup, silence strict compiler warningSergey Sharybin
There is one legit place in the code where memcpy was used as an optimization trick. Was needed for older version of GCC, but now it should be re-evaluated and checked if it still helps to have that trick. In other places it's somewhat lazy programming to zero out all object members. That is absolutely unsafe, at the moment when less trivial class is used as a member in that object things will break. Other cases were using memcpy into an object which comes from an external library. We don't control that object, and we can not guarantee it will always be safe for such memory tricks and debugging bugs caused by such low level access is far fun. Ideally we need to use more proper C++, but needs to be done with big care, including benchmarks of each change, For now do annoying but simple cast to void*.
2018-06-11Libmv: Cleanup, make strict compiler more happySergey Sharybin
In C++ it is not really safe to memcpy objects, and newer GCC will warn about this. However, we don't use our vector for unsafe-to-memcpy objects, so just explicitly silence that warning.
2018-06-11Shading: Change icon of userpreference in Shading popoverJeroen Bakker
2018-06-11Cleanup: Moar G.main removal of Hell.Bastien Montagne
This commit actually adds some G.main... but at much, much higher level than the ones it removes, so should still be better ;)
2018-06-11Cleanup: remove some G.main usages...Bastien Montagne
2018-06-11MetaBall support for Workbench + EEVEEJeroen Bakker
Note: Metaballs only support the first material slot. Splicing it per material would create empty Batches. In order to overcome this we set the batch for other materials to NULL. We added extra checks in EEVEE and Workbench to not draw when the geom is NULL.
2018-06-11Workbench: Flipping MatCaps for forward shadingJeroen Bakker
2018-06-11Fix pchan head/tail original values not being setCampbell Barton
2018-06-11Fix bad level stubsSergey Sharybin
2018-06-11Revert unintended changes to depsgraphDalai Felinto
This partially reverts f8d7df6f162. I committed this bit by mistake.
2018-06-11Merge branch 'master' into blender2.8Sergey Sharybin
2018-06-11Cleanup: Use BLI_strncpySergey Sharybin
It has behavior which we expect, and silences strict compiler warning.
2018-06-11Fix T55278: Lightmap Pack > New Image broken when active object is NonePhilipp Oeser
thanx bblanimation (Christopher Gearhart) for spotting the issue and providing the fix! Reviewed By: brecht Differential Revision: https://developer.blender.org/D3449
2018-06-11Merge branch 'master' into blender2.8Campbell Barton
2018-06-11path_util: avoid overflow w/ strtoll useCampbell Barton
Also style cleanup.
2018-06-113D View: move screen overlays to the topCampbell Barton
- Frame & object name now top left. - Axis now top right (when view navigation disabled). This is needed so we can use the lower area for redo popup, see T55386.
2018-06-11Merge branch 'master' into blender2.8Philipp Oeser
2018-06-11Fix PyConsole: Drag events finished early in modal text selectionPhilipp Oeser
2018-06-11Merge branch 'master' into blender2.8Philipp Oeser
2018-06-11Fix T55140: opened image doesn't show up in movie clip editorPhilipp Oeser
atoi usage in BLI_stringdec could overflow, use strtoll instead and check valid range with INT_MIN and INT_MAX Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D3452
2018-06-11WIP: Add driver eyedropper operator button beside the "add input" buttonJoshua Leung
This doesn't work currently. Needs more investigation why.
2018-06-11Drivers UI: Introduce more whitespace, to make the sections clearerJoshua Leung
2018-06-11Merge branch 'master' into blender2.8Philipp Oeser
2018-06-11Cleanup: Remove the "all" parameter from "ANIM_OT_driver_button_edit"Joshua Leung
This won't ever be used for this operator, as the "edit" operator should only ever be used for dealign with a single driver - the one under the cursor.
2018-06-11Overlays: Reserve space for a "Onion Skins" overlayJoshua Leung
While we probably won't be getting a general purpose "Onion Skinning" overlay anytime soon for meshes, etc. (at least not before the depsgraph stabilises, and we also get geometry caching working), for the Grease Pencil integration at least, it makes sense to move GP objects to using a more general/future-proof solution, instead of continuing to use a special/dedicated button in the header. Currently the UI part of this is commented out. Also, the GP branch doesn't need to move to this pre-merge. But, since 2.8 changes move fast, it's better to reserve the space now to have it next to motionpaths, than introduce it later.
2018-06-11Drivers UI: Don't show the Copy/Paste driver dvars buttons in the popoversJoshua Leung
The copy/paste driver variables buttons currently only work when used in the Graph Editor as they rely on being able to have the "active F-Curve" context info that's only present in the Graph Editor (in Drivers Editor mode). Instead of having them constantly greyed out in the popover, it's easier to just hide them for now. Besides, this is probably more of an "advanced" feature that we don't need to expose in the simple UI.
2018-06-11Fix T55349: crash adding paint slot when object is on hidden layerPhilipp Oeser
use better poll and get ob with 'ED_object_active_context' (instead of 'CTX_data_active_object') Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D3467
2018-06-11Cleanup: warningsCampbell Barton
2018-06-11Drivers UI Fix: Use uiLayoutSetContextFromBut() so that operators will work ↵Joshua Leung
in the panel This fixes the problem where the "Show in Drivers Editor" button would not actually select and highlight the driver under the mouse. (TODO: The channels still aren't getting selected properly in the channels list, but at least the properties show correctly)
2018-06-11Driver Workflow (T55145): Tweak to default expression used for new drivers ↵Joshua Leung
created from UI Previously, newly created drivers were set to "Scripted Expression" mode and had their 'expression' field set to the pre-driver value of the property, so that adding a driver didn't cause the property to immediately lose its old value (and potentially causing havok in the scene). However, this had the unintended consequence of making the driver setup workflow more cumbersome, as you first had to replace that value with the name of the driver variable before your driver would work. This commit works around this issue by trying to combine the best of both worlds (quite literally): Now, the driver expression for drivers created using Ctrl-D will be "var + <old value>". Thus, in the simplest case, the driver will do something as soon as you fill out the driver variable settings (e.g. just filling out the Target Object field will do it), meaning you get your drivers working faster. Of course, it may now be necessary to edit out the old-value, and/or it might be a bit more confusing what/why it's there for newbies. However, the improved ease of setup, and/or a more tangible example of how an expression may be constructed outweigh the downsides IMO.
2018-06-11Drivers Workflow (T55145): Improvements to "Add Driver" workflowJoshua Leung
This commit implements a new behaviour for the "Add Driver" functionality (invoked from the RMB menu on a property, or by pressing Ctrl-D). Instead of spawning a context menu asking you to pick the way you want to create a driver, it will now just create a driver on the property under the mouse and then show the "Edit Drivers" popover so that you can immediately start editing the properties of this driver. This way, the whole process is more visual and feels less blocking / constrained, with less upfront decisions needed immediately. Notes: * The new behaviour is equivalent to choosing the "Manually Create (Single)" and then doing a "Edit Driver" on the property * Renamed the old "ANIM_OT_driver_button_add" operator to "ANIM_OT_driver_button_add_menu". It will probably go away in the near future, but it's better to keep it around for a while longer still until the new workflow settles down.
2018-06-10Sub-panels for Cycles Depth of FieldPablo Vazquez
2018-06-10Sub-panel for camera DoF for EEVEEPablo Vazquez
2018-06-10Workbench: Xray: Fix hairs with matcaps.Clément Foucault
2018-06-10Workbench: Xray: Make dithered depth dependant on alpha.Clément Foucault
The range is 0.25 to 0.75 opacity when the Xray opacity is between 0.0 to 1.0. This is to avoid loosing completely the sense of occlusion when having no other solid drawing than the wireframe and loosing the transparency when xray alpha is at 1.0. Also replace Bayer (checkerboard) method by interlieved gradient noise to minimize the chance to loose an occluded line completely. Other noise function could be tested in the future.
2018-06-10Workbench: Xray: Add selected/active non-occluded outlinesClément Foucault
This Fix the problem when multiple objects are selected and one of them occlude the others. You cannot see clearly what is selected. With this option, selection is more clear when Xray mode is enabled.
2018-06-10Workbench: Xray: Make nearest surfaces more clearClément Foucault
By using equation 7 from the paper, we make the surfaces nearest to the viewpoint appear more "opaque". This gives better sense of ordering than the previous weighting function that was really not doing anything.
2018-06-10Workbench: Xray: Lower hairs opacityClément Foucault
Since hairs are very likely to owerflow the weight buffer, we divide their alpha value by 3. This might become a particle system setting if needed.
2018-06-10Workbench: Xray: Optimize and fix implementation.Clément Foucault
There was a method explained in the Weighted Blended Order-Independent Transparency paper to support hardware that does not support per render target blending function. So now only 2 geometry passes are required instead of 3 (one being the outline/depth fill pass). This also fix how the blending is done. There was some premult confusion in the implementation.
2018-06-10UI: Add redo last to edit-menuCampbell Barton