4 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Thu, 23 Feb 2017 21:09:09 +0000 (22:09 +0100)]
Merge branch 'master' into blender2.8

4 years agoFix stupid mistake in previous commit for release builds of API doc.
Bastien Montagne [Thu, 23 Feb 2017 21:08:01 +0000 (22:08 +0100)]
Fix stupid mistake in previous commit for release builds of API doc.

4 years agoUpdate py API doc generation tools to comply to new name scheme on server.
Bastien Montagne [Thu, 23 Feb 2017 20:24:47 +0000 (21:24 +0100)]
Update py API doc generation tools to comply to new name scheme on server.

 - for rc/release: /api/2.79c/, zip file named
 - for dev: /api/master/, zip file named

4 years agoUsual UI messages fixes...
Bastien Montagne [Thu, 23 Feb 2017 20:10:43 +0000 (21:10 +0100)]
Usual UI messages fixes...

4 years agoOpenGl immediate mode: clip_draw.c and clip_graph_draw.c fixes
Luca Rood [Thu, 23 Feb 2017 16:35:16 +0000 (13:35 -0300)]
OpenGl immediate mode: clip_draw.c and clip_graph_draw.c fixes

Fixed little typo in clip_draw.c and special case assert in
clip_graph_draw.c (track segments with single point).

Part of T49043

4 years agoCycles: Fix compilation error on 32bit Linux
Sergey Sharybin [Thu, 23 Feb 2017 16:30:26 +0000 (17:30 +0100)]
Cycles: Fix compilation error on 32bit Linux

4 years agoCycles: Fix wrong render results with texture limit and half-float textures
Sergey Sharybin [Thu, 23 Feb 2017 13:46:22 +0000 (14:46 +0100)]
Cycles: Fix wrong render results with texture limit and half-float textures

4 years agoCycles: Add utility function to convert float to half
Sergey Sharybin [Thu, 23 Feb 2017 13:42:06 +0000 (14:42 +0100)]
Cycles: Add utility function to convert float to half

handles overflow and underflow, but not NaN/inf.

4 years agoRework of BKE's mesh_render to support BMesh directly.
Bastien Montagne [Thu, 23 Feb 2017 10:54:40 +0000 (11:54 +0100)]
Rework of BKE's mesh_render to support BMesh directly.

Note that since there is no (efficient) ways to get arrays of
MVert/MEdge/etc. out of a BMesh, I refactored quite heavily internals of

Now, when you do need acess to mesh data to generate cached batches, you
create an abstract struct from mesh (either Mesh or BMesh if available),
and then use advanced helpers to extract needed data, on a per-item
basis (no more handling of arrays of verts/edges/... in batches code).

This allows to:
* Avoid having to create arrays of BMesh elements.
* Take advantage of existing advanced BMesh topology and connectivity data.

Reviewers: dfelinto, fclem, merwin

Differential Revision:

4 years agoFix T50656: Compositing node editor is empty, no nodes can be added
Sergey Sharybin [Thu, 23 Feb 2017 10:23:49 +0000 (11:23 +0100)]
Fix T50656: Compositing node editor is empty, no nodes can be added

4 years agoFix building full.
Bastien Montagne [Thu, 23 Feb 2017 10:03:56 +0000 (11:03 +0100)]
Fix building full.

4 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Thu, 23 Feb 2017 09:56:28 +0000 (10:56 +0100)]
Merge branch 'master' into blender2.8

4 years agoFix T50748: Render Time incorrect when refreshing rendered preview in GPU mode
Sergey Sharybin [Thu, 23 Feb 2017 09:50:46 +0000 (10:50 +0100)]
Fix T50748: Render Time incorrect when refreshing rendered preview in GPU mode

4 years agoFix T50736: Zero streaks in Glare node.
Bastien Montagne [Thu, 23 Feb 2017 09:39:51 +0000 (10:39 +0100)]
Fix T50736: Zero streaks in Glare node.

Please never, ever use same DNA var for two different things. Even worse
if they do not have same type and ranges!

