blender.git
3 years agoKTX file format: KTX_support
Antony Riakiotakis [Fri, 14 Aug 2015 16:54:24 +0000 (18:54 +0200)]
KTX file format:

Support flipped images.

Two issues here:

* We need to check the metadata for flipped flags
* We need to invert compressed images (they are stored
inverted on GPU).

Not sure if all combinations are correct here (missing reference
material to make the decision), so will assume all is OKish for now.

3 years agoMerge branch 'master' into KTX_support
Antony Riakiotakis [Fri, 14 Aug 2015 13:18:46 +0000 (15:18 +0200)]
Merge branch 'master' into KTX_support

Conflicts:
source/blender/blenkernel/BKE_image.h
source/blender/blenkernel/intern/dynamicpaint.c
source/blender/blenkernel/intern/image.c
source/blender/blenkernel/intern/movieclip.c
source/blender/blenkernel/intern/sequencer.c
source/blender/editors/space_image/image_buttons.c
source/blender/editors/space_image/image_ops.c
source/blender/gpu/intern/gpu_draw.c
source/blender/imbuf/IMB_imbuf_types.h
source/blender/imbuf/intern/allocimbuf.c
source/blender/imbuf/intern/cineon/cineon_dpx.c
source/blender/imbuf/intern/jp2.c
source/blender/imbuf/intern/jpeg.c
source/blender/imbuf/intern/openexr/openexr_api.cpp
source/blender/imbuf/intern/png.c
source/blender/imbuf/intern/targa.c
source/blender/imbuf/intern/tiff.c
source/blender/makesrna/intern/rna_image.c
source/gameengine/Ketsji/BL_Texture.cpp

3 years agoCleanup: style
Campbell Barton [Fri, 14 Aug 2015 07:46:26 +0000 (17:46 +1000)]
Cleanup: style

3 years agoDocs: comment BHead.code values
Campbell Barton [Fri, 14 Aug 2015 07:30:32 +0000 (17:30 +1000)]
Docs: comment BHead.code values

3 years agoAdd real boundbox support to lattice, and update armature one.
Philipp Oeser [Thu, 13 Aug 2015 16:12:08 +0000 (18:12 +0200)]
Add real boundbox support to lattice, and update armature one.

* draw lattice boundingboxes in 3dView [if "show_bounds" is used -- an option previously pretty useless for lattices]
* give proper values for lattice objects ".bound_box" in bpy
* give proper values for armature objects ".bound_box" in bpy
* lets users use "Dimensions" [in 3dView Transform panel] on lattices and armatures
* remove redundant calculations in "boundbox_armature()"

Armatures boundingboxes were already drawn in 3dView, if "show_bounds" was used.

Based on report T45735: Lattice's bounding_box doesn't update,
and a comment in code by @campbellbarton ("later we may want to add dimensions for lattice, armature etc too").

Revision: https://developer.blender.org/D1460

3 years agoFix T45783: Problem selecting all objects on a layer from a script if any 3d view...
Bastien Montagne [Thu, 13 Aug 2015 12:25:26 +0000 (14:25 +0200)]
Fix T45783: Problem selecting all objects on a layer from a script if any 3d view is in local mode.

Do not take into account lay bits used for local view, when doing exact match.

3 years agoFix T45782: bpy.ops.object.select_by_layer match='SHARED' option is not working.
Bastien Montagne [Thu, 13 Aug 2015 11:18:45 +0000 (13:18 +0200)]
Fix T45782: bpy.ops.object.select_by_layer match='SHARED' option is not working.

Looks like some half-done change from enum to bool (or vice-versa), that op was just broken!

3 years agoFix T45775: Bad 'Normal' transform space for edge of non-uniformed scaled object.
Bastien Montagne [Thu, 13 Aug 2015 10:45:13 +0000 (12:45 +0200)]
Fix T45775: Bad 'Normal' transform space for edge of non-uniformed scaled object.

Non-uniform scaled obmat will lead to transformation not preserving angles, so
we must ensure our normal is orthogonal to the edge **after** applying obmat.

