4 years agoSupport relative frames w/ start/end args
Campbell Barton [Sat, 29 Aug 2015 15:20:03 +0000 (01:20 +1000)]
Support relative frames w/ start/end args

4 years agoFix UI crash entering very long strings
Campbell Barton [Fri, 18 Sep 2015 06:30:47 +0000 (16:30 +1000)]
Fix UI crash entering very long strings

Strings exceeding UI_MAX_DRAW_STR weren't null terminated.

4 years agoFix T46148: Sculpt view-clip fails in ortho mode
Campbell Barton [Fri, 18 Sep 2015 05:29:49 +0000 (15:29 +1000)]
Fix T46148: Sculpt view-clip fails in ortho mode

4 years agoAddress request from T46136: make softrange for 'simple deform' angle from -360 to...
Bastien Montagne [Fri, 18 Sep 2015 06:27:04 +0000 (08:27 +0200)]
Address request from T46136: make softrange for 'simple deform' angle from -360 to 360 degrees...

This should be safe enough for final 2.76, sould we make other RC.

4 years agoDoc: escape enum name & description
Campbell Barton [Thu, 17 Sep 2015 15:47:58 +0000 (01:47 +1000)]
Doc: escape enum name & description

Needed since key enum now uses many characters as they're typed.

4 years ago2.75 splash
Campbell Barton [Thu, 17 Sep 2015 14:05:33 +0000 (00:05 +1000)]
2.75 splash

by The Alike Team

4 years agoFix hidden auto-offset glitch
Julian Eisel [Thu, 17 Sep 2015 13:48:55 +0000 (15:48 +0200)]
Fix hidden auto-offset glitch