This is only ensuring issues (as described in report, but also if
animating both RNA props using same DNA var... yuck).

And we were not even saving any byte in DNA, could reuse some padding
there to store the two new needed vars (yes, two, since we cannot re-use
existing one if we want to keep backward *and* forward compatibility).

4 years agoSilence "defined but not used" warnings
Dalai Felinto [Thu, 23 Feb 2017 09:24:59 +0000 (10:24 +0100)]
Silence "defined but not used" warnings

4 years agoOpenGl immediate mode: remove imm_draw_line
Luca Rood [Thu, 23 Feb 2017 05:52:36 +0000 (02:52 -0300)]
OpenGl immediate mode: remove imm_draw_line

Replaced all calls to `imm_draw_line` by plain `immVertex2f` calls, and
removed `imm_draw_line`, as that function was not supposed to exist in
the first place, and causes unnecessary calls to `immBegin`/`immEnd`.

Part of T49043

4 years agoOpenGl immediate mode: fix screen_draw.c
Luca Rood [Thu, 23 Feb 2017 03:27:35 +0000 (00:27 -0300)]
OpenGl immediate mode: fix screen_draw.c

* Fix several wrong coordinates, causing things to be drawn in the wrong places.
* Remove unexpected return.
* Slight peformance improvement, by reducing number of shader binds.
* Minor code style stuff.

Part of T49043

4 years agoFix possible crash in various 3D View operators
Julian Eisel [Thu, 23 Feb 2017 00:59:40 +0000 (01:59 +0100)]
Fix possible crash in various 3D View operators

Was actually harmeless and not crashing, but I'd say more or less only
by luck: the NULL-check for region data would only evaluate to true for
the correct 3D View region. However, if we were to add region data to a
different region type in future, this would lead to undefined behavior
if executed in the wrong region.

4 years agoFix issues when reordering nested collections
Julian Eisel [Wed, 22 Feb 2017 23:08:29 +0000 (00:08 +0100)]
Fix issues when reordering nested collections

Item was inserted at the head of the top-level collection list, instead
of parent-level one.

4 years agoColumns should be expandable by default
raa [Wed, 22 Feb 2017 21:03:31 +0000 (00:03 +0300)]
Columns should be expandable by default

4 years agoFix T50745: Shape key editing on bezier objects broken with Rendered Viewport Shading
Bastien Montagne [Wed, 22 Feb 2017 20:20:50 +0000 (21:20 +0100)]
Fix T50745: Shape key editing on bezier objects broken with Rendered Viewport Shading

So... Curve+shapekey was even more broken than it looked, this report was
actually a nice crasher (immediate crash in an ASAN build when trying to
edit a curve shapekey with some viewport rendering enabled).

There were actually two different issues here.

I) The less critical: rB6f1493f68fe was not fully fixing issues from
T50614. More specifically, if you updated obdata from editnurb
*without* freeing editnurb afterwards, you had a 'restored' (to
original curve) editnurb, without the edited shapekey modifications
anymore. This was fixed by tweaking again `calc_shapeKeys()` behavior in

II) The crasher: in `ED_curve_editnurb_make()`, the call to
`init_editNurb_keyIndex()` was directly storing pointers of obdata
nurbs. Since those get freed every time `ED_curve_editnurb_load()` is
executed, it easily ended up being pointers to freed memory. This was
fixed by copying those data, which implied more complex handling code
for editnurbs->keyindex, and some reshuffling of a few functions to
avoid duplicating things between editor's editcurve.c and BKE's curve.c

Note that the separation of functions between editors and BKE area for
curve could use a serious update, it's currently messy to say the least.
Then again, that area is due to rework since a long time now... :/

Finally, aligned 'for_render' curve evaluation to mesh one - now
editing a shapekey will show in rendered viewports, if it does have some
weight (exactly as with shapekeys of meshes).

