Campbell Barton [Fri, 6 Feb 2015 16:46:05 +0000 (03:46 +1100)]
rename SIPO_AUTOVIEW -> SIPO_AUTO_VIEW_SELECTED
The term auto-view on its own isn't very meaningful
Antony Riakiotakis [Fri, 6 Feb 2015 16:39:26 +0000 (17:39 +0100)]
One more crashing instance for hashes
Antony Riakiotakis [Fri, 6 Feb 2015 15:38:32 +0000 (16:38 +0100)]
Slip tool accepts numerical input.
Antony Riakiotakis [Fri, 6 Feb 2015 14:58:39 +0000 (15:58 +0100)]
Get rid of no scaling for proxies for master, it causes FX to crash,
will code another workaround for gooseberry.
julianeisel [Fri, 6 Feb 2015 14:45:12 +0000 (15:45 +0100)]
Graph Editor: Auto View
Auto View automatically adjusts the view based on selection, so that the view is
always focused on the current selection.
A checkbox in the header is used to access it and it works for the following
selection methods: Toggle All, Border, Circle, Lasso, Left, Right, More, Less,
Linked, Column (so all except of single selection, in which this can be a bit
annoying)
Reviewed by @Aligorith (thanks for that :) )
Bastien Montagne [Fri, 6 Feb 2015 14:03:51 +0000 (15:03 +0100)]
Fix T43578: Beauty Triangulation would hang in infinite loop, due to float rpecision issue.
Only recompute if cost is below -FLT_EPSILON, we can get cases where both cases generate
very tiny negative costs (see 'Cylinder.004' mesh in .blend attached to report).
Antony Riakiotakis [Fri, 6 Feb 2015 13:28:08 +0000 (14:28 +0100)]
Fix sequencer crashing after recent GHash refactor.
Code frees hash element while iterating - I don't think that's a good
idea but this should keep things working for now at least.
Bastien Montagne [Fri, 6 Feb 2015 11:38:33 +0000 (12:38 +0100)]
Add a precision to 'show group color' tooltip, that fcurve/action editors option was confusing users a bit.
Joshua Leung [Fri, 6 Feb 2015 10:50:51 +0000 (23:50 +1300)]
Fix for scons + mingw64 warning flags fix
So, it turns out my changes here the other day were a bit too over-eager:
-Wdeclaration-after-statement and -Wstrict-prototypes only applied to C code
and not C++ (which that set of flags was getting included for too).
However, -Wno-char-subscripts is fine where it is now, so I've left it in place
Sergey Sharybin [Fri, 6 Feb 2015 10:40:07 +0000 (15:40 +0500)]
Cycles: Some more constants fixes for fast math
Sergey Sharybin [Fri, 6 Feb 2015 10:15:55 +0000 (15:15 +0500)]
Cycles: Use proper constant name for 1/pi in fast math
Sergey Sharybin [Fri, 6 Feb 2015 09:51:14 +0000 (14:51 +0500)]
Some tweaks to support upcoming OSL-1.6
Doesn't mean we're 100% ready for the transition, but need to start somewhere
anyway. Changes:
- OSL is no longer supporting cpp and requires usage of Boost Wave.
So now Wave component of Boost is optionally demanded when looking for the
Boost libraries if OSL is enabled.
Only did this for Linux, MSVC seems already using Wave. Not sure about OSX.
- Because of the same reason OSL should be moved prior Boost for linker.
- Whole archive trick makes it so linking fails with duplicated symbols, so
removed it for the new OSL. Didn't see issues with this so far.
- Added some code to check OSL version on Linux. Would need to move all that
to FindOpenShadingLanguage.cmake which we can get from Cycles standalone
repository.
So in theory no affect on current stup would be made at all.
- Added some tweaks to buildbot files. It now seems to be happy with the new
OSL libraries, but again, those tweaks are not in action yet.
All this was tested on Linux only. Win/OSX might still need some tweaks to
support new OSL.
P.S. This doesn't mean we're pushing OSL update yet, just making some
preliminary tweaks to avoid entropy of PITA when we'll actually want to
switch.
Bastien Montagne [Fri, 6 Feb 2015 08:51:53 +0000 (09:51 +0100)]
Fix some UI messages from own recent merge, and RNA code checking for final '.', was a bit too rough.
Campbell Barton [Fri, 6 Feb 2015 07:10:46 +0000 (18:10 +1100)]
Outliner: DragDrop objects to groups
Support drag&drop objects to groups in the outliner.
D989 by @lichtwerk
Campbell Barton [Fri, 6 Feb 2015 07:16:46 +0000 (18:16 +1100)]
cleanup: use bool args & redundant casts
Campbell Barton [Fri, 6 Feb 2015 04:31:08 +0000 (15:31 +1100)]
GHash: no need to malloc iterators
Campbell Barton [Fri, 6 Feb 2015 02:54:38 +0000 (13:54 +1100)]
Cleanup: style
Antony Riakiotakis [Thu, 5 Feb 2015 21:14:38 +0000 (22:14 +0100)]
Animation play: Follow feature. Enabled from playback menu in the
timeline.
When enabled, ipo, dopesheet, NLA, timeline, clip and sequence editors
will follow the current frame during animation. When the cursor reaches
the end of the screen, then the next range of frames of the same width
is displayed.
Antony Riakiotakis [Thu, 5 Feb 2015 18:15:24 +0000 (19:15 +0100)]
More fixes for high DPI:
* Radial operators were completely wrong
* Dynamic topology detail was also using unscaled number
Antony Riakiotakis [Thu, 5 Feb 2015 18:11:00 +0000 (19:11 +0100)]
Fix T43556 clamp brush size before setting it after division by DPI,
avoids nasty zero size brushes.
Antony Riakiotakis [Thu, 5 Feb 2015 17:14:05 +0000 (18:14 +0100)]
Fix part of T43556 brush increase/decrease size operators do not update
the UI sliders.
Antony Riakiotakis [Thu, 5 Feb 2015 14:06:13 +0000 (15:06 +0100)]
Change movie cache to use vectors instead of lists.
Runtime costs were horrible. On gooseberry in some sequencer edits using
proxies of small size, a cache with about 2000 elements would slow to
about 6 fps once cache was full and system tried to find smallest
element available.
There are still improvements to be done here, like requesting a number
of good candidates to avoid rerunnung through the list, or even using
some heap or ring buffer scheme to sort data, but nothing suits all
needs so for now that should bring the cache back to usable state (25fps
here at the studio)
Bastien Montagne [Thu, 5 Feb 2015 13:49:44 +0000 (14:49 +0100)]
Custom Loop Normals: Add NormalEdit modifier
Nothing much to say here, basic tool to make normals point toward a target,
or to make them point 'outward' as if object was a spheroid (useful for game bushes etc.).
Also, forgot a big thank you to Campbell for the extensive review work he has done on this project!
Bastien Montagne [Thu, 5 Feb 2015 13:38:59 +0000 (14:38 +0100)]
Add Custom Loop Normals to Data Transfer.
Titles says everything, just two notes:
* We have to actually transfer plain *normals*, not 'compressed' clnors,
so had to add pre/post process to transfer to make the conversions.
* Also added interpolation and advanced copy/mixing to CD_NORMAL, for same reasons.
Bastien Montagne [Thu, 5 Feb 2015 13:24:48 +0000 (14:24 +0100)]
Add Custom Loop Normals.
This is the core code for it, tools (datatransfer and modifier) will come in next commits).
RNA api is already there, though.
See the code for details, but basically, we define, for each 'smooth fan'
(which is a set of adjacent loops around a same vertex that are smooth, i.e. have a single same normal),
a 'loop normal space' (or lnor space), using auto-computed normal and relevant edges, and store
custom normal as two angular factors inside that space. This allows to have custom normals
'following' deformations of the geometry, and to only save two shorts per loop in new clnor CDLayer.
Normal manipulation (editing, mixing, interpolating, etc.) shall always happen with plain 3D vectors normals,
and be converted back into storage format at the end.
Clnor computation has also been threaded (at least for Mesh case, not for BMesh), since the process can
be rather heavy with high poly meshes.
Also, bumping subversion, and fix mess in 2.70 versioning code.
Bastien Montagne [Thu, 5 Feb 2015 13:03:01 +0000 (14:03 +0100)]
Mesh validate: add an option to not clean temp/cache CDLayers.
This is mandatory for incoming custom normal imports from io scripts, because
often geometry here is corrupted, so we need to call mesh.validate() to clean it up.
Issue is, we cannot set custom normals before geometry is clean, so we need to store
temporary plain loop normals in a CD_NORMAL layer, validate, and then set custom normals.
So we need a way to prevent 'temp' lnors to be freed by validate.
Bastien Montagne [Thu, 5 Feb 2015 13:00:58 +0000 (14:00 +0100)]
BLI_math vectors: add minmax_v3v3_v3_array to get min and max values on each components of an array of 3D vectors.
Sergey Sharybin [Thu, 5 Feb 2015 11:06:22 +0000 (16:06 +0500)]
Fix T43562: Cycles gets stuck with camera in volume in certain setup
The issue was caused by the way how we shoot the ray to see which rays we're
inside which might start bouncing back-n-forth between two close to parallel
intersecting faces.
Real solution would be to record all the intersections when shooting the ray,
but it's kinda tricky on GPU because of needed sorting and uncertainty of
how huge intersection array should be.
For now we'll just limit number of steps in the check so in worst case we'll
have some samples not being correct which will be compensated with further
sampling. Shouldn't be an issue since probability of such a lock is quite
small actually.
Bastien Montagne [Thu, 5 Feb 2015 10:51:09 +0000 (11:51 +0100)]
Fix T43566: Missing update event for VSE
VSE was missing NC_ANIMATION | ND_KEYFRAME events.
Also need to invalidate cache on those, else keyframe editing do not get reflected in VSE preview!
Nicholas Bishop [Thu, 5 Feb 2015 10:20:24 +0000 (11:20 +0100)]
Use MAX_CUSTOMDATA_LAYER_NAME for size of GPUInput.attribname array
Before this was hardcoded to 32, which I think was incorrect because
this is used to store a customdata layer name.
Reviewers: psy-fi, campbellbarton, sergey
Reviewed By: campbellbarton, sergey
Differential Revision: https://developer.blender.org/D1040
Campbell Barton [Thu, 5 Feb 2015 08:49:46 +0000 (19:49 +1100)]
CMake: add PLATFORM_LINKFLAGS to CMAKE_(SHARED|MODULE)_LINKER_FLAGS
D750 by @leszekswirski
Need for compiling Blender as a Python module in Windows.
Campbell Barton [Thu, 5 Feb 2015 08:18:21 +0000 (19:18 +1100)]
UI: UVWarp-Modifier had duplicate names
D1047 by @lichtwerk
Sergey Sharybin [Thu, 5 Feb 2015 07:06:24 +0000 (12:06 +0500)]
Fix T43561: Wrong include path to standard OSL headers
Issue was in fact only visible in certain circumstances:
- OSL was compiled with Boost Wave
- or system's cpp didn't handle space between -I and path
Now made it so both wave and cpp code paths are always happy.
Original patch from Shane Ambler with own modifications to
mimic what variable holds on more verbose.
Campbell Barton [Thu, 5 Feb 2015 05:54:18 +0000 (16:54 +1100)]
Fix T43531: Wrong object center-dot color
Write objects center point to the nearest depth.
Bastien Montagne [Wed, 4 Feb 2015 20:43:01 +0000 (21:43 +0100)]
Fix T43560: crash when loading old (2.45 here) file whith multires.
Was trying to free a NULL pointer...
Bastien Montagne [Wed, 4 Feb 2015 20:20:35 +0000 (21:20 +0100)]
Fix T43567: Freestyle On/Off keyframe is being ignored.
That kind of stuff shall not be animated! :)
Kévin Dietrich [Wed, 4 Feb 2015 20:18:02 +0000 (01:18 +0500)]
Fix T43450: Texture node tree failed to clamp
Clamping routine was not implemented. This fixes T43450.
Reviewers: #nodes, #rendering, sergey
Reviewed By: sergey
Maniphest Tasks: T43450
Differential Revision: https://developer.blender.org/D1038
Antony Riakiotakis [Wed, 4 Feb 2015 19:38:31 +0000 (20:38 +0100)]
Sequencer, scaling and audio synch
Don't scale proxies, same as we do in gooseberry, also for sound synch
give a small window around sound where frame is just pushed forward.
Avoids video jumping in the cases when video renders faster than sound
(yes, weirdly enough it happens sometimes). There might be a few jumps
but results looks smoother here.
Dalai Felinto [Wed, 4 Feb 2015 19:19:15 +0000 (17:19 -0200)]
small typo in a code comment, fixing this before someone does it to prevent uneeded merge conflicts in branches
Gaia Clary [Wed, 4 Feb 2015 18:06:55 +0000 (19:06 +0100)]
Fix T43366 export/import materials inconsistent
Antony Riakiotakis [Wed, 4 Feb 2015 17:48:47 +0000 (18:48 +0100)]
Port fix from gooseberry that doesn't load the full res file if a proxy
is requested.
Campbell Barton [Wed, 4 Feb 2015 16:54:32 +0000 (03:54 +1100)]
Cleanup: name flip x/y
Bastien Montagne [Wed, 4 Feb 2015 13:46:22 +0000 (14:46 +0100)]
RNA image.pack(): fix possible memleak, add possibility to pass raw bytes data.
Note passing data assumes user knows what he is doing, else segfault is guaranted
(there is no good ways to pass raw bytes data to RNA func currently, and using
int array is way too heavy in this case).
And image->packedfile was never freed...
Antony Riakiotakis [Wed, 4 Feb 2015 14:05:22 +0000 (15:05 +0100)]
Support rotation and flipping for background images, patch by Andre D.
(T34583) with minor changes. Thanks for the patch!
Sybren A. Stüvel [Wed, 4 Feb 2015 13:15:40 +0000 (14:15 +0100)]
BGE physics: allow higher values for maxlogicstep and maxphystep
Increasing those values beyond 5 is important for exact physics
simulation. Soft limit is increased to 50, hard limit to 10000.
To be able to set different values for hardlimit and softlimit,
RNA_def_property_range needs to precede RNA_def_property_range, hence
the swapped order.
Joshua Leung [Wed, 4 Feb 2015 11:50:50 +0000 (00:50 +1300)]
Compiler warnings tweak for scons + mingw64
The warning flags in C_WARN were not actually getting included
(most notably, the one disabling the pointless + braindead one
about using chars to index into arrays - given that we only use
unsigned chars everywhere). Maybe this should get done for the
other scons platforms too?
Joshua Leung [Wed, 4 Feb 2015 10:47:41 +0000 (23:47 +1300)]
Fix T43552: Cannot jump between GP keyframes in dopesheet
Sergey Sharybin [Wed, 4 Feb 2015 11:02:47 +0000 (16:02 +0500)]
Fix for recent LANG locale workaround
Need to get a copy of the string since stored pointer is affected
by subsequent calls of setlocale().
Sergey Sharybin [Wed, 4 Feb 2015 10:54:42 +0000 (15:54 +0500)]
GLSL: On some cards '>' can't operate on 'float' and 'int'
So make it so comparison doesn't imply type-cast.
Sergey Sharybin [Wed, 4 Feb 2015 09:49:19 +0000 (14:49 +0500)]
Cycles: Use pre-aligned triangle vertex coordinates for subsurface intersection
This gives small speedup (around 2% in quick tests) for ray scattering.
Sergey Sharybin [Wed, 4 Feb 2015 08:04:09 +0000 (13:04 +0500)]
Compositor: Code cleanup, trailing whitespace and wrapping
Sergey Sharybin [Tue, 3 Feb 2015 20:16:28 +0000 (01:16 +0500)]
Compositor: Implement sampled motion blur for plane track deform node
Quite striaghtforward change, and in theory we can even try supporting motion
blur for the corner pin node (which is tricky because coordinates actually
coming from sockets, but with some black magic should be doable).
Campbell Barton [Tue, 3 Feb 2015 20:04:21 +0000 (07:04 +1100)]
Hook Modifier: add falloff & radius options
- Add falloff types & curves (matching warp-modifier)
- Add uniform scale option,
important when adding hooks to non-uniform scaled objects,
especially for use with lattice objects which can't avoid uneven scaling.
This uses relative transformation set when the hook is assigned,
when measuring the distances.
Campbell Barton [Tue, 3 Feb 2015 20:08:30 +0000 (07:08 +1100)]
New Hook's now use the objects center
When adding a hook to an existing selected object/bone,
Use the location for the hook (instead of the selected vertices).
Bastien Montagne [Tue, 3 Feb 2015 19:25:14 +0000 (20:25 +0100)]
UI messages: minor fixes...
Bastien Montagne [Tue, 3 Feb 2015 18:56:28 +0000 (19:56 +0100)]
Install_deps: update to new exr/oiio versions, and (hopefully) fix ILMBase mess
Root of the issue is an (hidden!) parameter in ILMBase cmake options, that
is enabled by default, and force the generation of those ugly lib names
(Imf_2_2.so & co). Why why why enable such thing by default?
Anyway, it should be simpler to build again even on linuxes having the openexr -dev
package installed.
Also, cleaned up a bit things, now we can switch between repo and plain release archive
building from a single place for each lib, instead of commentting/uncommenting everything
each time (for libs where we have some git repo set up for some reason).
Campbell Barton [Tue, 3 Feb 2015 18:43:34 +0000 (05:43 +1100)]
Fix possible (unlikely) buffer overrun
Translated strings didn't check fixed length for PET id's
Campbell Barton [Tue, 3 Feb 2015 18:35:09 +0000 (05:35 +1100)]
Add inverse-square blending for PET and warp
Similar to 'Root' but without noticeable spike/pinch in the center.
Ines Almeida [Tue, 13 Jan 2015 15:53:21 +0000 (16:53 +0100)]
BGE: python API initialization cleanup
The goal of these changes is to Close T40132 and to get rid of the 'PyRun_SimpleString'
Hilighted changes are:
- consistent naming and initialization of BGE submodules
- initialization of the 'bge' module as a proper module
- using PyDoc_STRVAR instead of static char*
- generic cleanup (unused arguments, logica ordering, naming and whitespace)
Reviewers: campbellbarton
Maniphest Tasks: T40132
Differential Revision: https://developer.blender.org/D983
Ines Almeida [Tue, 13 Jan 2015 10:43:22 +0000 (11:43 +0100)]
BGE: python API cleanup - initialization for bge with submodules, closes D615
Ines Almeida [Mon, 12 Jan 2015 19:10:07 +0000 (20:10 +0100)]
BGE: python API cleanup - adding proper initialization to GameTypes
Ines Almeida [Mon, 12 Jan 2015 14:59:02 +0000 (15:59 +0100)]
BGE: python API cleanup - replace BLI_program_path with BKE_appdir_program_path
Ines Almeida [Fri, 6 Jun 2014 07:33:15 +0000 (08:33 +0100)]
BGE: python API cleanup - bge submodules definitions
Ines Almeida [Fri, 6 Jun 2014 06:43:23 +0000 (07:43 +0100)]
BGE: python API cleanup - using PyDoc_STRVAR instead of static char*
Cherry-picking
d503f8a onto
117edbb
Conflicts:
source/gameengine/Ketsji/KX_PythonInit.cpp
Ines Almeida [Wed, 4 Jun 2014 08:17:52 +0000 (09:17 +0100)]
BGE: python API initialization cleanup
-Removing unused parameters
-Updating some parts to match bpy_interface.c initialization
Cherry-picking
14fceb6 onto
117edbb
Conflicts:
source/gameengine/Ketsji/KX_PythonInit.cpp
Antony Riakiotakis [Tue, 3 Feb 2015 15:17:58 +0000 (16:17 +0100)]
Fix T43530 using blender on remote connection crashes
Issue here is that remote connection will use OpenGL 1.1.
There was a call here that would free VBOs always without a check,
however the VBO free function pointer is NULL on such contexts causing a
crash.
This must have been causing some of the crashes with old contexts. While
I think supporting those systems is not such a good idea in general,
they can have a few more moments of support I guess.
Things might be better now for systems using OGL 1.1 though there are
still things that could be done better here - for instance going to
dyntopo can crash immediately because we don't have a fallback
implementation there. It might be worth reimplementing sculpting with
vertex arrays for the legacy case too, but I guess if we move on to
OpenGL 2.1 soon this is a bit of a wasted effort.
Bastien Montagne [Tue, 3 Feb 2015 14:41:34 +0000 (15:41 +0100)]
Fix T42510: bake animation wrong result.
Caused by own rBfb7ff31315a1c9 - not surprising code using Object.matrix_local
in other contexts than mere Object parenting fails, since it was using a broken
implementation before...
Note that whole NLA_OT_Bake op would need some love, it is quite brittle in many aspects.
Antony Riakiotakis [Tue, 3 Feb 2015 14:08:28 +0000 (15:08 +0100)]
Fix T43380 modulo operation in GLSL does not return negatives.
Make it so by checking operand sign.
Sergey Sharybin [Tue, 3 Feb 2015 13:51:38 +0000 (18:51 +0500)]
Fix T43514: Environment map doesn't update
Joshua Leung [Tue, 3 Feb 2015 12:55:11 +0000 (01:55 +1300)]
Bugfix T43541: Inserting keyframes using sliders in Action Editor doesn't respect NLA time remapping
Sergey Sharybin [Tue, 3 Feb 2015 13:17:12 +0000 (18:17 +0500)]
Fix T43403: Compositor does not respect interlaced video
This is actually issue with Image datablock, which had obscure Fields settings
but didn't allow to de-interlace the video.
Now added the option to de-interlace Image with Movie input type.
Sergey Sharybin [Tue, 3 Feb 2015 12:34:05 +0000 (17:34 +0500)]
Fix T43544: Runtime Error when Locale is not valid
This is not a real fix and only prevents crash, textures IO might be not
working totally correct if they're unicode path or so. Proper solution
would be to detect which locale we can use and set LANG, LC_ALL and friends.
Campbell Barton [Tue, 3 Feb 2015 12:24:13 +0000 (23:24 +1100)]
Revert "Keep mingw specific includes ifdef'd"
This reverts commit
ba8b9ae307010ee5e8e43c6afc4c9d0571c2bf73.
Turns out this is needed on other systems, just happened to be indirect included on them.
Campbell Barton [Tue, 3 Feb 2015 11:54:57 +0000 (22:54 +1100)]
Keep mingw specific includes ifdef'd
Antony Riakiotakis [Tue, 3 Feb 2015 11:51:12 +0000 (12:51 +0100)]
MinGW still uses SDL1 - will need to change this of course but no need
to keep compilation broken for now
Antony Riakiotakis [Tue, 3 Feb 2015 11:31:39 +0000 (12:31 +0100)]
MinGW64 complains about clock, include time.h
Campbell Barton [Tue, 3 Feb 2015 08:54:34 +0000 (19:54 +1100)]
BMesh: optimize selection flushing
De-selecting a face would do flushing checks on each vertex 3 times, now only do once.
Campbell Barton [Tue, 3 Feb 2015 08:08:25 +0000 (19:08 +1100)]
cleanup: inconsistent BMesh select checks
Campbell Barton [Tue, 3 Feb 2015 05:40:27 +0000 (16:40 +1100)]
Possible NULL de-reference on fullsceen check
Also quiet some other minor warnings
Campbell Barton [Tue, 3 Feb 2015 05:39:32 +0000 (16:39 +1100)]
Fix own mistake unlinking text (recent commit)
Campbell Barton [Tue, 3 Feb 2015 05:37:37 +0000 (16:37 +1100)]
Fix copypaste error in x11 tablet init
Campbell Barton [Mon, 2 Feb 2015 18:05:21 +0000 (05:05 +1100)]
BMesh: optimize edge select
It's called a lot, so avoid using a generic iterator for edges of vert.
Campbell Barton [Mon, 2 Feb 2015 22:18:46 +0000 (09:18 +1100)]
cleanup: indentation & redundant casts
also use 'const' bucket rect args
Campbell Barton [Mon, 2 Feb 2015 22:32:19 +0000 (09:32 +1100)]
cleanup: use bools in drawobject
Martijn Berger [Mon, 2 Feb 2015 20:30:28 +0000 (21:30 +0100)]
Make MSVC 2013 win32 also use new OpenEXR 2.2
Martijn Berger [Mon, 2 Feb 2015 18:44:49 +0000 (19:44 +0100)]
Bump OpenEXR to 2.2 for windows MSVC 2013
Campbell Barton [Mon, 2 Feb 2015 17:38:59 +0000 (04:38 +1100)]
Warp modifier: remove redundant NULL check
Campbell Barton [Mon, 2 Feb 2015 17:35:02 +0000 (04:35 +1100)]
Warp modifier: avoid sqrt checking radius
Campbell Barton [Mon, 2 Feb 2015 17:26:31 +0000 (04:26 +1100)]
Fix T43524: Warp modifier curve clamped to 0-1
Sergey Sharybin [Mon, 2 Feb 2015 17:15:33 +0000 (22:15 +0500)]
Cycles: OSL kernel now also ignores maybe-uninitialized
This is a bit of a mess because of the header dependency hell, but
since the tweak is small enough it's gonna be fine.
Sergey Sharybin [Mon, 2 Feb 2015 17:08:01 +0000 (22:08 +0500)]
Cycles: Further tweaks to T43511 to solve compilation error on 32bit platforms
Sergey Sharybin [Mon, 2 Feb 2015 17:06:31 +0000 (22:06 +0500)]
Cycles: Solve dependency between camera and object synchronization
IN theory object might depend on camera location (spatial adaptive subdivisions
for example) which became not possible to achieve after camera in volume support.
Should be no functional changes for artists.
Sergey Sharybin [Mon, 2 Feb 2015 16:13:41 +0000 (21:13 +0500)]
Cycles: Ignore -Wmaybe-uninitialized from the kernel in release builds
This warning provided too much false-positive issues in release version of the
kernel, making it really easy to miss actual warnings.
Antony Riakiotakis [Mon, 2 Feb 2015 16:45:07 +0000 (17:45 +0100)]
Selection: avoid uninitialized memory read with occlusion queries
Lukas Tönne [Mon, 2 Feb 2015 13:46:48 +0000 (14:46 +0100)]
Fix for hair child roughness.
The fixed-function roughness was not getting used once the curve
roughness has been enabled at least once.
Antony Riakiotakis [Mon, 2 Feb 2015 13:25:44 +0000 (14:25 +0100)]
Adjust GLSL drawing of window coordinates from camera view (use camera
bounds instead of window bounds). Fixes remaining part of T43346
Lukas Tönne [Mon, 2 Feb 2015 13:09:02 +0000 (14:09 +0100)]
Fix for unfreed effector weights in hair dynamics.
The internal cloth modifier effector weights get replaced temporarily
to make the cloth sim use the particle weight settings instead. But
the particle sim was not putting back the original weights, which can be
non-NULL in case the cloth sim allocated these already. Messy design ...
Lukas Tönne [Mon, 2 Feb 2015 12:37:35 +0000 (13:37 +0100)]
Fix for unfreed memory due to unnecessary early exit in the free
function.
Lukas Tönne [Mon, 2 Feb 2015 11:51:22 +0000 (12:51 +0100)]
Fix for unfreed memory of internal hair cloth modifier pointcache.
Sergey Sharybin [Mon, 2 Feb 2015 12:34:34 +0000 (17:34 +0500)]
Cycles: Remove redundant calculation of w in recent cubic commit
Was rather harmless since compiler will optimize it out, but nice to get
rid of this anyway.