3 years agoDisplace Modifier: add an option to displace along (averaged) custom normals, instead...
Bastien Montagne [Wed, 12 Aug 2015 16:21:41 +0000 (18:21 +0200)]
Displace Modifier: add an option to displace along (averaged) custom normals, instead of vertex normals.

User suggestion/request from 'boby'.

3 years agoFix T45739: Number slider precision handling inconsistent between unit systems.
Bastien Montagne [Wed, 12 Aug 2015 14:41:52 +0000 (16:41 +0200)]
Fix T45739: Number slider precision handling inconsistent between unit systems.

When using unit system, step was multiplied by 100, could really not find any good reason to that.
Easy to revert anyway if needed, but in this case please explain why in code. ;)

Investigated and patch by Thomas Radeke (ThomasR), thanks.

3 years agoFix T44049, edge bevel with sometimes breaks UVs.
Howard Trickey [Wed, 12 Aug 2015 14:18:58 +0000 (10:18 -0400)]
Fix T44049, edge bevel with sometimes breaks UVs.
Fairly large changes to bevel code to do a better job
of keeping UVs from crossing islands, etc.
Updated http://wiki.blender.org/index.php/Dev:2.5/Source/Modeling/Bevel
to explain algorithm used for maintaining UVs.
Updated the bevel_regression.blend tests in lib tests.