Steps to reproduce were: Open F233831, insert floating node into nearby link (so that it's not attached to frame).

4 years agoFix for broken tree offset after recent change for cyclic nodes support
Sergey Sharybin [Thu, 17 Sep 2015 12:28:13 +0000 (17:28 +0500)]
Fix for broken tree offset after recent change for cyclic nodes support

4 years agoFix T46143: Faces missing with GPU render
Sergey Sharybin [Thu, 17 Sep 2015 12:17:29 +0000 (17:17 +0500)]
Fix T46143: Faces missing with GPU render

Epsilon was quite arbitrary for GPU, replaced with checking for zero-sized faces.

It should solve both original report and the new one. After the release we can check
why GPU doesn't produce accurate math here and go to the root of the issue.

4 years agoFix T46134: units degrees increment are too small
Campbell Barton [Thu, 17 Sep 2015 11:50:40 +0000 (21:50 +1000)]
Fix T46134: units degrees increment are too small

The user interface was ignoring the precision step size for degrees,
making all rotation inputs drag by a 100th of a degree.

Now use a 10th of a degree instead.

4 years agoFix T46139: Crash when inserting a node in a looped node structure
Sergey Sharybin [Thu, 17 Sep 2015 11:16:41 +0000 (16:16 +0500)]
Fix T46139: Crash when inserting a node in a looped node structure

4 years agoFix for recent regression clamping materials
Campbell Barton [Thu, 17 Sep 2015 10:40:51 +0000 (20:40 +1000)]
Fix for recent regression clamping materials

Mixup between gpu/derivedMesh total materials, fix and name more clearly to avoid confusion.
thanks to Sergey for finding root cause!

4 years agoCMake: Another attempt to solve compilation error on Windows
Sergey Sharybin [Thu, 17 Sep 2015 09:29:56 +0000 (14:29 +0500)]
CMake: Another attempt to solve compilation error on Windows

4 years agoCMake: Attempt to fix compilation error on Windows after recent changes
Sergey Sharybin [Thu, 17 Sep 2015 09:17:00 +0000 (14:17 +0500)]
CMake: Attempt to fix compilation error on Windows after recent changes

4 years agoFix T46090: Blender game embedded player crash
Sybren A. Stüvel [Thu, 17 Sep 2015 08:14:08 +0000 (10:14 +0200)]
Fix T46090: Blender game embedded player crash

SCons didn't pass `-DWITH_AUDASPACE` to the compiler, so it skipped the
instantiation of the "aud" Python module. This caused a crash of the BGE,
which did get the `-DWITH_AUDASPACE` directive, and expected that module
to exist.

Reviewed by: lukastoenne

4 years agoCorrection to previous commit.
Bastien Montagne [Wed, 16 Sep 2015 20:23:05 +0000 (22:23 +0200)]
Correction to previous commit.

Mostly styling, but also str_exec would often remain undefined...

4 years agoFix (unreported): Filebrowser key navigation entry did not change caption correctly
Thomas Beck [Wed, 16 Sep 2015 20:03:06 +0000 (22:03 +0200)]
Fix (unreported): Filebrowser key navigation entry did not change caption correctly

As of this release we're able to navigate with the keyboard in the filebrowsing area. The button caption is changing to an appropriate string whenever a new entry is selected. In @Severins original code a different method was used to determine if a directory was choosen or not, but this got lost while merging the filebrowser rework.

Thanks to @mont29 for review!

4 years agoFix T46130: Vertex/wire no visible with OpenSubdiv in edit mode
Sergey Sharybin [Wed, 16 Sep 2015 18:00:50 +0000 (23:00 +0500)]
Fix T46130: Vertex/wire no visible with OpenSubdiv in edit mode

For now simply show warning in the interface and fallback to regular subsurf
code. Supporting OpenSubdiv in edit mode in possible but not high priority

4 years agoFix T46128: High Quality DoF broken
Sergey Sharybin [Wed, 16 Sep 2015 17:38:46 +0000 (22:38 +0500)]
Fix T46128: High Quality DoF broken

The issue was caused by some special tricks needed to compile OpenSubdiv shader
which was using stupid check whether geometry shader is used or not.

Now made it more explicit call whether special OpenSubdiv trickery is needed or

Its not ideal solution, but it's not really easy to do a proper solution for
this, because while we can do half of the work with if-defs in the shader code
but we'll still need to somewhat define layout of the input blocks which isn't
really doable with current shader version we're using.

4 years agoOpenSubdiv: Fix crash caused by accessing OpenGL vendor from non-main thread
Sergey Sharybin [Wed, 16 Sep 2015 17:23:07 +0000 (22:23 +0500)]
OpenSubdiv: Fix crash caused by accessing OpenGL vendor from non-main thread

4 years agoComment unused sequencer prefetch
Campbell Barton [Wed, 16 Sep 2015 17:00:32 +0000 (03:00 +1000)]
Comment unused sequencer prefetch

4 years agoUI: Curve clipping didn't enforce zoom.
Campbell Barton [Wed, 16 Sep 2015 16:51:50 +0000 (02:51 +1000)]
UI: Curve clipping didn't enforce zoom.

4 years agoFix T46126: Anchored sculpt fail when cursor leaves mesh
Campbell Barton [Wed, 16 Sep 2015 16:08:22 +0000 (02:08 +1000)]
Fix T46126: Anchored sculpt fail when cursor leaves mesh

4 years agoOpenSubdiv: Attempt to solve crash in background mode
Sergey Sharybin [Wed, 16 Sep 2015 15:33:16 +0000 (20:33 +0500)]
OpenSubdiv: Attempt to solve crash in background mode

4 years agoCode cleanup, whitespace
Sergey Sharybin [Wed, 16 Sep 2015 15:26:58 +0000 (20:26 +0500)]
Code cleanup, whitespace

4 years agoOpenSubdiv: Fix for missing caching of vendor string parsing result
Sergey Sharybin [Wed, 16 Sep 2015 15:23:32 +0000 (20:23 +0500)]
OpenSubdiv: Fix for missing caching of vendor string parsing result

4 years agoFllowup to previous commit, remove unused code
Sergey Sharybin [Wed, 16 Sep 2015 15:20:16 +0000 (20:20 +0500)]
Fllowup to previous commit, remove unused code

4 years agoFix T45708: OpenSubdiv crashes on Windows with Intel cards
Sergey Sharybin [Wed, 16 Sep 2015 14:17:12 +0000 (19:17 +0500)]
Fix T45708: OpenSubdiv crashes on Windows with Intel cards

Disable Intel cards for until we'll go to the root of the issue of the crash.
This will take a bit, so being so close to the release we go safe and disable
unstable GPU, so blender at least doesn't crash.

This could be bypassed by setting OPENSUBDIV_ALLOW_INTEL environment variable.

4 years agoGet rid of leftover from refactor of VBO code. Thanks to severin for
Antony Riakiotakis [Wed, 16 Sep 2015 14:22:18 +0000 (17:22 +0300)]
Get rid of leftover from refactor of VBO code. Thanks to severin for

4 years agoCMake: Don't modify global CFlags when enabling/disabling OpenJpeg
Sergey Sharybin [Wed, 16 Sep 2015 14:08:26 +0000 (19:08 +0500)]
CMake: Don't modify global CFlags when enabling/disabling OpenJpeg

4 years agoFix T46105, disable viewport compositing when non power of two texture
Antony Riakiotakis [Wed, 16 Sep 2015 14:04:12 +0000 (17:04 +0300)]
Fix T46105, disable viewport compositing when non power of two texture
support is missing.

Supporting those (really) old GPUs requires us to make shaders more
expensive by converting between real and scaled coordinates and be wary
of such conversion caveats when handling uv coordinates in shaders. Not
worth the cost for supporting hardware that old.

4 years agoFix T46073: crash w/ out-of-bounds material
Campbell Barton [Tue, 15 Sep 2015 21:39:23 +0000 (07:39 +1000)]
Fix T46073: crash w/ out-of-bounds material

4 years agoFix T45389 Windows thumbnails not working.
Antony Riakiotakis [Tue, 15 Sep 2015 21:28:09 +0000 (00:28 +0300)]
Fix T45389 Windows thumbnails not working.

Also they did not work when using blender -R from
command line in 64-bit systems.
Issue was checking for wrong define which would
cause code to detect if the blender executable
functions under 32 bit emulation.
For 64bit executables this is false, leading
blender to believe we are operating under a 32bit
system, and registration would try to register
the 32bit thumbnailer.

This 32 bit dll is (correctly) missing for local
installs and from the new installer, thus no thumbnails.

4 years agoFix for text editor un-indent undo
Campbell Barton [Tue, 15 Sep 2015 17:30:02 +0000 (03:30 +1000)]
Fix for text editor un-indent undo

Same issue as T44381, re-use logic for indent.

4 years agoFix T46093: Thumbnails/previews of materials/textures not displaying in Blender fileb...
Bastien Montagne [Tue, 15 Sep 2015 10:51:13 +0000 (12:51 +0200)]
Fix T46093: Thumbnails/previews of materials/textures not displaying in Blender filebrowser when only one thread is available.

Using the global scheduler here is not a really good idea - `filelist_cache_previewf()` is not a short task
that run once, but it's a loop that keeps cheking for work in a TODO queue. This means it won't quickly allow other tasks
to start, so it should not be in the global scheduler.

In fact, asynchronous tasks (that is, tasks that will live for quite a bit of time, and often sleep a lot) should never use
global scheduler, they would steal computing resources from heavy-duty, short-time living ones - and possibly even completely
stall threaded tasks (if all worker threads are executing long-life tasks...).

We could probably even completely bypass the scheduler/task thing here (and directly use threads), but it does not have
that much of an over-head, and still offers easy handling of threading stuff...

4 years agoFix T46113: Color picker erratic outside 0-1 range
Campbell Barton [Tue, 15 Sep 2015 11:22:33 +0000 (21:22 +1000)]
Fix T46113: Color picker erratic outside 0-1 range

4 years agoCleanup: hide clnors warning prints behind G.debug, those can get annoyingly verbose...
Bastien Montagne [Tue, 15 Sep 2015 10:03:58 +0000 (12:03 +0200)]
Cleanup: hide clnors warning prints behind G.debug, those can get annoyingly verbose...

4 years agoFix wm leak loading factory-startup
Campbell Barton [Tue, 15 Sep 2015 07:43:26 +0000 (17:43 +1000)]
Fix wm leak loading factory-startup

4 years agoBGE: make error message more clear when trying to de/activate actuator from non-activ...
Dalai Felinto [Tue, 15 Sep 2015 03:01:09 +0000 (00:01 -0300)]
BGE: make error message more clear when trying to de/activate actuator from non-active controller

4 years agoFix T46114: paint face-mask hide clears sharp flag
Campbell Barton [Mon, 14 Sep 2015 19:42:47 +0000 (05:42 +1000)]
Fix T46114: paint face-mask hide clears sharp flag

4 years agoFix T46109: Bitmap font objects leads to unfreed memory.
Bastien Montagne [Mon, 14 Sep 2015 15:12:40 +0000 (17:12 +0200)]
Fix T46109: Bitmap font objects leads to unfreed memory.

4 years agoFix T45699: BGE auto-run exits immediately
Campbell Barton [Mon, 14 Sep 2015 13:37:33 +0000 (23:37 +1000)]
Fix T45699: BGE auto-run exits immediately

4 years agoFix T46099: snapping failed on objects with some NULL-dimension in their bbox.
Bastien Montagne [Mon, 14 Sep 2015 10:51:04 +0000 (12:51 +0200)]
Fix T46099: snapping failed on objects with some NULL-dimension in their bbox.

Added a helper that ensures a bbox has some non-NULL dimension along all its axes.

Also, fixed some (rather unlikely) NULL dereference cases (though it should not in this context,
`BKE_object_boundbox_get()` can return NULL).

4 years agoFix T46106: Hidden socket w/ node link from Py API
Campbell Barton [Mon, 14 Sep 2015 10:39:20 +0000 (20:39 +1000)]
Fix T46106: Hidden socket w/ node link from Py API

Internally this was OK, but an invalid state from the users POV.

4 years agoFix T45699: own regression w/ looptri update
Campbell Barton [Mon, 14 Sep 2015 05:55:43 +0000 (15:55 +1000)]
Fix T45699: own regression w/ looptri update

Baking was still checking tessface in parts.

4 years agoAlternate fix for offscreen render w/o npot
Campbell Barton [Mon, 14 Sep 2015 03:18:43 +0000 (13:18 +1000)]
Alternate fix for offscreen render w/o npot

Store the original texture size,
since its needed for reading pixels and passing to glViewport.

4 years agoRevert "Fix crash in opengl render caused..."
Campbell Barton [Mon, 14 Sep 2015 03:13:44 +0000 (13:13 +1000)]
Revert "Fix crash in opengl render caused..."

This reverts commit d64b1221c67846bb954855a19c8dd093b83adc8e.

While this prevents the crash, offscreen renders still aren't working right.

4 years agoFix crash in opengl render caused by gfx being blacklisted for
Joe Eagar [Sun, 13 Sep 2015 21:51:36 +0000 (14:51 -0700)]
Fix crash in opengl render caused by gfx being blacklisted for
non-power-of-2 texture support.  Note that all I did was pass
the correct width/height into glReadPixels; the result may not
be the same as if non2 textures were enabled.

4 years agoFix T43033: VideoTexture module repeated loading of images causes memory leak
Porteries Tristan [Sun, 13 Sep 2015 15:50:27 +0000 (17:50 +0200)]
Fix T43033: VideoTexture module repeated loading of images causes memory leak

Fix proposal for memory leak caused by png decoding in videoFFmpeg.cpp


Author: Ulysse MARTIN (youle)

Reviewers: dfelinto, ben2610, moguri, lordloki, panzergame

Reviewed By: lordloki, panzergame

Subscribers: panzergame, lordloki

Projects: #game_engine

Differential Revision:

4 years agoCleanup: spelling
Campbell Barton [Sun, 13 Sep 2015 16:21:15 +0000 (02:21 +1000)]
Cleanup: spelling

4 years agoFix T46089: Text from Effect Strip is invisible in VSE Preview.
Bastien Montagne [Sun, 13 Sep 2015 12:51:50 +0000 (14:51 +0200)]
Fix T46089: Text from Effect Strip is invisible in VSE Preview.

Deviding two ints together never yields a float... Also, logic of various proxies size corrections was quite broken.
Now we should always get the same (relative) size of text whatever proxy setting/render scale is chosen.

4 years agoFix T46091: Video Sequencer rewrite *.png to _.png
Bastien Montagne [Sun, 13 Sep 2015 06:20:48 +0000 (08:20 +0200)]
Fix T46091: Video Sequencer rewrite *.png to _.png

Own mistake when adding filename safety check...

4 years agoCleanup: Quiet some picky warning from Coverity.
Bastien Montagne [Sat, 12 Sep 2015 14:46:27 +0000 (16:46 +0200)]
Cleanup: Quiet some picky warning from Coverity.

4 years agoFile Bookmarks: use volume label on Windows, and set name of recent entries
Bastien Montagne [Fri, 11 Sep 2015 20:33:13 +0000 (22:33 +0200)]
File Bookmarks: use volume label on Windows, and set name of recent entries
from system/user bookmarks' name if possible.

Volume label on Windows was request from T46083, makes Blender more in line
with 'common' filebrowsing on this OS.

And now, we automatically set name of recent entries from the bookmarks, if path
can be found there, more consistent too from user PoV.

4 years agoFix T45755: Bad NLA text alignment
Campbell Barton [Fri, 11 Sep 2015 13:30:39 +0000 (23:30 +1000)]
Fix T45755: Bad NLA text alignment

4 years agoFix T45579: Custom Hotkeys Dissapear.
Bastien Montagne [Fri, 11 Sep 2015 12:43:18 +0000 (14:43 +0200)]
Fix T45579: Custom Hotkeys Dissapear.

Due to how we find kmi to remove and kmi to add when patching final keymap with user defines,
we could actually end up with same kmi for both, see comments in code for details.

Note that it may be a good idea to make user-defined customizations specific to a given base keymap,
instead of applying them blindly?

4 years agoFix T45165, OSX quicktime fails with diacriticals in filename.
Howard Trickey [Fri, 11 Sep 2015 11:32:05 +0000 (07:32 -0400)]
Fix T45165, OSX quicktime fails with diacriticals in filename.

Since Blender internal strings are UTF8, changed the initialization
of the string to use initWithUTF8String from default encoding.
Fix worked on OSX 10.5.5.

4 years agoFix memory leaks in collada import
Campbell Barton [Fri, 11 Sep 2015 09:12:25 +0000 (19:12 +1000)]
Fix memory leaks in collada import

4 years agoFix T46074: Collada crashes importing animation
Campbell Barton [Fri, 11 Sep 2015 08:41:35 +0000 (18:41 +1000)]
Fix T46074: Collada crashes importing animation

double-frees and freeing memory already inserted into Blender.

4 years agoFix T46058: Modifiers on curve shows different results on OpenGL and cycles render
Sergey Sharybin [Fri, 11 Sep 2015 07:00:57 +0000 (12:00 +0500)]
Fix T46058: Modifiers on curve shows different results on OpenGL and cycles render

Not really ideal fix, but should make Cycles behave same as BI. For some details
please refer to inline comment.

4 years agoFix T46070: Content of folders with a .blend extension aren't listed until filtering...
Bastien Montagne [Thu, 10 Sep 2015 20:08:47 +0000 (22:08 +0200)]
Fix T46070: Content of folders with a .blend extension aren't listed until filtering is disabled.

Own stupid mistake somewhere during filebrowser revamp...

4 years agoUI: increase threshold for color-band select
Campbell Barton [Thu, 10 Sep 2015 19:57:55 +0000 (05:57 +1000)]
UI: increase threshold for color-band select

Was quite small, especially with hi-dpi displays.
Increase to 50 since theres no benefit to not select when clicking.

4 years agoFix T46048: Custom properties UI redraw issue
Campbell Barton [Thu, 10 Sep 2015 18:26:30 +0000 (04:26 +1000)]
Fix T46048: Custom properties UI redraw issue

Adding/removing custom properties didn't refresh elsewhere in the UI.

4 years agoPyAPI: add an update method for properties
Campbell Barton [Thu, 10 Sep 2015 18:24:36 +0000 (04:24 +1000)]
PyAPI: add an update method for properties

This is called when modifying an RNA property,
however it can be useful to be able to make a properties
update callback run without having to change it.

4 years agoShow correct syntax for id-properties
Campbell Barton [Thu, 10 Sep 2015 17:35:38 +0000 (03:35 +1000)]
Show correct syntax for id-properties

4 years agoCorrection to last commit
Julian Eisel [Thu, 10 Sep 2015 18:23:17 +0000 (20:23 +0200)]
Correction to last commit

Did a fullscreen check in a function that should only be called in fullscreen mode. Not a big deal, but bad API practice.

4 years agoFix T46069: Crash when saving a render with non-fullscreen file editor
Julian Eisel [Thu, 10 Sep 2015 17:54:20 +0000 (19:54 +0200)]
Fix T46069: Crash when saving a render with non-fullscreen file editor

IMAGE_OT_save_as assumes that active area is an Image Editor and the logic that should return to image editor after saving didn't run after fullscreen was manually exited.

4 years agoFix T44344: paint bleed fails in perspective view
Campbell Barton [Thu, 10 Sep 2015 16:15:07 +0000 (02:15 +1000)]
Fix T44344: paint bleed fails in perspective view

4 years agoFix leak in ContextGLX
Campbell Barton [Thu, 10 Sep 2015 15:48:31 +0000 (01:48 +1000)]
Fix leak in ContextGLX

4 years agoFix T46067: ShrinkWrap + Threaded depsgraph crash
Campbell Barton [Thu, 10 Sep 2015 08:27:50 +0000 (18:27 +1000)]
Fix T46067: ShrinkWrap + Threaded depsgraph crash

Note that allocating DM arrays from an editmesh is currently not threadsafe,
however even if were resolved, its more efficient to avoid having to do it in the first place.

4 years agoFix T46064: Sequencer view-selected does nothing
Campbell Barton [Thu, 10 Sep 2015 05:31:37 +0000 (15:31 +1000)]
Fix T46064: Sequencer view-selected does nothing

4 years agoFix incorrect textbox use w/ scaled fonts
Campbell Barton [Thu, 10 Sep 2015 04:07:37 +0000 (14:07 +1000)]
Fix incorrect textbox use w/ scaled fonts

4 years agoFix broken logic in new FileBrowser caching of entries.
Bastien Montagne [Wed, 9 Sep 2015 19:30:30 +0000 (21:30 +0200)]
Fix broken logic in new FileBrowser caching of entries.

We were still using main borwser's FileDirEntryArr to own memory of entries currently in cache.

That was OK for common caching operation, but if was not released when clearing cache!
Nothing dramatic, since that was cleared too, but less often, so e.g. by changing sorting
options you could pile up more and more no-more-used entries there...

Anyway, there is no reason to do that, much more sound and clean to keep everything
cache-related in dedicated FileDirEntryCache struct.

This means main borwser's FileDirEntryArr is now always expected to not store any actual entry!

Note: this can probably be cleaned up a bit more, but would wait after 2.76 for this!

4 years agobgl: fix implicit overflow
Campbell Barton [Wed, 9 Sep 2015 17:59:18 +0000 (03:59 +1000)]
bgl: fix implicit overflow

4 years agobgl: disable some defines not found in mesa 7
Campbell Barton [Wed, 9 Sep 2015 17:54:40 +0000 (03:54 +1000)]
bgl: disable some defines not found in mesa 7

4 years agoFix T45880: Texture Paint mask random angle fails
Campbell Barton [Wed, 9 Sep 2015 17:32:17 +0000 (03:32 +1000)]
Fix T45880: Texture Paint mask random angle fails

Random mask failed when the paint brush didn't have random angle enabled too.

4 years agoFixes T46060 Regenerated the full list of constants we should expose
Martijn Berger [Wed, 9 Sep 2015 16:35:05 +0000 (18:35 +0200)]
Fixes T46060 Regenerated the full list of constants we should expose

4 years agoAdd button for H.264 lossless output
Jörg Müller [Wed, 9 Sep 2015 15:03:57 +0000 (01:03 +1000)]
Add button for H.264 lossless output

4 years agoFix crash viewing passes w/ scopes
Campbell Barton [Wed, 9 Sep 2015 14:29:57 +0000 (00:29 +1000)]
Fix crash viewing passes w/ scopes

Scopes assumed all passes were RGBA, but some passes have 1-3 channels.

4 years agoFix T45839 : Regression - Multi-layer image issues when using non-standard names
Dalai Felinto [Wed, 9 Sep 2015 14:41:46 +0000 (19:41 +0500)]
Fix T45839 : Regression - Multi-layer image issues when using non-standard names

This was introduced in the fix for T44336 .
The code is now what it should have been in the first place at the time
of multiview commit.

ImageUser->passtype is being removed in favour of bringing
ImageUser->pass back.

Reviewers: sergey

Differential Revision:

4 years agoFix (unreported) crash with undo/outliner and drivers.
Bastien Montagne [Wed, 9 Sep 2015 14:26:53 +0000 (16:26 +0200)]
Fix (unreported) crash with undo/outliner and drivers.

To reproduce the crash:
* Add some shapekeys to default cube.
* Add at least on driver (can be default empty one) to a shapekey value.
* **Make this driver visible in Outliner**.
* Delete all shapekeys.
* Undo.
* Crash.

Root of the issue is outliner reading code in `blo_lib_link_screen_restore()`,
which would try to `restore_pointer_by_name()` for all `TreeStoreElement->id` pointers.
Thing is, those id pointers are not always IDs, they can be animdata, sequence, RNA struct/property...

That's really not so great design, but also has reasons like size of the struct, we have to live with it.

So now:
* TreeStoreElement->type defines are braught back into DNA.
* There we also define a `TSE_IS_REAL_ID` macro to check whether a given TreeStoreElement actually stores an ID pointer or not.
* And in Outliner read code we only try to retore pointers by name for actual ID ones, and set the others to default NULL value.

Also, added clear comment to TSE types that do not store a real ID pointer!

4 years agoCycles: Attempt to fix 32bit CUDA kernels
Sergey Sharybin [Wed, 9 Sep 2015 13:23:20 +0000 (18:23 +0500)]
Cycles: Attempt to fix 32bit CUDA kernels

4 years agoFormatting fix.
Sybren A. Stüvel [Wed, 9 Sep 2015 12:39:21 +0000 (14:39 +0200)]
Formatting fix.

Reviewed by: Severin

4 years agoFix: VSE text strip size was wrong when preview render size != 100%
Sybren A. Stüvel [Wed, 9 Sep 2015 12:36:12 +0000 (14:36 +0200)]
Fix: VSE text strip size was wrong when preview render size != 100%

Reviewed by: sergei

4 years agoOpenSubdiv: More graceful handling of shader compile/linking errors
Sergey Sharybin [Wed, 9 Sep 2015 12:27:08 +0000 (17:27 +0500)]
OpenSubdiv: More graceful handling of shader compile/linking errors

4 years agoBuildbot: Test enable CUDA binaries for Win32
Sergey Sharybin [Wed, 9 Sep 2015 11:38:44 +0000 (16:38 +0500)]
Buildbot: Test enable CUDA binaries for Win32

Linux 32bit seems to work fine now, let's see if Win32 also works.

4 years agoFix T46051: Loading certain Jpeg causes system alert sound (Win32)
Sergey Sharybin [Wed, 9 Sep 2015 11:17:51 +0000 (16:17 +0500)]
Fix T46051: Loading certain Jpeg causes system alert sound (Win32)

The issue was caused by RedCode library printing binary string to the terminal.

4 years agoFix (unreported) Outliner letting you edit path of indirect linked lib shown at ...
Bastien Montagne [Wed, 9 Sep 2015 10:26:58 +0000 (12:26 +0200)]
Fix (unreported) Outliner letting you edit path of indirect linked lib shown at 'first level'.

From Gooseberry team request indirect libs were also added at root of 'BlendFile' Outliner view,
but that allowed edition of their path, which is useless...

4 years agoFix crash in preview render w/ too small border
Campbell Barton [Wed, 9 Sep 2015 09:42:49 +0000 (19:42 +1000)]
Fix crash in preview render w/ too small border

4 years agoCycles: Cleanup, typo
Sergey Sharybin [Wed, 9 Sep 2015 09:25:20 +0000 (14:25 +0500)]
Cycles: Cleanup, typo

Spotted by Campbell, thanks!

4 years agoFix T46056: User Preferences-> install from File freezes Blender.
Bastien Montagne [Wed, 9 Sep 2015 09:02:32 +0000 (11:02 +0200)]
Fix T46056: User Preferences-> install from File freezes Blender.

Own stupid error in recent fix for buffer overflow in `BLI_testextensie_glob()`...
Also found & fixed another potential buffer overflow in this func.

4 years agoFix T46055: Volume doesn't render when PANORAMIC Camera is inside volume mesh
Sergey Sharybin [Wed, 9 Sep 2015 08:57:54 +0000 (13:57 +0500)]
Fix T46055: Volume doesn't render when PANORAMIC Camera is inside volume mesh

4 years agoCycles: Limit triangle magnitude check for only GPU
Sergey Sharybin [Wed, 9 Sep 2015 08:25:56 +0000 (13:25 +0500)]
Cycles: Limit triangle magnitude check for only GPU

Found a way to make AVX2 CPUs happy by reshuffling instructions a bit,
so now there's no weird precision errors happening in there.

This solves some render speed regressions on CPU, but unfortunately
this doesn't help for GPU rendering.

4 years agoCycles: Only use ascii in comments
Sergey Sharybin [Wed, 9 Sep 2015 08:18:18 +0000 (13:18 +0500)]
Cycles: Only use ascii in comments

4 years agoAssert CustomData_from_bmeshpoly is used correctly
Campbell Barton [Wed, 9 Sep 2015 06:42:55 +0000 (16:42 +1000)]
Assert CustomData_from_bmeshpoly is used correctly

Follow up to last commit, since bugs here aren't so obvious.

4 years agoFix T45733: Crash w/ VColor + BlenderInternal
Campbell Barton [Wed, 9 Sep 2015 06:34:00 +0000 (16:34 +1000)]
Fix T45733: Crash w/ VColor + BlenderInternal

Tessface CustomData layers were added multiple times when tangents were used.
This made BI crash accessing layers missing elsewhere.

4 years agoBuildbot: Enable 32bit kernels for linux builders
Sergey Sharybin [Wed, 9 Sep 2015 06:05:17 +0000 (11:05 +0500)]
Buildbot: Enable 32bit kernels for linux builders

This is more an experiment, not guaranteed to work but at the same time
building of kernels seems to work manually in the same chroot. Perhaps
latest changes helped compiler to optimize registers usage.

4 years agoError in last commit
Campbell Barton [Tue, 8 Sep 2015 16:39:40 +0000 (02:39 +1000)]
Error in last commit

Had warnings disabled.

4 years agoFix T46003: Scale w/ script ignores axis-align
Campbell Barton [Tue, 8 Sep 2015 16:05:10 +0000 (02:05 +1000)]
Fix T46003: Scale w/ script ignores axis-align

4 years agoRevert "Fix T45191 Speed strip behaviour not easy to predict."
Campbell Barton [Tue, 8 Sep 2015 14:36:10 +0000 (00:36 +1000)]
Revert "Fix T45191 Speed strip behaviour not easy to predict."

This reverts commit 0e83b0854fc66af16dd187759c031e530ecd4c05.

Fixes T46038