Campbell Barton
929db33828
Write thumbnail directly
...
BlendThumbnail matches the on-disk format, so just write directly.
2015-09-01 01:52:27 +10:00
Campbell Barton
5f64b77ca5
Fix T45955: Python's pdb can't show script source
2015-08-31 23:41:13 +10:00
Campbell Barton
a603a3470c
Revert fix for T45849 (part 2, tsk!)
2015-08-31 22:47:14 +10:00
Campbell Barton
06b14aa5f9
error in comments
2015-08-31 22:26:05 +10:00
Campbell Barton
6a53e658d3
Alternate fix for T45849: tri-tri intersect error
...
Project both triangles onto the same plane to simplify calculations.
2015-08-31 22:15:27 +10:00
Campbell Barton
e503e37333
Revert fix for T45849, alternate fix coming up
...
epsilon check here didn't account for scale, causing T45919
2015-08-31 22:12:19 +10:00
Campbell Barton
96fa58e22c
Math Lib: Add closest_to_plane helper functions
...
- closest_to_plane3 (for float3 planes)
- closest_to_plane*_normalized_v3 (for unit length planes)
Use when the plane is known to be unit length
2015-08-31 20:10:36 +10:00
Campbell Barton
489a5d34b7
Fix T45959: DistanceKey output incorrect
2015-08-31 16:22:16 +10:00
Campbell Barton
d9e71d5e16
Fix uninitialized vars in DistanceKey node
2015-08-31 16:22:06 +10:00
Campbell Barton
d267739be7
Fix incorrect cast
2015-08-31 13:47:32 +10:00
Sergey Sharybin
4ac5859f05
Cycles: Avoid copying objects in some places of BVH build
...
Gives barely measurable speedup of Spatial Split BVH build.
2015-08-30 16:48:16 +02:00
Bastien Montagne
00d12ec04f
Preview generation module: explicitly exclude any lib item.
...
Thanks to campbell for raising that point!
2015-08-30 15:49:26 +02:00
Campbell Barton
d8291ed88a
missing NULL pointer check
2015-08-30 20:20:26 +10:00
Jörg Müller
6a80c2c48b
Audaspace: fix for building with scons.
...
Removed duplicated code.
CMake so far built only the now removed version and scons tried to build both.
2015-08-29 22:42:20 +02:00
Bastien Montagne
0952a8e44a
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!
2015-08-29 16:47:32 +02:00
Bastien Montagne
95ed5d4437
Add some more missing ID types to TREESTORE_ID_TYPE...
2015-08-29 15:51:11 +02:00
Bastien Montagne
db25b33973
Fix missing 'case idx' line in (debug-only & disabled) valgrind-friendly BKE_main_free() code.
2015-08-29 15:07:09 +02:00
Sergey Sharybin
c749fe4031
Fix T45736: Channel key error: color spaces modes
...
Was missing conversion back to RGB space.
2015-08-28 18:44:27 +02:00
Sergey Sharybin
36c408d861
Fix remaining parts of T44881, missing update on loading file
2015-08-28 18:29:27 +02:00
Campbell Barton
a068629abe
Fix UI font drawing getting width w/o kerning
2015-08-29 02:10:11 +10:00
Sergey Sharybin
a0a7d92cc4
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.
2015-08-28 17:35:51 +02:00
Campbell Barton
a08d039e59
Fix assigning flag to bool
2015-08-29 01:05:43 +10:00
Bastien Montagne
982533eb39
Revert "Blind attempt to fix T45931: Blender Fails to generate previews."
...
This reverts commit c4ab521e26 , since it does not actually fix the issue...
2015-08-28 17:01:37 +02:00
Sergey Sharybin
b024ccd619
Fix T45929: OpenSubdiv was doing extra object recalc tags
2015-08-28 14:55:21 +02:00
Bastien Montagne
c53b1e2a93
Readfile: Minor optimization in undo/redo case: do not call do_versions_userdef either.
2015-08-28 14:06:01 +02:00
Bastien Montagne
c4ab521e26
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 bpy.data.xxx 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
2015-08-28 13:24:30 +02:00
Sergey Sharybin
a560122c4b
OpenSubdiv: Remove some dead code
2015-08-28 12:46:52 +02:00
Antony Riakiotakis
bf88428b7e
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.
2015-08-28 13:40:52 +03:00
Campbell Barton
e515d64c3e
UI: Panels shared same class-name
2015-08-28 15:33:01 +10:00
Campbell Barton
85edd8fc82
Fix T45933: Can't select scaled camera in camera view
2015-08-28 12:10:21 +10:00
Campbell Barton
6bdf1d6dde
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.
2015-08-28 11:28:01 +10:00
Sergey Sharybin
43a4aaf8e6
Compositor: Reduce number of divisions in EWA filtering
2015-08-27 19:43:33 +02:00
Sergey Sharybin
3ec81b814c
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.
2015-08-27 18:50:40 +02:00
Campbell Barton
9b3fa880a5
Support subframe evaluation for scene strips
...
Useful when used with the speed effect.
2015-08-28 01:25:23 +10:00
Bastien Montagne
8d1f9b9f51
Update of our *nix .desktop file.
...
Based on patch by Alex (AlexL) (T45927), thanks.
2015-08-27 16:31:13 +02:00
Bastien Montagne
59b2acc71b
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: https://developer.blender.org/D1469
2015-08-27 16:00:46 +02:00
Campbell Barton
987b3df9c0
Missed version update loading in background mode
2015-08-27 23:12:40 +10:00
Campbell Barton
2112bd892b
Fix T45926: Drivers fail in background mode
...
Scene evaluation was done before text blocks were registered.
2015-08-27 23:12:40 +10:00
Sergey Sharybin
90f667576f
Buildbot: Correction to previous commit
...
Previous commit didn't really disable cuda binaries for some reason.
2015-08-27 12:22:44 +02:00
Sergey Sharybin
067fe2719a
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.
2015-08-27 12:10:01 +02:00
Sergey Sharybin
43dab7833a
OpenSubdiv: Fix crash toggling edit mode with new depsgraph
2015-08-27 12:01:20 +02:00
Sergey Sharybin
efc6f9438f
OpenSubdiv: Tweaks to detecting whether geometry data is needed on GPU with new DEG
2015-08-27 11:47:56 +02:00
Sergey Sharybin
8cd4966722
Buildbot: Disable CUDA binaries on win32
...
They started to give issues as well, need some dedicated time to look
into the issues.
2015-08-27 11:43:29 +02:00
Campbell Barton
c5f9255eed
Fix T45921: Screw modifier flips vertex normals
2015-08-27 19:29:42 +10:00
Sergey Sharybin
5908340f79
OpenSubdiv: Attempt to solve crash on certain GPUs/drivers
2015-08-27 11:05:23 +02:00
Campbell Barton
74c3ebad12
Fix T45920: Loopcut w/ shrinkwrap crash
2015-08-27 17:45:56 +10:00
Campbell Barton
72aadc3597
Use correct size for BVH insertion
2015-08-27 17:45:56 +10:00
Antony Riakiotakis
a8be746609
OpenSubdiv: Fix error found by PerfectionCat,
...
Use glew, not gl constants to detect presence of extensions.
glProgramParameterEXTi is part of GLEW_EXT_geometry_shader4
2015-08-27 10:05:58 +03:00
Campbell Barton
512f631af6
Fix T43826: Sculpt grab anchored fails
...
Regression caused by GSOC2013 merge f745564
2015-08-27 15:22:08 +10:00
Campbell Barton
e9a6effa95
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.
2015-08-27 13:29:57 +10:00