3 years agoFix 'hard crash' part of T45768 (when merging all vertices of a mesh, we have no...
Bastien Montagne [Wed, 12 Aug 2015 09:42:35 +0000 (11:42 +0200)]
Fix 'hard crash' part of T45768 (when merging all vertices of a mesh, we have no more edges to draw).

3 years agoUsual UI message cleanup/fixes.
Bastien Montagne [Tue, 11 Aug 2015 20:29:16 +0000 (22:29 +0200)]
Usual UI message cleanup/fixes.

3 years agoinstall_deps: fix broken force/skip-osd options.
Bastien Montagne [Tue, 11 Aug 2015 20:08:01 +0000 (22:08 +0200)]
install_deps: fix broken force/skip-osd options.

Bash scripts are such a PITA, having to redefine the options in three different places... :(

3 years agoBGE: Fix delete constraint for replicated physics controllers.
Porteries Tristan [Tue, 11 Aug 2015 19:48:06 +0000 (21:48 +0200)]
BGE: Fix delete constraint for replicated physics controllers.

Replicated controllers didn't free constraints list before.

3 years agoCycles: Enable some extra debug prints for OpenCL kernel loading
Sergey Sharybin [Tue, 11 Aug 2015 16:03:54 +0000 (18:03 +0200)]
Cycles: Enable some extra debug prints for OpenCL kernel loading

3 years agoBGE: Fix T38448: Bullet constraint memory leak.
Porteries Tristan [Tue, 11 Aug 2015 10:56:57 +0000 (12:56 +0200)]
BGE: Fix T38448: Bullet constraint memory leak.

3 years agoAdd WM_event_add/remove_timer_notifier() helpers.
Bastien Montagne [Tue, 11 Aug 2015 10:11:48 +0000 (12:11 +0200)]
Add WM_event_add/remove_timer_notifier() helpers.

This basically does the 'timer' part of Jobs system: it sends a given notifier on every timer step.

This is needed for background tasks (not full-fledged jobs, lighter BLI_tasks based) that want to update UI
(like for up-comming new thumbnail handling in filebrowser).

3 years agoBGE: Fix T33187 constraints replication for libloaded objects.
Porteries Tristan [Mon, 10 Aug 2015 20:42:52 +0000 (22:42 +0200)]
BGE: Fix T33187 constraints replication for libloaded objects.

Reviewers: Moguri

3 years agoUI drag&drop: make code able to free dragpoin if needed.
Bastien Montagne [Mon, 10 Aug 2015 16:01:11 +0000 (18:01 +0200)]
UI drag&drop: make code able to free dragpoin if needed.

Only for image and strings for now. Needed for incomming filebrowser work.

3 years agoData previews: add utils to generate/clear previews.
Bastien Montagne [Mon, 10 Aug 2015 15:26:37 +0000 (17:26 +0200)]
Data previews: add utils to generate/clear previews.

Not much to add, you can now clear previews from current .blend file, or a set of non-opened files.
Likewise, you can generate previews (for mat/tex, objects, groups, scenes, ...).

3 years agoBGE: Fix T33564: UI obstacle panel disable for character and no collision objects.
Porteries Tristan [Mon, 10 Aug 2015 15:24:19 +0000 (17:24 +0200)]
BGE: Fix T33564: UI obstacle panel disable for character and no collision objects.

3 years agoCycles: Fix for typo in previous commit
Sergey Sharybin [Mon, 10 Aug 2015 15:24:14 +0000 (17:24 +0200)]
Cycles: Fix for typo in previous commit

3 years agoBGE: Fix T19377 restore dynamics after unparenting object.
Porteries Tristan [Mon, 10 Aug 2015 12:36:54 +0000 (14:36 +0200)]
BGE: Fix T19377 restore dynamics after unparenting object.

Reviewers: scorpion81

3 years agoData previews: add preview to Object, Group and Scene.
Bastien Montagne [Mon, 10 Aug 2015 13:41:28 +0000 (15:41 +0200)]
Data previews: add preview to Object, Group and Scene.

This commit does not add anything yet to users, it’s purely internal one.
Useful commit is next. ;)

3 years agoBLI_threads: add an helper to wait on a condition using a global mutex.
Bastien Montagne [Mon, 10 Aug 2015 13:03:31 +0000 (15:03 +0200)]
BLI_threads: add an helper to wait on a condition using a global mutex.

Also, factorized internal code to get global mutex from its ID.

3 years agoInstall_deps: add basic listing of needed dependencies to error message for unsupport...
Bastien Montagne [Mon, 10 Aug 2015 11:09:57 +0000 (13:09 +0200)]
Install_deps: add basic listing of needed dependencies to error message for unsupported distro.

3 years agoBGE: Fix T44782 suspend/restore dynamics on inactive object.
Porteries Tristan [Sat, 8 Aug 2015 19:54:08 +0000 (21:54 +0200)]
BGE: Fix T44782 suspend/restore dynamics on inactive object.

3 years agoInstall_deps: add (non-tested) OSD-building code.
Bastien Montagne [Sun, 9 Aug 2015 13:58:53 +0000 (15:58 +0200)]
Install_deps: add (non-tested) OSD-building code.

Not tested for fedora-like and arch distro, would expect it to work though. Please report otherwise.

Also, always inatll git now (and a few other XOrg -dev packages).

3 years agoinstall_deps: Add libxcursor packages, seems to be needed now?
Bastien Montagne [Sun, 9 Aug 2015 13:40:59 +0000 (15:40 +0200)]
install_deps: Add libxcursor packages, seems to be needed now?

3 years agoCompile fix cycles network. This code is crusty and not super
Martijn Berger [Sun, 9 Aug 2015 13:31:32 +0000 (15:31 +0200)]
Compile fix cycles network. This code is crusty and not super
functional. But is should compile.

3 years agoCycles: Follow up on cc0bbc28 (Collapse multiview panel)
Dalai Felinto [Sun, 9 Aug 2015 03:25:34 +0000 (00:25 -0300)]
Cycles: Follow up on cc0bbc28 (Collapse multiview panel)

3 years agoOptimize reading of fcurves
Sergey Sharybin [Sat, 8 Aug 2015 20:17:03 +0000 (22:17 +0200)]
Optimize reading of fcurves

Reading fcurves wasn't really optimal because restoring fcu->group pointer was
changing lasthit pointer, which required full lookup over the oldnewmap happened
at the next call to newdatadr().

This reduces loading franck_sheep.blend file from ~2.2sec to 1.5sec.

3 years agoCollapse multiview panel in render layers by default
Sergey Sharybin [Sat, 8 Aug 2015 18:52:47 +0000 (20:52 +0200)]
Collapse multiview panel in render layers by default

This is not so much common panel to access to and having it fully
visible just adds clutterness in cases when one only need to work
with render passes.

3 years agoFix for SeqCache hash ignoring multi-view
Campbell Barton [Sun, 9 Aug 2015 03:46:18 +0000 (13:46 +1000)]
Fix for SeqCache hash ignoring multi-view

Thanks to @chadf for finding

3 years agoFix: opening missing file didnt remove in recent-files.txt
Campbell Barton [Sun, 9 Aug 2015 02:53:09 +0000 (12:53 +1000)]
Fix: opening missing file didnt remove in recent-files.txt

Refactor recent-file.txt handling, split into smaller functions.
It wasn't possible to write the current state to disk (depended on current context).

3 years agoSPeedup for particle point cache reading
Sergey Sharybin [Sat, 8 Aug 2015 17:50:11 +0000 (19:50 +0200)]
SPeedup for particle point cache reading

Order of saving and reading particle point cache was totally different which
made newdataadr() falling back to full data block list traversal for every
point cache entry.

This commit makes it so reading code uses the same order of reading structs
and lists ad the writing code. This required to add special version of list
linking which is capable of running a callback after linking a list element.
This seems to be more robust approach than splitting writing code into
several loops.

3 years agoFix T45705: Selected to Active Cycles Baking no longer working
Dalai Felinto [Sat, 8 Aug 2015 17:40:41 +0000 (14:40 -0300)]
Fix T45705: Selected to Active Cycles Baking no longer working

3 years agoUse polygon normals for baking
Campbell Barton [Sun, 9 Aug 2015 01:05:25 +0000 (11:05 +1000)]
Use polygon normals for baking

3 years agoFix crash baking in cycles
Campbell Barton [Sat, 8 Aug 2015 22:28:58 +0000 (08:28 +1000)]
Fix crash baking in cycles

Error in recent move to looptri

3 years agoSupport building OpenSubdiv libraries under Debian (Ubuntu) with our build_deps.sh...
Thomas Beck [Sat, 8 Aug 2015 12:12:02 +0000 (14:12 +0200)]
Support building OpenSubdiv libraries under Debian (Ubuntu) with our build_deps.sh script.

Use --skip-osd to skip building opensubdiv libs,
use --force-osd to force a rebuild of the libs.

I added all needed user information (where to find the include dir, which -D options to set) to the print_info method that is called at the end too, so it should be pretty intuitive to use.

Reviewers: sergey, mont29

Reviewed By: mont29

Subscribers: mont29

Differential Revision: https://developer.blender.org/D1452

3 years agoRemove leftover from sticky keys
Julian Eisel [Sat, 8 Aug 2015 00:37:03 +0000 (02:37 +0200)]
Remove leftover from sticky keys

3 years agoFix T45726: Wrong handling of 'failed to generate' audio waveform data in VSE strip...
Bastien Montagne [Fri, 7 Aug 2015 21:42:32 +0000 (23:42 +0200)]
Fix T45726: Wrong handling of 'failed to generate' audio waveform data in VSE strip draw code.

3 years agoFix T45715: Blender crashes when creating Environment Map textures in Multi-View...
Dalai Felinto [Fri, 7 Aug 2015 18:46:18 +0000 (15:46 -0300)]
Fix T45715: Blender crashes when creating Environment Map textures in Multi-View mode

3 years agoFix T45721: Panoramic render in Cycles camera : depth of field issue with bump maps...
Dalai Felinto [Fri, 7 Aug 2015 16:41:16 +0000 (13:41 -0300)]
Fix T45721: Panoramic render in Cycles camera : depth of field issue with bump maps - patch by Brecht Van Lommel

3 years agoData Transfer operator: Add a 'freeze' setting to prevent operator from re-running...
Bastien Montagne [Fri, 7 Aug 2015 14:33:48 +0000 (16:33 +0200)]
Data Transfer operator: Add a 'freeze' setting to prevent operator from re-running when changing settings.

This is likely weak design, but allows people to change several settings without having to wait
several tenth of seconds each time, when e.g. transferring UVs between heavy geometries.

3 years agoFix (unreported) crash in mesh remap (i.e. data transfer).
Bastien Montagne [Fri, 7 Aug 2015 14:18:13 +0000 (16:18 +0200)]
Fix (unreported) crash in mesh remap (i.e. data transfer).

Issue from rBabbd82a50, loops data were not correctly protected against multi-freeing in bvhtree data.

3 years agoMesh remap: Fix two potential numeric issues in corner cases, and enhance poly projec...
Bastien Montagne [Fri, 7 Aug 2015 14:14:54 +0000 (16:14 +0200)]
Mesh remap: Fix two potential numeric issues in corner cases, and enhance poly projection.

Null-area face could generate an int overflow, and potential numerical imprecision in face area computation
could lead to negative number of rays-to-cast (though highly unlikely).

Also, use domnant axis of poly normal as 'flattening' one, instead of always using Z axis.

Points raised by Campbell, thanks!

3 years agoAttempt to fix T45718, crash when enabling GLSL mode with UV layers.
Antony Riakiotakis [Fri, 7 Aug 2015 14:16:23 +0000 (16:16 +0200)]
Attempt to fix T45718, crash when enabling GLSL mode with UV layers.

I can't  reproduce issue here but crash is most likely caused by passing
a NULL pointer to glUniform2fv.

This is caused by OpenSubdiv changes to the codegen module, which pass
mtex layers to the uniform system
even when not needed.

Since Sergey is demoing OpenSubdiv in a few days, I'll
go with the easy fix for now which is just checking for NULL pointer, but
this needs to be fixed properly at some point.

3 years agoFix scrubbing only treated as animation for sequencer
Antony Riakiotakis [Fri, 7 Aug 2015 13:39:32 +0000 (15:39 +0200)]
Fix scrubbing only treated as animation for sequencer

Intent was to act as animation everywhere

3 years agoFix T45713: Numselect for confirm popup not working anymore
Julian Eisel [Fri, 7 Aug 2015 12:39:50 +0000 (14:39 +0200)]
Fix T45713: Numselect for confirm popup not working anymore

3 years agoBGe: Fix T45597 wrong object layer for linked object in blenderplayer.
Porteries Tristan [Thu, 6 Aug 2015 14:58:52 +0000 (16:58 +0200)]
BGe: Fix T45597 wrong object layer for linked object in blenderplayer.

3 years agoFix: Sliders in animeditors were getting drawn too far left
Joshua Leung [Thu, 6 Aug 2015 14:41:33 +0000 (02:41 +1200)]
Fix: Sliders in animeditors were getting drawn too far left

Sliders in for FCurves in the animation editors were leaving space for
one extra setting that they didn't need to be accounting for (and which
wasn't shown, as it isn't valid for FCurves).

