Campbell Barton
7cb2974182
Cleanup: imports, indentation, long lines
2017-03-25 11:07:48 +11:00
Germano Cavalcante
a6f74453b6
Fix unreported: inaccuracy of interpolation of custom color layers due to float truncation
...
Same solution from rBd23459f51640 but now in `layerInterp_mcol`
Also a cleaning was done in the includes
2017-03-24 20:06:43 -03:00
Campbell Barton
f68145011f
WM: Application Templates
...
This adds the ability to switch between different application-configurations
without interfering with Blender's normal operation.
This commit doesn't include any templates,
so its mostly to allow collaboration for the Blender 101 project
and other custom configurations.
Application templates can be installed & selected from the file menu.
Other details:
- The `bl_app_template_utils` module handles template activation
(similar to `addon_utils`).
- The `bl_app_override` module is a general module
to assist scripts overriding parts of Blender in reversible way.
See docs:
https://docs.blender.org/manual/en/dev/advanced/app_templates.html
See patch: D2565
2017-03-25 10:04:04 +11:00
Bastien Montagne
a7f16c17c2
Fix various i18n ambiguous issues reported in T43295.
2017-03-24 20:02:15 +01:00
Bastien Montagne
dab3865c0b
Fix UI message issue, and style cleanup (!)
2017-03-24 20:02:15 +01:00
Lukas Stockner
e9770adf63
Cycles: Remove obsolete variable from the TileManager
2017-03-24 19:44:05 +01:00
Sergey Sharybin
8e58e197fd
Ашч T50995: Wrong freestyle render with new depgraph
...
The iossue was caused by 0371ef1/
2017-03-24 16:33:26 +01:00
Sergey Sharybin
5b45715f8a
Cycles: Correct isfinite check used in integrator
...
Use fast-math friendly version of this function.
We should probably avoid unsafe fast math, but this is to be done with
real care with all the benchmarks properly done.
For now comitting much safer fix.
2017-03-24 15:39:33 +01:00
Sergey Sharybin
6aa972ebd4
Fix/workaround T51007: Material viewport mode crash on node with more than 64 outputs
...
Ideally we need to find a way to remove such a static limit here, but it's not so
trivial to implement for texture nodes. Requires some bigger system redesign there.
Just raising limit for now, which is fine for modern systems.
2017-03-24 14:36:00 +01:00
Sergey Sharybin
467d824f80
Fix T50238: Cycles: difference in texture position between OpenGL and Cycles render
2017-03-24 12:24:14 +01:00
Sergey Sharybin
e32710d2d7
Buildbot: Use proper NVCC path
...
In fact, we could probably remove this option all together.
2017-03-24 10:27:41 +01:00
Sergey Sharybin
85a5fbf2ce
Cycles: Workaround incorrect SSS with CUDA toolkit 8.0.61
2017-03-24 10:08:18 +01:00
Sergey Sharybin
a14fb77fee
Update CLERW to the latest version
2017-03-24 09:43:03 +01:00
Germano Cavalcante
d52191616b
Fix for last fix of fix: (unsigned)char is limited to 255
...
setting char as value outside its range will wrap
2017-03-24 04:35:17 -03:00
Germano Cavalcante
178708f142
Fix of last commit. Clamp values that will be used!
2017-03-24 04:13:16 -03:00
Germano Cavalcante
d23459f516
Fix T51038: layerInterp_mloopcol
was casting instead of rounding the interpolated RGBA channels
...
Casting to int truncates a floating-point number, that is, it loose the fractional part.
2017-03-24 04:06:30 -03:00
Campbell Barton
bc0b5d611c
Cleanup: minor edits to path test
...
No need for redundant ID's and correct arg order
2017-03-24 17:48:22 +11:00
Campbell Barton
50f9fc7a53
BLI_path_util: Add BLI_path_join
...
There weren't any convenient ways to join multiple paths in C
that accounted for corner cases.
2017-03-24 17:40:35 +11:00
Campbell Barton
0453c807e0
Add: BKE_appdir_folder_id_ex
...
Allows getting the path without using a static string.
2017-03-24 10:35:58 +11:00
Campbell Barton
6a6566a7fc
Cleanup: line-length
2017-03-24 10:11:01 +11:00
Campbell Barton
096602d3a8
bpy.path.display_name: strip spaces
...
Useful for Python module paths that can't start with numbers.
2017-03-24 06:55:44 +11:00
Campbell Barton
05b7591c62
BLI_path_util: Add string versions of SEP, ALTSEP
...
This allows for adding separators in string literals.
2017-03-24 05:23:03 +11:00
Campbell Barton
9af6f40e4d
addon_utils: add disable_all function
2017-03-24 05:20:26 +11:00
Sergey Sharybin
a96110e710
Cycles: Remove old non-optimized triangle intersection function
...
It is unused now and if we want similar function we should use
Pluecker intersection which is same performance with SSE optimization
but which is more watertight.
2017-03-23 17:59:34 +01:00
Sergey Sharybin
27248c8636
Cycles: Remove unused macro
2017-03-23 17:59:02 +01:00
Sergey Sharybin
ba8c7d2ba1
Cycles: Use SSE-optimized version of triangle intersection for motion triangles
...
The title says it all actually. Gives up to 10% speedup on test scenes here
on i7-6800K.
Render times on GPU are unreliable here, but there might be some slowdown
caused by watertight nature of intersections.
2017-03-23 17:58:03 +01:00
Sergey Sharybin
a1348dde2e
Cycles: Fix speed regression on GPU
...
Avoid construction of temporary array and make utility function force-inlined.
Additionally avoid calling float4_to_float3 twice.
This brings render times to the same values as before current patch series.
2017-03-23 17:45:19 +01:00
Sergey Sharybin
2a5d7b5b1e
Cycles: Use utility function for SSS triangle intersection
...
This effectively de-duplicates triangle intersection logic implemented
for both regular triangle and SSS triangle.
2017-03-23 17:45:19 +01:00
Sergey Sharybin
a5b6742ed2
Cycles: Move watertight triangle intersection to an utility file
...
This way the code can be reused more easily.
2017-03-23 17:45:19 +01:00
Sergey Sharybin
f8a999c965
Cycles: Move triangle intersection precalc to an util file
...
This is a preparation work for the followup commit which wil l move
remaining parts of Woop intersection logic to an utility file.
Doing it as a separate commit to keep changes more atomic and easier
to bisect when/if needed.
2017-03-23 17:45:19 +01:00
Sergey Sharybin
b797a5ff78
Cycles: Cleanup, move utility function to utility file
...
Was an old TODO, this function is handy for some math utilities as well.
2017-03-23 17:45:19 +01:00
Sergey Sharybin
aa0602130b
Cycles: Cleanup, code style and comments
2017-03-23 17:45:19 +01:00
Sergey Sharybin
1c5cceb7af
Cycles: Move intersection math to own header file
...
There are following benefits:
- Modifying intersection algorithm will not cause so much re-compilation.
- It works around header dependency hell and allows us to use vectorization
types much easier in there.
2017-03-23 17:45:19 +01:00
Sergey Sharybin
e8ff06186e
Cycles: Cleanup, inline AVX register construction from kernel global data
...
Currently should be no functional changes, preparing for some upcoming refactor.
2017-03-23 17:45:19 +01:00
Sergey Sharybin
5c06ff8bb9
Cycles: Cleanup, remove unused function
2017-03-23 17:45:19 +01:00
Jens Verwiebe
e04970b392
Fix player stubs (tm)
2017-03-23 15:47:23 +01:00
Gaia Clary
2c78b0c71f
Collada - Export: now use bind_mat and rest_mat custom properties (when the use_bind_info option is enabled and the properties exist)
2017-03-23 14:14:23 +01:00
Gaia Clary
b48ba0909a
Collada - Import: now add bind_mat and rest_mat as custom properties (when the use_bind_info option is enabled)
2017-03-23 14:14:23 +01:00
Gaia Clary
476f5c473a
Collada - remove no longer used functions (moved to collada_utils)
2017-03-23 14:14:23 +01:00
Gaia Clary
51d4743033
Collada - Added support for custom bind matrix (using new bind_mat custom property)
2017-03-23 14:14:22 +01:00
Gaia Clary
6cfa962986
Collada - removed TransformBase baseclass (not needed for anything)
2017-03-23 14:14:22 +01:00
Gaia Clary
7c094f6079
Collada - Added some helper functions into collada_utils, for common usage in the collada module
2017-03-23 14:14:22 +01:00
Gaia Clary
092d673689
Added new option for storing bindpose matrix, see T50412
2017-03-23 14:14:22 +01:00
Gaia Clary
339d0170d1
collada: Simplify reading Node Matrix
2017-03-23 14:14:22 +01:00
Gaia Clary
1729dd9998
collada: Make sure that bone use_conncet is set to false when connect type is not defined in Import
2017-03-23 14:14:22 +01:00
Gaia Clary
33e32c341a
collada: add extern 'C' for c header includes
2017-03-23 14:14:22 +01:00
Gaia Clary
ec3989441f
fix: collada - Connected bones get their tails set to wrong location when fix leaf nodes option is enabled
2017-03-23 14:14:22 +01:00
Gaia Clary
1978ac65c4
collada: use local variable to avoid repeated call of bone chain_length_calculator
2017-03-23 14:14:22 +01:00
Gaia Clary
89631485cc
collada: use vector copy function instead of direct assigning
2017-03-23 14:14:22 +01:00
Campbell Barton
1600b93fb8
UI: allow to extend camera as a menu
...
Needed for T46853
2017-03-23 20:45:02 +11:00