4 years agoCleanup: remove unused orig_nu from keyIndex ghash of editcurves.
Bastien Montagne [Wed, 22 Feb 2017 17:06:09 +0000 (18:06 +0100)]
Cleanup: remove unused orig_nu from keyIndex ghash of editcurves.

4 years agoCleanup: Style
Julian Eisel [Wed, 22 Feb 2017 17:52:07 +0000 (18:52 +0100)]
Cleanup: Style

4 years agoOpenGL immediate mode: paint_stroke.c
Clément Foucault [Wed, 22 Feb 2017 17:19:42 +0000 (18:19 +0100)]
OpenGL immediate mode: paint_stroke.c

4 years agoDisallow renaming master collection from Outliner
Julian Eisel [Wed, 22 Feb 2017 16:50:10 +0000 (17:50 +0100)]
Disallow renaming master collection from Outliner

Shows warning when trying to do so.

4 years agoUI: Support drag & drop reordering of collections
Julian Eisel [Wed, 22 Feb 2017 15:02:43 +0000 (16:02 +0100)]
UI: Support drag & drop reordering of collections

This adds initial support for reordering collections from the Outliner
using drag & drop.
Although drag & drop support is limited to collections for now, this
lays most foundations for general drag & drop reordering support in the
Outliner. There are some design questions to be answered though:
* Would reordering of other data types (like objects) be a purely visual change or would it affect the order in which they are stored? (Would that make a difference for the user?)
* Should/can we allow mixing of different data types? (e.g. mixing render layers with objects)
* How could we realize this technically?

* "Sort Alphabetically" has to be disabled to use this ("View" menu).
* Reordering only works with collections on the same hierarchy level.
* Added some visual feedback that should work quite well, it's by far not a final design though: {F493806}
* Modified collection orders are stored in .blends.
* Reordering can be undone.
* Did minor cleanups here and there.

4 years agoOpenGl immediate mode: uvedit_smart_stich.c
Clément Foucault [Wed, 22 Feb 2017 16:22:28 +0000 (17:22 +0100)]
OpenGl immediate mode: uvedit_smart_stich.c

This is a quick fix. A better fix should be to store the batches inside the StitchPreviewer struct.

4 years agoUse new api doc links
Aaron Carlisle [Wed, 22 Feb 2017 16:17:09 +0000 (11:17 -0500)]
Use new api doc links

Differential Revision:

4 years agoOpenGl immediate mode: fix false positive (again)
Clément Foucault [Wed, 22 Feb 2017 13:27:04 +0000 (14:27 +0100)]
OpenGl immediate mode: fix false positive (again)

4 years agoOpenGL: Fix Object Axes color
Clément Foucault [Wed, 22 Feb 2017 13:24:09 +0000 (14:24 +0100)]
OpenGL: Fix Object Axes color

4 years agoOpenGl immediate mode: Fix false positive
Clément Foucault [Wed, 22 Feb 2017 13:23:20 +0000 (14:23 +0100)]
OpenGl immediate mode: Fix false positive

4 years agoOpenGl immediate mode: screen_draw.c
Clément Foucault [Wed, 22 Feb 2017 13:05:56 +0000 (14:05 +0100)]
OpenGl immediate mode: screen_draw.c

4 years agoFix Cycles still saving render output when error happened
Sergey Sharybin [Wed, 22 Feb 2017 12:06:24 +0000 (13:06 +0100)]
Fix Cycles still saving render output when error happened

This was fixed ages ago for the interface case but not for the
command line. The thing here is that currently external engines
are relying on reports system to indicate that error happened
so suppressing reports storage in the background mode prevented
render pipeline from detecting errors happened.

This is all weak and i don't like it, but this is better than
delivering black frames from the farm.

4 years agoClay Engine: Started Armature drawing
Clément Foucault [Wed, 22 Feb 2017 12:00:15 +0000 (13:00 +0100)]
Clay Engine: Started Armature drawing

This should give the overall direction to whom wants to finish it.

- Renamed EDIT mode engine to EDIT_MESH mode engine
- Introduce EDIT_ARMATURE mode engine
- Started to port legacy drawarmature.c to draw_armature.c