3 years agoAnimEditors FModifiers toggle: Add a bit more space beside it so that it doesn't...
Joshua Leung [Thu, 6 Aug 2015 14:38:23 +0000 (02:38 +1200)]
AnimEditors FModifiers toggle: Add a bit more space beside it so that it doesn't seem to collide with the mute toggle

3 years agoFix T45166: Keyframes pasted at wrong position when NLA strip has offset
Joshua Leung [Thu, 6 Aug 2015 14:23:55 +0000 (02:23 +1200)]
Fix T45166: Keyframes pasted at wrong position when NLA strip has offset

Paste keyframes code seemed to have overlooked the NLA mapping issue, causing
keyframes to get pasted in the wrong places.

3 years agoNo need to count layers to check empty
Campbell Barton [Thu, 6 Aug 2015 14:00:02 +0000 (00:00 +1000)]
No need to count layers to check empty

3 years agoGPencil UI: Streamline the data panel workflow
Joshua Leung [Thu, 6 Aug 2015 13:46:06 +0000 (01:46 +1200)]
GPencil UI: Streamline the data panel workflow

Restored the "New Layer" button in the NKEY Grease Pencil panel (as was found
pre-2.73) for two cases:
 1) When no Grease Pencil datablock is active - This shortcut makes it possible to
    add a new layer to start drawing in with a single click again (instead of two
    clicks - one to add a datablock, and a second to add the layer)

 2) When there are no layers - There is no need to display the UI list in this case,
    thus saving a bit more space in the rare cases where this applies.

