4 years agoPreview generation module: explicitly exclude any lib item.
Bastien Montagne [Sun, 30 Aug 2015 13:48:40 +0000 (15:48 +0200)]
Preview generation module: explicitly exclude any lib item.

Thanks to campbell for raising that point!

4 years agomissing NULL pointer check
Campbell Barton [Sun, 30 Aug 2015 10:11:10 +0000 (20:11 +1000)]
missing NULL pointer check

4 years agoAudaspace: fix for building with scons.
Jörg Müller [Sat, 29 Aug 2015 20:42:20 +0000 (22:42 +0200)]
Audaspace: fix for building with scons.

Removed duplicated code.
CMake so far built only the now removed version and scons tried to build both.

4 years agoCleanup: set `fd->mainlist` to NULL at the end of `blo_read_file_internal()`.
Bastien Montagne [Sat, 29 Aug 2015 14:47:32 +0000 (16:47 +0200)]
Cleanup: set `fd->mainlist` to NULL at the end of `blo_read_file_internal()`.

This is a local var, do not try to use it later!

4 years agoAdd some more missing ID types to TREESTORE_ID_TYPE...
Bastien Montagne [Sat, 29 Aug 2015 13:51:11 +0000 (15:51 +0200)]
Add some more missing ID types to TREESTORE_ID_TYPE...

4 years agoFix missing 'case idx' line in (debug-only & disabled) valgrind-friendly BKE_main_fre...
Bastien Montagne [Sat, 29 Aug 2015 13:07:09 +0000 (15:07 +0200)]
Fix missing 'case idx' line in (debug-only & disabled) valgrind-friendly BKE_main_free() code.

4 years agoFix T45736: Channel key error: color spaces modes
Sergey Sharybin [Fri, 28 Aug 2015 16:44:27 +0000 (18:44 +0200)]
Fix T45736: Channel key error: color spaces modes

Was missing conversion back to RGB space.

4 years agoFix remaining parts of T44881, missing update on loading file
Sergey Sharybin [Fri, 28 Aug 2015 16:28:48 +0000 (18:28 +0200)]
Fix remaining parts of T44881, missing update on loading file

4 years agoFix UI font drawing getting width w/o kerning
Campbell Barton [Fri, 28 Aug 2015 16:09:12 +0000 (02:09 +1000)]
Fix UI font drawing getting width w/o kerning

4 years agoPartial fix of T44881: Fix for missing particles update when changing seed
Sergey Sharybin [Fri, 28 Aug 2015 15:16:50 +0000 (17:16 +0200)]
Partial fix of T44881: Fix for missing particles update when changing seed

Was only visible with new dependency graph.

Changing emit_from still doesn't behave fully reliably tho, that needs some
closer investigation.

4 years agoFix assigning flag to bool
Campbell Barton [Fri, 28 Aug 2015 14:21:18 +0000 (00:21 +1000)]
Fix assigning flag to bool

4 years agoRevert "Blind attempt to fix T45931: Blender Fails to generate previews."
Bastien Montagne [Fri, 28 Aug 2015 15:01:09 +0000 (17:01 +0200)]
Revert "Blind attempt to fix T45931: Blender Fails to generate previews."

This reverts commit c4ab521e2609be02ab9680fc4eb7726a2af400ed, since it does not actually fix the issue...

4 years agoFix T45929: OpenSubdiv was doing extra object recalc tags
Sergey Sharybin [Fri, 28 Aug 2015 12:54:27 +0000 (14:54 +0200)]
Fix T45929: OpenSubdiv was doing extra object recalc tags