4 years agoClay Engine: Renaming shader.
Clément Foucault [Wed, 22 Feb 2017 11:50:03 +0000 (12:50 +0100)]
Clay Engine: Renaming shader.

4 years agoClay Engine: Prepare for Armature drawing.
Clément Foucault [Wed, 22 Feb 2017 11:46:27 +0000 (12:46 +0100)]
Clay Engine: Prepare for Armature drawing.

- Added runtime display matrices to EditBone and bPoseChannel
- Added Object space instance vertex shader and modified the simple lighting shader accordingly

4 years agoClay Engine: Fix Memory Leak.
Clément Foucault [Wed, 22 Feb 2017 11:19:10 +0000 (12:19 +0100)]
Clay Engine: Fix Memory Leak.

4 years agoCycles: Fix shading with autosmooth and custom normals
Sergey Sharybin [Wed, 22 Feb 2017 09:53:28 +0000 (10:53 +0100)]
Cycles: Fix shading with autosmooth and custom normals

New logic of split_faces was leaving mesh in a proper state
from Blender's point of view, but Cycles wanted loop normals
to be "flushed" to vertex normals.

Now we do such a flush from Cycles side again, so we don't
leave bad meshes behind.

Thanks Bastien for assistance here!

4 years agoCycles: Additionally report all OpenCL cflags
Sergey Sharybin [Wed, 22 Feb 2017 09:04:13 +0000 (10:04 +0100)]
Cycles: Additionally report all OpenCL cflags

This way we can control exact spaces and such added to the cflags
which is crucial to troubleshoot certain drivers.

4 years agoRefactor Mesh split_faces() code to use loop normal spaces.
Bastien Montagne [Wed, 22 Feb 2017 08:40:46 +0000 (09:40 +0100)]
Refactor Mesh split_faces() code to use loop normal spaces.

Finding which loop should share its vertex with which others is not easy
with regular Mesh data (mostly due to lack of advanced topology info, as
opposed with BMesh case).

Custom loop normals computing already does that - and can return 'loop
normal spaces', which among other things contain definitions of 'smooth
fans' of loops around vertices.

Using those makes it easy to find vertices (and then edges) that needs

This commit also adds support of non-autosmooth meshes, where we want to
split out flat faces from smooth ones.

4 years agoFix Drawing nested box layouts (D2508)
raa [Tue, 21 Feb 2017 18:02:56 +0000 (21:02 +0300)]
Fix Drawing nested box layouts (D2508)

4 years agoCycles: Speedup by avoiding extra calculations in noise texture when unneeded
Mai Lavelle [Tue, 21 Feb 2017 12:24:33 +0000 (07:24 -0500)]
Cycles: Speedup by avoiding extra calculations in noise texture when unneeded

Noise texture is now faster when the color socket is unused. Potential for
speedup spotted by @nutel.

Some performance results:

                     Render Time Before    After    Difference
Gooseberry benchmark         47:51.34    45:55.57       -4%
Koro                         12:24.92    12:18.46     -0.8%
Simple cube (Color socket)      48.53       48.72     +0.3%
Simple cube (Fac socket)        48.74       32.78    -32.7%
Goethe displacement           1:21.18     1:08.47    -15.6%
Cycles brick displacement     3:02.38     2:16.76    -25.0%
Large displacement scene     23:54.12    20:09.62    -15.6%

Reviewed By: sergey

Differential Revision:

4 years agoCleanup: use proper link to the api
Aaron Carlisle [Tue, 21 Feb 2017 01:19:07 +0000 (20:19 -0500)]
Cleanup: use proper link to the api

4 years agoOpenGL immediate mode: interface_widgets.c
Clément Foucault [Mon, 20 Feb 2017 20:21:04 +0000 (21:21 +0100)]
OpenGL immediate mode: interface_widgets.c

Added rgba_float_args_set_ch to BLI_math_color.h