3 years agoT44932: Disable pressure handling for "poly" mode too
Joshua Leung [Thu, 6 Aug 2015 13:36:27 +0000 (01:36 +1200)]
T44932: Disable pressure handling for "poly" mode too

3 years agoStopGap Fix for T44932: Ignore pressure values when drawing straight line segments...
Joshua Leung [Thu, 6 Aug 2015 13:33:53 +0000 (01:33 +1200)]
StopGap Fix for T44932: Ignore pressure values when drawing straight line segments with GPencil

After some testing of the behaviour of this stuff, it became clear that the current
pressure handling here isn't very useful. The initial point would invariably get a
low pressure value (due to the way that the initial tap needs time to "take"), while
the end of the stroke suffers from similar issues (i.e. when the pen is released).
Meanwhile, the line thickness would flicker while drawing the stroke, as the endpoint
pressure varied.

So, until we find a better way, all straight line segments are now drawn without
pressure sensitivity.

3 years agoTimeline: Make GPencil keyframes slightly taller than normal keyframes to make them...
Joshua Leung [Thu, 6 Aug 2015 13:23:58 +0000 (01:23 +1200)]
Timeline: Make GPencil keyframes slightly taller than normal keyframes to make them easier to distinguish

This commit makes GPencil keyframes in the timeline slightly taller (80% height
vs 60% height) so that they will not be that easily confused.

