Sergey Sharybin
1a76bc7aeb
Fix T52218: Missing update when reconnecting node
...
If node was connected to output, we tag tree for update no matter where
the node was re-plugged to.
Should be safe for 2.79.
2017-08-23 11:49:20 +02:00
Campbell Barton
cf8d35edc8
RNA: use string-join to simplify operator register
...
Also sanity check macro-operator ID's.
2017-08-23 19:18:22 +10:00
Campbell Barton
81c0e643a0
BLI_string_utils: string joining utility functions
...
Includes a version that takes a separator and macros for convenience.
2017-08-23 19:17:27 +10:00
Campbell Barton
55861cb234
PyAPI: avoid instantiating args twice in macro
...
Would cause problems if args included function calls.
2017-08-23 18:48:32 +10:00
Campbell Barton
b8d77c44f1
Cleanup: remove space from filenames
2017-08-23 15:50:44 +10:00
Campbell Barton
46b9f89f5e
Tests: fix incorrect check for hidden dir
...
Copy-pasted mistake in tests and tools.
2017-08-23 15:36:39 +10:00
Campbell Barton
1e60ac3394
RNA: report error on struct naming collision
...
Fixes T52463, error instead of crash.
2017-08-23 15:02:21 +10:00
Campbell Barton
4761dea573
RNA: keep structs_map valid w/ ID duplicate & free
2017-08-23 14:14:55 +10:00
Campbell Barton
8899ac1550
GHash: BLI_ghash_reinsert_key utility function
...
Useful when ghash keys are reallocated.
2017-08-23 13:03:35 +10:00
Thomas Beck
980a8646d8
Fix T52466: Silence search for button_context menu type.
...
We were showing "search for unknown menutype WM_MT_button_context" messages in terminal which were not helpful for users, so now they are disabled.
To be backported to 2.79
2017-08-22 21:35:09 +02:00
Campbell Barton
f09dee5aed
Fix error in PointerProperty argument list
...
Regression in a7b3047
2017-08-23 02:14:33 +10:00
Antonio Vazquez
4d8e3b649b
Fix T52483: Fill is incorrect for interpolated strokes
...
The recalc flag must be enabled for new interpolated strokes.
2017-08-22 17:43:20 +02:00
Sergey Sharybin
9f40153094
Fix T52209: New Depsgraph - animated follow curve constraint sometimes freaks out when the curve has a parent
2017-08-22 16:27:33 +02:00
Sergey Sharybin
f3e02eb32e
Depsgraph: Cleanup, make code friendlier to be edited in columns
2017-08-22 16:24:58 +02:00
Sergey Sharybin
c80ab62aee
Depsgraph: Remove placeholder for path evaluation
...
Wasn't used in years, if it really needs to be dedicated operation it needs to
be revisited anyway.
2017-08-22 16:12:01 +02:00
Sergey Sharybin
4699799288
Fix threading conflict when doing Cycles background render
...
It is possible to have same image used multiple times at different frames,
which means we can not free it's buffers without any guard. From quick tests
this seems to be doing what it is supposed to.
Need more testing and port this to 2.79.
2017-08-22 15:50:05 +02:00
Sergey Sharybin
1155fc94fd
Fix T52454: Crash in DEG_graph_on_visible_update when activating scene layer
...
Most likely needs in 2.79 final release.
2017-08-22 12:53:34 +02:00
Campbell Barton
691ed21842
PyAPI: replace PyC_FromArray with typed functions
...
This was meant to be generic but introduced possible type errors
and unnecessary complication.
Replace with typed PyC_Tuple_PackArray_* functions.
Also add PyC_Tuple_Pack_* macro which replaces some uses of
Py_BuildValue, with the advantage of not having to parse a string.
2017-08-22 18:10:57 +10:00
Brecht Van Lommel
049932c4c3
Fix panorama render crash with split kernel, due to incorrect buffer pointer.
...
Also some refactoring to clarify variable usage scope.
2017-08-22 00:41:07 +02:00
Brecht Van Lommel
296d74c4b1
Cycles: reorganize Performance panel layout, move viewport BVH type to debug.
2017-08-21 19:05:17 +02:00
Brecht Van Lommel
81a76469ca
Fix for recent fix in fc890cd, cstdint is c++11 only so don't use it yet.
2017-08-21 19:05:17 +02:00
Sergey Sharybin
37a5fe2d4d
Fix T52479: Regression: Motion Tracking no longer works
2017-08-21 17:23:42 +02:00
Campbell Barton
0033f0e161
Cleanup: uneven/double indentation
2017-08-21 15:38:11 +10:00
Campbell Barton
592dd9dea6
Modify menu from last commit
...
Also correct tool-tip.
2017-08-21 15:24:40 +10:00
Campbell Barton
361c7cbbc5
Fix T52434: Restore mesh center of mass calculation
...
The new method while improved for solid objects
doesn't work for non-manifold meshes, keep both.
2017-08-21 15:19:08 +10:00
Brecht Van Lommel
43a6cf1504
Cycles: attempt to recover from crashing CUDA/OpenCL drivers on Windows.
...
I don't know if this will actually work, needs testing. Ref T52064.
2017-08-20 23:18:25 +02:00
Brecht Van Lommel
fc890cdae2
Fix Windows build error after recent Python changes in a10a7f42.
2017-08-20 23:15:43 +02:00
Brecht Van Lommel
47d1f67eab
Fix T52473: blender internal Fresnel and Layer Weight only work with linked normal.
...
Please backport this to 2.79.
2017-08-21 00:09:16 +02:00
Brecht Van Lommel
41e6068c76
Revert "Cycles: remove square samples option."
...
This reverts commit 757c24b6bc .
We'll revisit this when doing deeper sampling changes.
2017-08-20 23:46:05 +02:00
Brecht Van Lommel
1d1ddd48db
Fix T52470: cycles OpenCL hair rendering not working after recent changes.
2017-08-20 23:32:20 +02:00
Brecht Van Lommel
ce0fce2207
Code cleanup: deduplicate some bsdf node methods.
2017-08-20 17:37:22 +02:00
Bastien Montagne
146b0c6b04
Fix T52439: Crash after adjusting lenght of hair particles.
...
Regression from rBfed853ea78221, calling this inside thread worker was
not really good idea anyway, and we already have all the code we need in
pre-threading init function, was just disabled for vertex particles
before.
To be backported to 2.79.
2017-08-20 17:18:48 +02:00
Brecht Van Lommel
b5f8063fb9
Cycles: support baking normals plugged into BSDFs, averaged with closure weight.
2017-08-20 16:51:53 +02:00
Brecht Van Lommel
0b07c2c8a2
Code cleanup: remove copy of shader graph for bump, no longer needed.
2017-08-20 14:27:51 +02:00
Campbell Barton
e27a59d411
Replace BLI_INLINE w/ Py_LOCAL_INLINE for Python
...
Recent inclusion caused build error with the BGE.
2017-08-20 21:14:33 +10:00
Campbell Barton
f6825d333b
Fix bpy library load: invalid function signature
2017-08-20 19:04:16 +10:00
Campbell Barton
46cf33bf01
PyAPI: Make use of PyC_LongAs... API
...
Avoids setting exceptions inline,
also use Matrix_ParseAny for bmesh.ops.
Some inline exceptions are kept because they show useful details.
2017-08-20 15:49:10 +10:00
Campbell Barton
a10a7f42de
PyAPI: Integer conversion functions
...
Python's C-API doesn't provide functions to get
int's at specific integer sizes.
Leaving the caller to check for overflow,
which ended up being ignored in practice.
Add API functions that convert int/uint 8/16/32/64, also bool.
Raising overflow exception for unsupported ranges.
2017-08-20 15:39:08 +10:00
Campbell Barton
2ff9c8a3bc
PyAPI: avoid redundant PyLong_AsLong call
...
Assigning to an RNA array converted from Python to C twice.
2017-08-20 15:30:14 +10:00
Ray Molenkamp
07ca9860e2
[windows/make.bat] add option to automatically download libs.
...
The thing that most often still goes wrong for new users building blender on windows is checking out the libraries, some skip over the wiki, some check out to the wrong folder, in an effort to reduce the time i spend on this, I added detection of svn and misisng libs to make.bat .
When the user has svn installed, and the libdir is missing he'll be asked if he wants to download them
if svn is not installed, or the user chooses 'no' the current error message is shown.
Reviewers: Blendify, sergey, juicyfruit
Reviewed By: sergey
Differential Revision: https://developer.blender.org/D2782
2017-08-19 12:00:45 -06:00
Brecht Van Lommel
c22b52cd36
Fix T52452: OSL trace broken after shadow catcher recent changes.
...
We should only early out with any hit in BVH traversal if the only visibility
bits used are opaque shadow. Not when opaque shadow is one of multiple bits.
2017-08-19 18:14:16 +02:00
Brecht Van Lommel
4218b9367e
Cycles tests: pass Blender custom arguments from CYCLESTEST_ARGS.
...
This is useful for testing with different devices, split kernel, OSL,
impact of integrator settings, etc.
2017-08-19 18:14:16 +02:00
Brecht Van Lommel
cfa8b762e2
Code cleanup: move rng into path state.
...
Also pass by value and don't write back now that it is just a hash for seeding
and no longer an LCG state. Together this makes CUDA a tiny bit faster in my
tests, but mainly simplifies code.
2017-08-19 18:14:16 +02:00
Campbell Barton
1cc4033df8
PyAPI: expose matrix parsing function
2017-08-19 21:36:50 +10:00
Brecht Van Lommel
4d428d14af
Fix T52443: Cycles OpenCL build error after recent mesh lights changes.
2017-08-19 01:02:55 +02:00
Brecht Van Lommel
d282dc04ef
Cycles tests: add light type tests.
2017-08-18 17:09:12 +02:00
Brecht Van Lommel
5cf36c0f05
Cycles tests: make page less wide, use relative URLs for serving through http.
2017-08-18 17:09:08 +02:00
Campbell Barton
4e468ceb71
PyAPI: Fix memory leak w/ empty, allocated enums
2017-08-18 18:29:27 +10:00
Campbell Barton
ac28a4fba7
Fix leak in Python BGE filter & image types
2017-08-18 00:55:16 +10:00
Stefan Werner
7a4696197d
Cycles: Fix for a division by zero that could happen with solid angle triangle light sampling
2017-08-17 15:07:59 +02:00