4 years agoOpenGL immediate mode: interface_panel.c
Clément Foucault [Mon, 20 Feb 2017 14:17:23 +0000 (15:17 +0100)]
OpenGL immediate mode: interface_panel.c

4 years agoFix T50718: Regression: Split Normals Render Problem with Cycles
Sergey Sharybin [Mon, 20 Feb 2017 10:56:02 +0000 (11:56 +0100)]
Fix T50718: Regression: Split Normals Render Problem with Cycles

The issue seems to be caused by vertex normal being re-calculated
to something else than loop normal, which also caused wrong loop
normals after re-calculation.

For now issue is solved by preserving CD_NORMAL for loops after
split_faces() is finished, so render engine can access original
proper value.

4 years agoMesh faces split: Add missing vertex normal copy
Sergey Sharybin [Mon, 20 Feb 2017 10:47:43 +0000 (11:47 +0100)]
Mesh faces split: Add missing vertex normal copy

4 years agoFix T50719: Memory usage won't reset to zero while re-rendering on two video cards
Sergey Sharybin [Mon, 20 Feb 2017 10:02:19 +0000 (11:02 +0100)]
Fix T50719: Memory usage won't reset to zero while re-rendering on two video cards

Was only visible with Persistent Images option ON.

4 years agoUse Git submodule tracking feature
Sergey Sharybin [Mon, 20 Feb 2017 09:16:58 +0000 (10:16 +0100)]
Use Git submodule tracking feature

This way we can point submodules to different branches.

There are two side-effects to this:

- Git 1.8.2 becomes the minimal required version now
  to support this feature.

- Not sure how doing local changes in submodules followed
  by `make update` will behave. We don't use explicit rebase

  Perhaps this is not so bad, since it was already quite
  dangerous thing to do.

4 years agoPoint addons to 2.8 branch
Sergey Sharybin [Mon, 20 Feb 2017 09:14:25 +0000 (10:14 +0100)]
Point addons to 2.8 branch

4 years agoClay Engine: Use G.debug_value to test cache performance
Clément Foucault [Sun, 19 Feb 2017 13:31:02 +0000 (14:31 +0100)]
Clay Engine: Use G.debug_value to test cache performance

Use debug 666 for cache without instance buffer caching.
Use debug 667 for cache with instance buffer caching.

4 years agoOpenGL immediate mode: transform_manipulator.c
Clément Foucault [Sun, 19 Feb 2017 12:59:47 +0000 (13:59 +0100)]
OpenGL immediate mode: transform_manipulator.c

4 years agoOpenGL: fix MVP matrix order
Mike Erwin [Sun, 19 Feb 2017 00:53:55 +0000 (19:53 -0500)]
OpenGL: fix MVP matrix order

Numbers were correct but names were mixed up.

4 years agoFix a few compiler warnings with macOS / clang.
Brecht Van Lommel [Sat, 18 Feb 2017 22:52:31 +0000 (23:52 +0100)]
Fix a few compiler warnings with macOS / clang.

4 years agoFix T50564: 3D view panning with scroll wheel inconsistent with dragging.
Brecht Van Lommel [Sat, 18 Feb 2017 16:25:12 +0000 (17:25 +0100)]
Fix T50564: 3D view panning with scroll wheel inconsistent with dragging.

4 years agofix OpenGL line count in VSE backdrop
Mike Erwin [Sat, 18 Feb 2017 20:39:21 +0000 (15:39 -0500)]
fix OpenGL line count in VSE backdrop

4 years agoFixup for last commit :/
Dalai Felinto [Fri, 17 Feb 2017 21:29:53 +0000 (22:29 +0100)]
Fixup for last commit :/

4 years agoFix crash introduced in engine separation (50fb3ea3)
Dalai Felinto [Fri, 17 Feb 2017 21:24:08 +0000 (22:24 +0100)]
Fix crash introduced in engine separation (50fb3ea3)

Basically DEG_OBJECT_ITER (or rather,
BKE_scene_layer_engine_settings_update) wasn't creating
Object->collection_settings data for invisible objects.