3 years agoRemove MFace use w/ fluidsim
Campbell Barton [Thu, 6 Aug 2015 12:33:45 +0000 (22:33 +1000)]
Remove MFace use w/ fluidsim

3 years agoDocs: comment BKE_scene_set_background
Campbell Barton [Thu, 6 Aug 2015 11:02:08 +0000 (21:02 +1000)]
Docs: comment BKE_scene_set_background

3 years agoFix typo in cmake when OpenSubdiv is not found
Thomas Beck [Thu, 6 Aug 2015 09:51:18 +0000 (11:51 +0200)]
Fix typo in cmake when OpenSubdiv is not found

3 years agoFix T45695: Assigning material reverts MaterialSlot.link
Campbell Barton [Thu, 6 Aug 2015 08:04:13 +0000 (18:04 +1000)]
Fix T45695: Assigning material reverts MaterialSlot.link

Setting the material was resetting the link bit, this is OK from the UI,
confusing for scripts.

3 years agoOpenSubdiv: Make sure faces are exported with consistent normal
Sergey Sharybin [Thu, 6 Aug 2015 07:49:13 +0000 (09:49 +0200)]
OpenSubdiv: Make sure faces are exported with consistent normal

This is currently a requirement of OpenSudiv and original orientation code
was depending on this quite a lot.

This makes mesh conversion and comparison slower but solves some crashes.
With some trickery it could be optimized and become closer to original
performance.

Probably Campbell has some nice ideas here as well :)

3 years agoSimplify defvert_remove_group(), use realloc
Campbell Barton [Thu, 6 Aug 2015 06:52:39 +0000 (16:52 +1000)]
Simplify defvert_remove_group(), use realloc

Patch by @chadf

3 years agoCleanup: unused warning
Campbell Barton [Thu, 6 Aug 2015 06:52:28 +0000 (16:52 +1000)]
Cleanup: unused warning

3 years agoCMake: AUDASPACE_ROOT_DIR wasn't working
Campbell Barton [Thu, 6 Aug 2015 02:59:39 +0000 (12:59 +1000)]
CMake: AUDASPACE_ROOT_DIR wasn't working

3 years agoCleanup: style (match other find modules)
Campbell Barton [Thu, 6 Aug 2015 02:55:54 +0000 (12:55 +1000)]
Cleanup: style (match other find modules)

3 years agoCleanup: whitespace, unused var
Campbell Barton [Thu, 6 Aug 2015 02:34:31 +0000 (12:34 +1000)]
Cleanup: whitespace, unused var

3 years agoCleanup: whitespace
Campbell Barton [Thu, 6 Aug 2015 02:34:19 +0000 (12:34 +1000)]
Cleanup: whitespace

3 years agoFix T45691 crash on material view
Antony Riakiotakis [Wed, 5 Aug 2015 23:09:07 +0000 (01:09 +0200)]
Fix T45691 crash on material view

Call glProgramUniform1i only when OpenSubdiv is requested and only when
the GPU supports it.