4 years agoReadfile: Minor optimization in undo/redo case: do not call `do_versions_userdef...
Bastien Montagne [Fri, 28 Aug 2015 12:06:01 +0000 (14:06 +0200)]
Readfile: Minor optimization in undo/redo case: do not call `do_versions_userdef` either.

4 years agoBlind attempt to fix T45931: Blender Fails to generate previews.
Bastien Montagne [Fri, 28 Aug 2015 11:22:03 +0000 (13:22 +0200)]
Blind attempt to fix T45931: Blender Fails to generate previews.

Cannot reproduce the issue here on linux, but have the feeling windows builds are much
more easily broken with referencing bad data from bpy. So here guessing direct loop
over when you do add and remove stuff from said xxx inside the loop
is not a good idea - which seems logical in the end. :P

4 years agoOpenSubdiv: Remove some dead code
Sergey Sharybin [Fri, 28 Aug 2015 10:46:23 +0000 (12:46 +0200)]
OpenSubdiv: Remove some dead code

4 years agoFix T45930 weights not appearing in editmode when show weights option
Antony Riakiotakis [Fri, 28 Aug 2015 10:40:52 +0000 (13:40 +0300)]
Fix T45930 weights not appearing in editmode when show weights option
was enabled.

Caused by an -unneeded now- fix for opensubdiv. Code caused the vertex
colors to be uninitialized. Thanks to Sergey for confirming that initial
issue is no longer a problem.

4 years agoUI: Panels shared same class-name
Campbell Barton [Fri, 28 Aug 2015 05:33:01 +0000 (15:33 +1000)]
UI: Panels shared same class-name

4 years agoFix T45933: Can't select scaled camera in camera view
Campbell Barton [Fri, 28 Aug 2015 02:10:21 +0000 (12:10 +1000)]
Fix T45933: Can't select scaled camera in camera view

4 years agoSequence/Scene render fixes
Campbell Barton [Fri, 28 Aug 2015 01:07:41 +0000 (11:07 +1000)]
Sequence/Scene render fixes

- wasn't checking subframe to see if the scene needed to be re-evaluated.
- unneeded int/float conversion storing original frame.
- moved cleanup block into one place to avoid confusion.

4 years agoCompositor: Reduce number of divisions in EWA filtering
Sergey Sharybin [Thu, 27 Aug 2015 17:43:33 +0000 (19:43 +0200)]
Compositor: Reduce number of divisions in EWA filtering

4 years agoFix T45617: Map UV node produces image artifacts
Sergey Sharybin [Thu, 27 Aug 2015 16:50:40 +0000 (18:50 +0200)]
Fix T45617: Map UV node produces image artifacts

Basically filtering was happening twice, first time by applying weights of EWA
filter itself and then by applying subpixel offset while reading pixel values.

4 years agoSupport subframe evaluation for scene strips
Campbell Barton [Thu, 27 Aug 2015 15:25:23 +0000 (01:25 +1000)]
Support subframe evaluation for scene strips

Useful when used with the speed effect.

4 years agoUpdate of our *nix .desktop file.
Bastien Montagne [Thu, 27 Aug 2015 14:31:13 +0000 (16:31 +0200)]
Update of our *nix .desktop file.

Based on patch by Alex (AlexL) (T45927), thanks.

4 years agoMake .blend file thumbnail reading simpler and more coherent, read/store them when...
Bastien Montagne [Thu, 27 Aug 2015 13:53:23 +0000 (15:53 +0200)]
Make .blend file thumbnail reading simpler and more coherent, read/store them when reading in background mode.

Primary goal of this commit is to fix an annoying issue - when processing and saving .blend
files in background mode you lose their thumbnails, since it can only be generated with
an OpenGL context.

Solution to that is to read .blend thumbnail while reading .blend file (only done in background
mode currently), and store it in Main struct.

Also, this lead to removing .blend file reading code from thumb_blend (no need to have doublons).
We now have a small interface in regular reading code area, which keeps it reasonbaly light
by only reading/parsing header info, and first few BHead blocks.

This makes code reading .blend thumbnail about 3 to 4 times slower than previous highly specialized
one in blend_thumb.c, but overall thumbnail generation of a big .blend files folder only grows
of about 1%, think we can bare with it.

Finally, since thumbnail is now optionally stored in Main struct, it makes it easy to allow user
to define their own custom one (instead of auto-generated one). RNA API for this was not added though,
accessing that kind of .blend meta-data has to be rethought a bit on a bigger level first.

Reviewers: sergey, campbellbarton

Subscribers: Severin, psy-fi

Differential Revision:

4 years agoMissed version update loading in background mode
Campbell Barton [Thu, 27 Aug 2015 13:11:13 +0000 (23:11 +1000)]
Missed version update loading in background mode

4 years agoFix T45926: Drivers fail in background mode
Campbell Barton [Thu, 27 Aug 2015 13:08:52 +0000 (23:08 +1000)]
Fix T45926: Drivers fail in background mode

Scene evaluation was done before text blocks were registered.

4 years agoBuildbot: Correction to previous commit
Sergey Sharybin [Thu, 27 Aug 2015 10:22:44 +0000 (12:22 +0200)]
Buildbot: Correction to previous commit

Previous commit didn't really disable cuda binaries for some reason.

4 years agoFix T45702: Editing smoke while viewport render and blender bug
Sergey Sharybin [Thu, 27 Aug 2015 10:10:01 +0000 (12:10 +0200)]
Fix T45702: Editing smoke while viewport render and blender bug

Issue was caused by blender internal accessing data from DNA during rendering.

There's no simple solution to make stuff thread safe, so for now simply restart
rendering on frame update.

4 years agoOpenSubdiv: Fix crash toggling edit mode with new depsgraph
Sergey Sharybin [Thu, 27 Aug 2015 10:01:20 +0000 (12:01 +0200)]
OpenSubdiv: Fix crash toggling edit mode with new depsgraph

4 years agoOpenSubdiv: Tweaks to detecting whether geometry data is needed on GPU with new DEG
Sergey Sharybin [Thu, 27 Aug 2015 09:47:56 +0000 (11:47 +0200)]
OpenSubdiv: Tweaks to detecting whether geometry data is needed on GPU with new DEG

4 years agoBuildbot: Disable CUDA binaries on win32
Sergey Sharybin [Thu, 27 Aug 2015 09:42:49 +0000 (11:42 +0200)]
Buildbot: Disable CUDA binaries on win32

They started to give issues as well, need some dedicated time to look
into the issues.

4 years agoFix T45921: Screw modifier flips vertex normals
Campbell Barton [Thu, 27 Aug 2015 09:22:16 +0000 (19:22 +1000)]
Fix T45921: Screw modifier flips vertex normals

4 years agoOpenSubdiv: Attempt to solve crash on certain GPUs/drivers
Sergey Sharybin [Thu, 27 Aug 2015 09:04:54 +0000 (11:04 +0200)]
OpenSubdiv: Attempt to solve crash on certain GPUs/drivers

4 years agoFix T45920: Loopcut w/ shrinkwrap crash
Campbell Barton [Thu, 27 Aug 2015 07:36:43 +0000 (17:36 +1000)]
Fix T45920: Loopcut w/ shrinkwrap crash

4 years agoUse correct size for BVH insertion
Campbell Barton [Thu, 27 Aug 2015 06:12:21 +0000 (16:12 +1000)]
Use correct size for BVH insertion

4 years agoOpenSubdiv: Fix error found by PerfectionCat,
Antony Riakiotakis [Thu, 27 Aug 2015 07:05:58 +0000 (10:05 +0300)]
OpenSubdiv: Fix error found by PerfectionCat,

Use glew, not gl constants to detect presence of extensions.
glProgramParameterEXTi is part of GLEW_EXT_geometry_shader4

4 years agoFix T43826: Sculpt grab anchored fails
Campbell Barton [Thu, 27 Aug 2015 05:22:08 +0000 (15:22 +1000)]
Fix T43826: Sculpt grab anchored fails

Regression caused by GSOC2013 merge f745564

4 years agoDNA/IO: struct ghash lookup didn't set 'lastfind'
Campbell Barton [Thu, 27 Aug 2015 03:25:04 +0000 (13:25 +1000)]
DNA/IO: struct ghash lookup didn't set 'lastfind'

Internal inconsistency: lastfind was being checked
on every DNA_struct_find_nr call, but never set.

Gives minor speedup reading files.

4 years agoFix crash switching to rotate from edge-slide
Campbell Barton [Thu, 27 Aug 2015 01:09:52 +0000 (11:09 +1000)]
Fix crash switching to rotate from edge-slide

Caused by own fix for T45458

4 years agoFix T45232: Cycles bake artifacts with transparent textures
Sergey Sharybin [Wed, 26 Aug 2015 15:51:54 +0000 (17:51 +0200)]
Fix T45232: Cycles bake artifacts with transparent textures

The issue was caused by uninitialized ray used for composite and AO evaluation.

Can;t really think of "proper" ray configuration here, it's all a bit arbitrary
but think initializing the ray in a way so we look at the surface in a negative
normal direction is much better alternative to uninitialized ray.

Open for alternative suggestions tho.

4 years agoFix T45912: Opensubdiv meshes don't properly center when using <numpad .>
Sergey Sharybin [Wed, 26 Aug 2015 15:12:08 +0000 (17:12 +0200)]
Fix T45912: Opensubdiv meshes don't properly center when using <numpad .>

4 years agoFix T44945: Blender crashes when using multiple domains and multiple flow objects...
Sergey Sharybin [Wed, 26 Aug 2015 13:27:22 +0000 (15:27 +0200)]
Fix T44945: Blender crashes when using multiple domains and multiple flow objects with subframes

This is more like a workaround to prevent obvious cases fail, but in theory
if some other area will start updating object for subframes blender will
crash again.

Perhaps proper way to solve this will be to copy objects for subframe updates.

4 years agoFix T45275: F-Curve normalization might corrupt animation
Sergey Sharybin [Wed, 26 Aug 2015 13:06:21 +0000 (15:06 +0200)]
Fix T45275: F-Curve normalization might corrupt animation

4 years agoFix T45631: Ambient update rendered bug
Sergey Sharybin [Wed, 26 Aug 2015 12:51:13 +0000 (14:51 +0200)]
Fix T45631: Ambient update rendered bug

The issue was in fact caused by both preview and viewport renderers affecting
on the default material, conflicting with each other.

Preview render doesn't really need default material, so we can safely skip it's
initialization in the render pipeline for preview rendering.

4 years agoCorrect fix for T39161: Scaling & snap
Campbell Barton [Wed, 26 Aug 2015 12:23:41 +0000 (22:23 +1000)]
Correct fix for T39161: Scaling & snap

4 years agoFix T45709: Cached Hair system is not seen in 2.75
Sergey Sharybin [Wed, 26 Aug 2015 12:27:44 +0000 (14:27 +0200)]
Fix T45709: Cached Hair system is not seen in 2.75

Don't force re-distribution of cached particle systems, this doesn't
cause actual evaluation of particles and there was a reason why particles
are baked actually..

4 years agoFix T39161: Scaling fails w/ snap-to-point
Campbell Barton [Wed, 26 Aug 2015 10:27:04 +0000 (20:27 +1000)]
Fix T39161: Scaling fails w/ snap-to-point

4 years agoFix for error in recent smooth-view commit
Campbell Barton [Wed, 26 Aug 2015 10:41:28 +0000 (20:41 +1000)]
Fix for error in recent smooth-view commit

Was assuming there was a camera

4 years agoFix T45909: Garbage output in Viewport with OpenSubdiv device set to GLSL Compute
Sergey Sharybin [Wed, 26 Aug 2015 10:10:24 +0000 (12:10 +0200)]
Fix T45909: Garbage output in Viewport with OpenSubdiv device set to GLSL Compute

This isn't a Blender issue and the same bug happens with official OpenSubdiv
examples. For until it's either worked around from OpenSubdiv side or fixed
in the driver we'll force disable GLSL Compute for AMD hardware.

4 years agoOpenSubdiv: Fix/workaround bad shading on AMD devices
Sergey Sharybin [Wed, 26 Aug 2015 10:04:25 +0000 (12:04 +0200)]
OpenSubdiv: Fix/workaround bad shading on AMD devices

Uniform block data layout was different on CPU and GPU which caused wrong
data being used from shader.

In theory using layout(std140) is what we need to do, but for some reason
such layout specifier is being ignored. This is probably caused by the way
how we exploit extensions from older version of glsl.

For until we've upgraded our glsl pipeline used different approach which
is basically about removing unused fields form the struct manual in hope
that it'll keep memory layout consistent for both CPU and GPU.

This seems to work so far for both NVidia GTX580 and AMD FirePro W8000
here in the studio.

4 years agoRevert "BGE: Fix T44557 GameLogic module memory leak."
Sybren A. Stüvel [Wed, 26 Aug 2015 09:11:40 +0000 (11:11 +0200)]
Revert "BGE: Fix T44557 GameLogic module memory leak."

This reverts commit cd24871706411b2afd6e098e2b7c95c94bc2de38.
The commit re-introduced problems with starting the game engine
multiple times in the same run of Blender.

4 years agoFix T45711: Color spill average algorithm broken
Campbell Barton [Wed, 26 Aug 2015 08:37:42 +0000 (18:37 +1000)]
Fix T45711: Color spill average algorithm broken

Thanks to @kevindietrich for finding the cause!

4 years agoOpenSubdiv: Add extra checks whether GPU compute available or not
Sergey Sharybin [Wed, 26 Aug 2015 07:16:10 +0000 (09:16 +0200)]
OpenSubdiv: Add extra checks whether GPU compute available or not

4 years agoFix T45793: ChromaMatte incorrect output
Campbell Barton [Wed, 26 Aug 2015 06:45:37 +0000 (16:45 +1000)]
Fix T45793: ChromaMatte incorrect output

Port to new node system missed important step.

4 years agoSmooth-view: Ignored camera-viewpoint on exit to user-view
Campbell Barton [Wed, 26 Aug 2015 05:13:19 +0000 (15:13 +1000)]
Smooth-view: Ignored camera-viewpoint on exit to user-view

4 years agoDelete could assign a temp screen
Campbell Barton [Wed, 26 Aug 2015 04:14:50 +0000 (14:14 +1000)]
Delete could assign a temp screen

4 years agoFix T45369: Temp screen locks UI
Campbell Barton [Wed, 26 Aug 2015 03:59:46 +0000 (13:59 +1000)]
Fix T45369: Temp screen locks UI

It was possible to navigate into an unused temp screen
(using Ctrl+Arrow keys), but there was no way to navigate back out.

Now Ctrl+Arrows skips temp screens, and remove the ability to navigate away from a temp screen from RNA.

4 years agoDisallow navigating away from a full-temp screen
Campbell Barton [Wed, 26 Aug 2015 03:51:41 +0000 (13:51 +1000)]
Disallow navigating away from a full-temp screen

4 years agoReturn success when a screen was added/removed
Campbell Barton [Wed, 26 Aug 2015 03:49:58 +0000 (13:49 +1000)]
Return success when a screen was added/removed

Currently unused, but useful for screen-operators.

4 years agoFix for deleting screen w/ temp screens in list
Campbell Barton [Wed, 26 Aug 2015 02:41:23 +0000 (12:41 +1000)]
Fix for deleting screen w/ temp screens in list

If the next screen to use was temporary, deleting the screen would fail.

4 years agoFix crash setting the screen when one is maximized
Campbell Barton [Wed, 26 Aug 2015 01:27:13 +0000 (11:27 +1000)]
Fix crash setting the screen when one is maximized

4 years agoFix T45901: Smooth-view w/ bg-image glitch
Campbell Barton [Wed, 26 Aug 2015 00:12:36 +0000 (10:12 +1000)]
Fix T45901: Smooth-view w/ bg-image glitch

It was possible to rotate the view while the view was already moving
causing background images to show when they shouldn't.

4 years agoRevert "Increase Smooth_View limit to 10.000"
Campbell Barton [Tue, 25 Aug 2015 23:35:33 +0000 (09:35 +1000)]
Revert "Increase Smooth_View limit to 10.000"

This reverts commit 1ed1f2f3abd6cdb9134ca3f70c1d504c3fb66c50.

Waiting 10 seconds to change view isn't practical.
Further it expose issues where users can attempt to activate tools during view motion,
Some work, others give issues, this just isn't going to be properly supported.

View animation features are fine, but this isn't the purpose of the smooth-view option.

4 years agoUsual i18n messages fixes. Also had to update i18n scripts to new BLT module...
Bastien Montagne [Tue, 25 Aug 2015 19:12:36 +0000 (21:12 +0200)]
Usual i18n messages fixes. Also had to update i18n scripts to new BLT module...

4 years agoFileBrowser: Fix broken 'extend' behavior of walk select mode.
Bastien Montagne [Tue, 25 Aug 2015 17:32:30 +0000 (19:32 +0200)]
FileBrowser: Fix broken 'extend' behavior of walk select mode.

Glitch when I merged new walk code in asset-experiments most likely...
Thanks to Dalai (dfelinto) who notified that on IRC.

4 years agoFix T45904: Cycles bug after recent triangle intersect changes
Sergey Sharybin [Tue, 25 Aug 2015 16:19:03 +0000 (18:19 +0200)]
Fix T45904: Cycles bug after recent triangle intersect changes

Calculated cross product from wrong vectors by accident.

4 years agoFix walk navigation: scene unit used even when unit not set
Dalai Felinto [Tue, 25 Aug 2015 16:29:54 +0000 (13:29 -0300)]
Fix walk navigation: scene unit used even when unit not set

4 years agoFix T45789: Materials with transparency not properly rendered in viewport in Material...
Sergey Sharybin [Tue, 25 Aug 2015 16:10:01 +0000 (18:10 +0200)]
Fix T45789: Materials with transparency not properly rendered in viewport in Material Render mode

This is a bit tricky one -- ideally viewport should detect whether alpha is used
in the shader tree and if so do separate viewport pass for that objects. But in
practice it's really tricky to detect whether alpha is affected by shader or not
without evaluating the tree for all possible input values. We also can't assume
that alpha might always be affected because it'll slow viewport drawing down.

For until some smart solution is found simply expose alpha blending mode used
by the viewport. It could be found below the Viewport Color settings.

4 years agoAction Management Feature Request/Regression T45535
Joshua Leung [Tue, 25 Aug 2015 14:13:17 +0000 (02:13 +1200)]
Action Management Feature Request/Regression T45535

By popular request, restored the ability to shift-click on the X (unlink) button
to unlink the action (from the active action slot), clear the Fake User, and
also remove the NLA-stashed copy (only works for the current object/NLA stack though).

4 years agoPreemptive fix for search-buffer size issues
Joshua Leung [Tue, 25 Aug 2015 11:27:04 +0000 (23:27 +1200)]
Preemptive fix for search-buffer size issues

Forgot to increase the size of the string buffer in b88d8916e44f998c4f0bc397b29b0d6ff0f011e9
While this wouldn't have caused problems in most cases (since most modifier names
are short), in the rare event that a long modifier name exists, the buffer may have
ended up being truncated prematurely, causing the wrong FCurves to get matched.

4 years agoFix T45776: Rotate around selected fails in texture-paint mode w/ armature
Campbell Barton [Tue, 25 Aug 2015 13:25:05 +0000 (23:25 +1000)]
Fix T45776: Rotate around selected fails in texture-paint mode w/ armature

Only rotate around the active pose bone when in weight-paint mode too.

4 years agoOpenSubdiv: Fix/workaround shader compilation when going to GLSL mode
Sergey Sharybin [Tue, 25 Aug 2015 13:34:34 +0000 (15:34 +0200)]
OpenSubdiv: Fix/workaround shader compilation when going to GLSL mode

4 years agoOpenSubdiv: Support multiple materials for GLSL view
Sergey Sharybin [Tue, 25 Aug 2015 13:22:26 +0000 (15:22 +0200)]
OpenSubdiv: Support multiple materials for GLSL view

4 years agoOpenSubdiv: Remove partitioned mesh interface
Sergey Sharybin [Tue, 25 Aug 2015 13:10:06 +0000 (15:10 +0200)]
OpenSubdiv: Remove partitioned mesh interface

It's hopefully no longer needed, at least not needed for as long as
single ptex face corresponds to a single patch which should be always
correct for uniform subdivisions as far as i know.

4 years agoOpenSubdiv: Support for multiple materials in solid shading mode
Sergey Sharybin [Tue, 25 Aug 2015 13:05:28 +0000 (15:05 +0200)]
OpenSubdiv: Support for multiple materials in solid shading mode

Implementation is less optimal compared to non-opensubdiv drawing but
it is now as good as we can do it without affecting on how patches are
being created by OpenSubdiv.

4 years agoFix T45853: Edge-slide UV-correct jitter
Campbell Barton [Tue, 25 Aug 2015 12:45:09 +0000 (22:45 +1000)]
Fix T45853: Edge-slide UV-correct jitter

4 years agoBGE: added bge.logic.{get,set}AnimRecordFrame functions
Sybren A. Stüvel [Tue, 25 Aug 2015 11:42:09 +0000 (13:42 +0200)]
BGE: added bge.logic.{get,set}AnimRecordFrame functions

By using getAnimRecordFrame(), game developers have access to the frame
number used by the "Record animation" feature. This enables them to
record additional information in Blender's F-Curves and ensuring perfect
synchronization with the information already recorded by Blender.

The setAnimRecordFrame() can be used to change the frame number at which
animations are recorded, for example to introduce delays the recording that
do not require delays in the actual game/simulation run.

The getter/setter functions in KX_KetsjiEngine are not directly named after
property they access (m_currentFrame). I found "current frame" to be too
vague for a public interface, hence chose a more descriptive name.

Reviewers: moguri, hg1, campbellbarton, panzergame, aligorith

Reviewed By: panzergame, aligorith

Differential Revision:

4 years agoAvoid include header from previous commit when building without OpenSubdiv
Sergey Sharybin [Tue, 25 Aug 2015 11:24:02 +0000 (13:24 +0200)]
Avoid include header from previous commit when building without OpenSubdiv

4 years agoOpenSubdiv: Make it more obvious that None compute type actually disables OpenSubdiv
Sergey Sharybin [Tue, 25 Aug 2015 11:23:06 +0000 (13:23 +0200)]
OpenSubdiv: Make it more obvious that None compute type actually disables OpenSubdiv

4 years agoOpenSubdiv: Fill in some missing drawing callbacks of CCGDM
Sergey Sharybin [Tue, 25 Aug 2015 11:16:24 +0000 (13:16 +0200)]
OpenSubdiv: Fill in some missing drawing callbacks of CCGDM

4 years agoOpenSubdiv: Better approximation of vertex normals
Sergey Sharybin [Tue, 25 Aug 2015 10:40:50 +0000 (12:40 +0200)]
OpenSubdiv: Better approximation of vertex normals

Use vertex varying data which gives better approximation of normals.
Still not ideal but should be closer for higher poly meshes to correct

The only way to have proper smooth normals seems to be to implement
patch evaluation in tessellation shader, but that's a bit PITA with
current GLSL usage in our draw code.

4 years agoFix T45891: Crash generating previews
Campbell Barton [Tue, 25 Aug 2015 08:33:04 +0000 (18:33 +1000)]
Fix T45891: Crash generating previews

4 years agoFix T45729: Cycles Bake break when building a special mesh
Sergey Sharybin [Tue, 25 Aug 2015 08:29:40 +0000 (10:29 +0200)]
Fix T45729: Cycles Bake break when building a special mesh

The issue was caused by CD_SHAPEKEY_INDEX layer being added to edge data,
now we make sure all the layers are nicely re-allocated.

4 years agoQuiet warning with arg types
Campbell Barton [Tue, 25 Aug 2015 07:27:18 +0000 (17:27 +1000)]
Quiet warning with arg types

4 years agoFix T45814: Writing MP4, h.264 not supported
Campbell Barton [Mon, 24 Aug 2015 22:51:04 +0000 (08:51 +1000)]
Fix T45814: Writing MP4, h.264 not supported

4 years agoCleanup: style
Campbell Barton [Mon, 24 Aug 2015 22:50:53 +0000 (08:50 +1000)]
Cleanup: style

4 years agoFix for previous commit
Sergey Sharybin [Mon, 24 Aug 2015 21:11:11 +0000 (23:11 +0200)]
Fix for previous commit

uint is only used in Cycles, Blender is not really ready for this.

Pointed out by Thomas Szepe, thanks!

4 years agoBLI_fileops: Some fixes and cleanup.
Bastien Montagne [Mon, 24 Aug 2015 20:09:01 +0000 (22:09 +0200)]
BLI_fileops: Some fixes and cleanup.

* Fix BLI_file_touch, used to add one dummy byte ((unsigned char)EOF) to empty files!
* Get rid of static global temp string in WIN32 area (very bad, and useless!).
* Get rid of paranoid NULL checks in WIN32's BLI_gzopen().
* Add non-relative filename asserts to WIN32 file operations too.
* ifdef-out BLI_move and BLI_create_symlink, unused (and the later is not even implemented for windows).

Partly based on patch and points raised by Jason Wilkins (jwilkins) in T32870, thanks!

4 years agoFix T45833: Light group instances are not rendered in the 3D viewport
Sergey Sharybin [Mon, 24 Aug 2015 20:02:41 +0000 (22:02 +0200)]
Fix T45833: Light group instances are not rendered in the 3D viewport

The issue was introduced in c9ac51e by trying to use original's objects layers
for light visibility check instead of using duplicator's layers.

4 years agoFix T45778: Objects scaled to 0 cause black artifacts with Static BVH
Sergey Sharybin [Mon, 24 Aug 2015 19:21:30 +0000 (21:21 +0200)]
Fix T45778: Objects scaled to 0 cause black artifacts with Static BVH

The issue was caused by some numeric instability in triangle intersection which
was visible on avx2 CPUs and GPUs (at least sm_20 here) but maybe some others

Committing rather a workaround for now to be safe for the release, still need
some investigation.

From tests with grass field from Gooseberry project didn't see measurable

4 years agoFix T45737: Vertex colors show washed-out
Campbell Barton [Mon, 24 Aug 2015 15:02:28 +0000 (01:02 +1000)]
Fix T45737: Vertex colors show washed-out

Blender-Internal and GLSL-nodes missed converting sRGB to linear color.

4 years agoFix DM_get_loop_array, was checking edge-data
Campbell Barton [Mon, 24 Aug 2015 14:43:13 +0000 (00:43 +1000)]
Fix DM_get_loop_array, was checking edge-data

Fixes T45728

4 years agoFix T45084 correcting bending_damping for cloth stiffness, by Martin Norris.
Lukas Tönne [Mon, 24 Aug 2015 12:09:01 +0000 (14:09 +0200)]
Fix T45084 correcting bending_damping for cloth stiffness, by Martin Norris.

4 years agoFix T45823: PSD files save as JPG without warning
Campbell Barton [Mon, 24 Aug 2015 11:31:41 +0000 (21:31 +1000)]
Fix T45823: PSD files save as JPG without warning

Don't allow image save (which overwrites without asking),
unless the input format can be written to.

4 years agoFix T45885: Cycles coordinate extension modes not working as expected
Sergey Sharybin [Mon, 24 Aug 2015 08:37:59 +0000 (10:37 +0200)]
Fix T45885: Cycles coordinate extension modes not working as expected
Fix T45769: Image Texture Node clipping bug

Simple mistakes in the normalized/pixel-space coordinates handling.

Render tests for this feature are coming.

4 years agoFix some issues from lates coverity scan.
Bastien Montagne [Mon, 24 Aug 2015 07:59:04 +0000 (09:59 +0200)]
Fix some issues from lates coverity scan.

Unlikely, but still valid.

4 years agoTests: Ignore preview render script in module loading tests
Sergey Sharybin [Sun, 23 Aug 2015 16:55:40 +0000 (18:55 +0200)]
Tests: Ignore preview render script in module loading tests

4 years agoCycles: Use better policy for primitive array resize for spatial split
Sergey Sharybin [Sun, 23 Aug 2015 13:57:41 +0000 (15:57 +0200)]
Cycles: Use better policy for primitive array resize for spatial split

Gives around 50% of spatial split BVH build speedup with grass field from
cassette player shot from Gooseberry.

4 years agoCycles: Implement reseve() for aligned array class
Sergey Sharybin [Sun, 23 Aug 2015 13:50:31 +0000 (15:50 +0200)]
Cycles: Implement reseve() for aligned array class

The title says it all actually, just support reserving memory in the array class.