Now I'm removing those objects from the loop entirely. If we are to
bring them back we need to either create CollectionEngineSettings dat
from them or to skip them in DRW_mode_cache_populate.

4 years agoOpenGL: further mask_draw tweaks
Mike Erwin [Fri, 17 Feb 2017 20:41:47 +0000 (15:41 -0500)]
OpenGL: further mask_draw tweaks

- smooth round points
- fewer state changes
- minor cleanup & warning fix

This is a follow-up to rB84141f27a668

4 years agoFix bplayer (c)
Bastien Montagne [Fri, 17 Feb 2017 19:07:13 +0000 (20:07 +0100)]
Fix bplayer (c)

4 years agoFix building without Clay engine.
Bastien Montagne [Fri, 17 Feb 2017 19:06:31 +0000 (20:06 +0100)]
Fix building without Clay engine.

4 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Fri, 17 Feb 2017 19:03:55 +0000 (20:03 +0100)]
Merge branch 'master' into blender2.8


4 years agobug in DEG_OBJECT_ITER
Dalai Felinto [Fri, 17 Feb 2017 18:37:11 +0000 (19:37 +0100)]

4 years agoFix T50614: Curve doesn't restore initial form after deleting all its shapekeys
Bastien Montagne [Fri, 17 Feb 2017 17:55:52 +0000 (18:55 +0100)]
Fix T50614: Curve doesn't restore initial form after deleting all its shapekeys

Logic of handling shapekeys when entering and leaving edit mode for
curves was... utterly broken.

Was leaving actual curve data with edited shapekey applied to it.

4 years agoLayers: Fix unittest after 65a75e11
Dalai Felinto [Fri, 17 Feb 2017 17:20:41 +0000 (18:20 +0100)]
Layers: Fix unittest after 65a75e11

4 years agoLayer/Outliner: add a few operators that I need for the video demo
Dalai Felinto [Fri, 17 Feb 2017 14:31:16 +0000 (15:31 +0100)]
Layer/Outliner: add a few operators that I need for the video demo

4 years agoLayer: change default name of doversion layer (Viewport now)
Dalai Felinto [Fri, 17 Feb 2017 14:30:54 +0000 (15:30 +0100)]
Layer: change default name of doversion layer (Viewport now)

4 years agoFollow up on mode engine code separation
Dalai Felinto [Fri, 17 Feb 2017 16:53:51 +0000 (17:53 +0100)]
Follow up on mode engine code separation

The settings initialization belong within the engines

4 years agoClay Engine: Separate mode drawing to different files/engines.
Clément Foucault [Fri, 17 Feb 2017 16:29:43 +0000 (17:29 +0100)]
Clay Engine: Separate mode drawing to different files/engines.

4 years agoLayers: Fix visibility evalution + Unittesting
Dalai Felinto [Fri, 17 Feb 2017 12:08:24 +0000 (13:08 +0100)]
Layers: Fix visibility evalution + Unittesting

test_evaluation_visibility_a failed before, but it is now fixed
test_evaluation_visibility_b passed before and was used as control to make sure it was not broken

4 years agoRemove unused functions related to distance between BoundBox and ray
Germano Cavalcante [Fri, 17 Feb 2017 12:49:20 +0000 (09:49 -0300)]
Remove unused functions related to distance between BoundBox and ray

4 years agoLayers: ob.visible_get()
Dalai Felinto [Fri, 17 Feb 2017 11:57:12 +0000 (12:57 +0100)]
Layers: ob.visible_get()

Similar to ob.select_get(), but for BASE_VISIBLED.

4 years agoLayers: Fix crash on opening files saved in clay
Dalai Felinto [Fri, 17 Feb 2017 10:02:25 +0000 (11:02 +0100)]
Layers: Fix crash on opening files saved in clay

Basically we were not tagging the layers and bases as dirty. As usual this will likely change once Depsgraph kicks in. But this will do for now.