3 years agoFix T45693: Fix for using 4-component vector as 3 component in osd shader
Sergey Sharybin [Wed, 5 Aug 2015 19:35:38 +0000 (21:35 +0200)]
Fix T45693: Fix for using 4-component vector as 3 component in osd shader

3 years agoOpenSubdiv: Make sure normals passed to OSD are all up to date
Sergey Sharybin [Wed, 5 Aug 2015 17:19:05 +0000 (19:19 +0200)]
OpenSubdiv: Make sure normals passed to OSD are all up to date

Solves shading artifacts with animated characters.

3 years agoOpenSubdiv: Changes to texturing
Sergey Sharybin [Wed, 5 Aug 2015 16:29:43 +0000 (18:29 +0200)]
OpenSubdiv: Changes to texturing

Use first material slot for until multiple materials are fully supported.

Also respect setMaterial()'s return value to avoid drawing unnecessary
geometry.

3 years agoOpenSubdiv: Initial OsdMesh construction missed clearing out-of-date coords flag
Sergey Sharybin [Wed, 5 Aug 2015 14:06:18 +0000 (16:06 +0200)]
OpenSubdiv: Initial OsdMesh construction missed clearing out-of-date coords flag

3 years agoCleanup: unused warning
Campbell Barton [Wed, 5 Aug 2015 13:50:22 +0000 (23:50 +1000)]
Cleanup: unused warning

3 years agoFix dereference before NULL check
Campbell Barton [Wed, 5 Aug 2015 13:46:49 +0000 (23:46 +1000)]
Fix dereference before NULL check

3 years agoOpenSubdiv: Completely avoid possible access to non-existing CPU data
Sergey Sharybin [Wed, 5 Aug 2015 13:11:50 +0000 (15:11 +0200)]
OpenSubdiv: Completely avoid possible access to non-existing CPU data

Make it so CCGDM reports 0 number of geometry when it uses GPU backend for
drawing. This screws up a bit statistics in info header and requires to have
some special handle of CCGDM in the drawing code, but makes it so non of the
areas will try to access non-existing geometry.

3 years agoOpenSubdiv: Edit mode was not checking for Use OpenSubdiv flag
Sergey Sharybin [Wed, 5 Aug 2015 12:51:08 +0000 (14:51 +0200)]
OpenSubdiv: Edit mode was not checking for Use OpenSubdiv flag

3 years agoOpenSubdiv: Correction to previous commit
Sergey Sharybin [Wed, 5 Aug 2015 12:46:27 +0000 (14:46 +0200)]
OpenSubdiv: Correction to previous commit

3 years agoOpenSubdiv: Tweaks to AABB calculation when using opensubdiv for subsurf
Sergey Sharybin [Wed, 5 Aug 2015 12:43:51 +0000 (14:43 +0200)]
OpenSubdiv: Tweaks to AABB calculation when using opensubdiv for subsurf

Use coarse coordinates to calculate AABB which gives much better approximation
of AABB than using unity AABB size.

3 years agoMirror modifier: Fix for wrong dependency relations
Sergey Sharybin [Wed, 5 Aug 2015 12:29:18 +0000 (14:29 +0200)]
Mirror modifier: Fix for wrong dependency relations

Mirror modifier was reporting that it depends on geometry of the object
used for mirror center which is incorrect -- only object matrix is needed
for modifier evaluation.

3 years agoOpenSubdiv: Resolve regression with unity AABB for CCGDM calculated on CPU
Sergey Sharybin [Wed, 5 Aug 2015 12:20:40 +0000 (14:20 +0200)]
OpenSubdiv: Resolve regression with unity AABB for CCGDM calculated on CPU

3 years agoOpenSubdiv: Fix crash happening when disabling Use OpenSubdiv option
Sergey Sharybin [Wed, 5 Aug 2015 12:15:46 +0000 (14:15 +0200)]
OpenSubdiv: Fix crash happening when disabling Use OpenSubdiv option

The issue was caused by the changes from this morning.

3 years agoOpenSubdiv: Enable by default on the supported platforms
Sergey Sharybin [Wed, 5 Aug 2015 10:42:00 +0000 (12:42 +0200)]
OpenSubdiv: Enable by default on the supported platforms

This commit makes sure Linux and Windows buildbots are using OpenSubdiv
and also enables OpenSubdiv by default on Windows.

OSX is kept disabled still, this is due to OpenGL restrictions which are
not solved in any way yet.

Linux is defaults to OpenSubdiv disabled because it needs precompiled
library.

The documentation could be found there:

  http://wiki.blender.org/index.php/User:Nazg-gul/OpenSubdiv

3 years agoRemove files from recent-files list on failed open
Campbell Barton [Wed, 5 Aug 2015 11:25:28 +0000 (21:25 +1000)]
Remove files from recent-files list on failed open

3 years agoFix T45647: Incorrect results w/ color spill node
Campbell Barton [Wed, 5 Aug 2015 11:02:29 +0000 (21:02 +1000)]
Fix T45647: Incorrect results w/ color spill node

3 years agoDoc fix: rather then -> rather than
Sybren A. Stüvel [Wed, 5 Aug 2015 10:47:37 +0000 (12:47 +0200)]
Doc fix: rather then -> rather than

3 years agoOnly show interpolation buttons w/ bezier splines
Campbell Barton [Wed, 5 Aug 2015 10:28:31 +0000 (20:28 +1000)]
Only show interpolation buttons w/ bezier splines

3 years agoRemove redundant addition in BKE_mesh_calc_volume
Campbell Barton [Wed, 5 Aug 2015 10:26:52 +0000 (20:26 +1000)]
Remove redundant addition in BKE_mesh_calc_volume

3 years agoFix selecting linked edges
Campbell Barton [Wed, 5 Aug 2015 10:24:01 +0000 (20:24 +1000)]
Fix selecting linked edges

3 years agoFix T45641: crash cutting meta-strips
Campbell Barton [Wed, 5 Aug 2015 10:18:57 +0000 (20:18 +1000)]
Fix T45641: crash cutting meta-strips

3 years agoOpenSubdiv: Make subsurf behavior closer to original one when built with OpenSubdiv...
Sergey Sharybin [Wed, 5 Aug 2015 09:54:11 +0000 (11:54 +0200)]
OpenSubdiv: Make subsurf behavior closer to original one when built with OpenSubdiv but without enabling option

3 years agoBuildbot config: disable gooseberry branch from nightly builds
Sergey Sharybin [Wed, 5 Aug 2015 09:45:52 +0000 (11:45 +0200)]
Buildbot config: disable gooseberry branch from nightly builds

There's no updates happening in the gooseberry branch, so no really reason
to waste time on rebuilding the branch overnight.

3 years agoBuildbot config: remove windows scons and mingw builders
Sergey Sharybin [Wed, 5 Aug 2015 09:44:36 +0000 (11:44 +0200)]
Buildbot config: remove windows scons and mingw builders

They are defunct at this moment, no reason to try scheduling builds on them.

3 years agoNodes: Link lines & link arrows not scaling to DPI/pixelsize correctly
Julian Eisel [Tue, 4 Aug 2015 19:56:43 +0000 (21:56 +0200)]
Nodes: Link lines & link arrows not scaling to DPI/pixelsize correctly

3 years agoCycles: Remove 32bit cuda workaroudn and disable cubins for buildbot
Sergey Sharybin [Tue, 4 Aug 2015 16:50:37 +0000 (18:50 +0200)]
Cycles: Remove 32bit cuda workaroudn and disable cubins for buildbot

Recent changes to kernel broke compilation of the kernels again, need some
other kind of solution for this issue.

Don't have much time for this currently, but will be addressed before the
release.

Meanwhile it's better to have some buildbot builds instead of totally failing
one.

3 years agoOpenSubdiv: Preparation for enabling it for linux buildbot
Sergey Sharybin [Tue, 4 Aug 2015 16:33:55 +0000 (18:33 +0200)]
OpenSubdiv: Preparation for enabling it for linux buildbot

3 years agoOpenSubdiv: Modifiers module missed WITH_OPENSUBDIV define
Sergey Sharybin [Tue, 4 Aug 2015 16:32:21 +0000 (18:32 +0200)]
OpenSubdiv: Modifiers module missed WITH_OPENSUBDIV define