4 years agoOpenGL: mask_draw uses new imm mode
Mike Erwin [Fri, 17 Feb 2017 08:23:26 +0000 (03:23 -0500)]
OpenGL: mask_draw uses new imm mode

Based on D2371 from @ryry. Mostly T49043, a little T49042.
Deleted some unused drawing code instead of updating it.
I have a few more things in mind for this file... tomorrow!

4 years agoForgotten in last commit: Check the allocation
Germano Cavalcante [Fri, 17 Feb 2017 02:41:38 +0000 (23:41 -0300)]
Forgotten in last commit: Check the allocation

4 years agoOpenGL immediate mode: sequencer_draw.c (finished)
Luca Rood [Fri, 17 Feb 2017 00:18:42 +0000 (22:18 -0200)]
OpenGL immediate mode: sequencer_draw.c (finished)

Converted the remaining diagonal stripes thingies...

Part of T49043

4 years agoAdd diagonal stripe shader (GPU_SHADER_2D_DIAG_STRIPES)
Luca Rood [Thu, 16 Feb 2017 23:49:20 +0000 (21:49 -0200)]
Add diagonal stripe shader (GPU_SHADER_2D_DIAG_STRIPES)

Reviewed By: merwin

Differential Revision:

4 years agoDo not release the arrays used in the parameters of the expanded functions of bvhutils
Germano Cavalcante [Fri, 17 Feb 2017 01:55:01 +0000 (22:55 -0300)]
Do not release the arrays used in the parameters of the expanded functions of bvhutils

The release of these arrays should be the programmer's discretion since these arrays can continue to be used.

Only the expanded functions `bvhtree_from_mesh_edges_ex` and `bvhtree_from_mesh_looptri_ex` are currently being used in blender (in mesh_remap.c), and from what I could to analyze, these changes can prevent a crash.

4 years agoMake File: Print 'blender.exe' at the end of the path to run from
Aaron Carlisle [Thu, 16 Feb 2017 22:08:33 +0000 (17:08 -0500)]
Make File: Print 'blender.exe' at the end of the path to run from

4 years agoCleanup: Spelling, Spaces --> Tabs, Whitespace
Aaron Carlisle [Thu, 16 Feb 2017 22:06:03 +0000 (17:06 -0500)]
Cleanup: Spelling, Spaces --> Tabs, Whitespace

4 years agoblender2.8: New immediate mode for sculpt_uv.c
TCMBoby [Thu, 16 Feb 2017 20:54:28 +0000 (21:54 +0100)]
blender2.8: New immediate mode for sculpt_uv.c

[Note: this patch functionality was implemented in parallel, independently at bf83f097ad7e
That said, the original patch was also removing an unnecessary include,
so here it is]

Replaced the one call to `glutil_draw_lined_arc`.
This seems to be the only draw call in this file.

Reviewers: merwin

Tags: #bf_blender_2.8

Maniphest Tasks: T49043

Differential Revision:

4 years agoMinor cleanup in sequencer_draw.c
Luca Rood [Thu, 16 Feb 2017 20:44:37 +0000 (18:44 -0200)]
Minor cleanup in sequencer_draw.c

Minor style cleanup, and also replaced manual checker drawing by a call
to `imm_draw_checker_box`.

Part of T49043

4 years agoOpenGL immediate mode: clip_draw.c
Luca Rood [Thu, 16 Feb 2017 02:56:13 +0000 (00:56 -0200)]
OpenGL immediate mode: clip_draw.c

Part of T49043

4 years agoAdd imm_draw_checker_box function
Luca Rood [Thu, 16 Feb 2017 20:22:28 +0000 (18:22 -0200)]
Add imm_draw_checker_box function

This replaces `fdrawcheckerboard` in drawing a standard gray
checkerboard for alpha backgrounds.

4 years agoDoversion: merge collection engine properties
Dalai Felinto [Thu, 16 Feb 2017 19:02:17 +0000 (20:02 +0100)]
Doversion: merge collection engine properties

This is a more complex approach, which makes me really want to use
IDProperty instead (assuming we handle their merging nicely).

In fact I would expect this to happen in readfile.c, not during
doversion, but I can revert this later.

For now this allow for demo files saved with 2.8 to keep working even
after we add/remove engine settings properties.

The values are merged. There is no purge though, so
old CollectionEngineSettings and CollectionEngineProperty will live
forever (for the time being).

4 years agoDoversion: reset layer collection properties when needed
Dalai Felinto [Thu, 16 Feb 2017 17:45:41 +0000 (18:45 +0100)]
Doversion: reset layer collection properties when needed

This prevents crashes when a file was saved with 2.8, but a new
engine settings property was created.

In those cases any previous collection settings are wiped out. We can do
an elegant merge soon.

4 years agoLayer: add name to mode engines
Dalai Felinto [Thu, 16 Feb 2017 19:00:29 +0000 (20:00 +0100)]
Layer: add name to mode engines

4 years agoUI: Move 'relations extras' right below 'relations'
Aaron Carlisle [Thu, 16 Feb 2017 17:01:07 +0000 (12:01 -0500)]
UI: Move 'relations extras' right below 'relations'

Differential Revision:

4 years agoFix T50687: Cycles baking time estimate and progress bar doesn't work / progress...
Sergey Sharybin [Thu, 16 Feb 2017 16:15:08 +0000 (17:15 +0100)]
Fix T50687: Cycles baking time estimate and progress bar doesn't work / progress when baking with high samples

4 years agoClay Engine: Fix Cursor too bold
Clément Foucault [Thu, 16 Feb 2017 15:20:15 +0000 (16:20 +0100)]
Clay Engine: Fix Cursor too bold

4 years agoClay Engine: Correct Mesh Normals
Clément Foucault [Thu, 16 Feb 2017 15:19:48 +0000 (16:19 +0100)]
Clay Engine: Correct Mesh Normals

4 years agoClay Engine: Fix Axis Name shader
Clément Foucault [Thu, 16 Feb 2017 13:24:50 +0000 (14:24 +0100)]
Clay Engine: Fix Axis Name shader

4 years agoOutliner collection operators: linking!
Dalai Felinto [Thu, 16 Feb 2017 15:01:15 +0000 (16:01 +0100)]
Outliner collection operators: linking!

4 years agoRegister test for mesh.split_faces()
Sergey Sharybin [Thu, 16 Feb 2017 14:36:00 +0000 (15:36 +0100)]
Register test for mesh.split_faces()

4 years agoOutliner collection operators, all but collection link
Dalai Felinto [Thu, 16 Feb 2017 09:54:09 +0000 (10:54 +0100)]
Outliner collection operators, all but collection link

Note: It may be missing a notifier to prevent Outliner from crashing
when deleting collections.

4 years agoClay Engine: Hidden wire
Clément Foucault [Thu, 16 Feb 2017 13:00:37 +0000 (14:00 +0100)]
Clay Engine: Hidden wire

4 years agoClay Engine: Wire and Backface cull collection settings.
Clément Foucault [Thu, 16 Feb 2017 11:59:06 +0000 (12:59 +0100)]
Clay Engine: Wire and Backface cull collection settings.

4 years agoClay Engine: Fix grid not showing.
Clément Foucault [Thu, 16 Feb 2017 11:58:28 +0000 (12:58 +0100)]
Clay Engine: Fix grid not showing.

4 years agoFaces split: Don't leave CD_NORMAL after split
Sergey Sharybin [Thu, 16 Feb 2017 10:00:17 +0000 (11:00 +0100)]
Faces split: Don't leave CD_NORMAL after split

This is supposed to be a temporary layer.

If someone needs loop normals after split it should explicitly
ask for that.

4 years agoCyctes tests: Commit blender.git side changes
Sergey Sharybin [Thu, 16 Feb 2017 09:36:22 +0000 (10:36 +0100)]
Cyctes tests: Commit blender.git side changes