Sergey Sharybin
13d8671a1a
Cycles: Add support of Glog logging
...
This commit makes it possible to use Glog library for the debug logging.
For now only possible when using CMake and in order to use the logging
the WITH_CYCLES_LOGGING configuration variable is to be enabled.
When this option is not enabled or when using Scons there's no difference
in Cycles behavior at all, when using logging and no output to the console
impact is gonna to be minimal.
This is done in order to make it possible to have debug logging persistent
in code (without need to add it when troubleshooting some bug and removing
it afterwards).
For now actual logging is not placed yet, only all the functions needed for
the logging are written and so.
2014-09-25 17:08:32 +06:00
Sergey Sharybin
058e3f087e
Tracking: Decouple C-API module into more granular files
...
This way maintaining the C-API is a bit less tedious job
and makes code cleaner to follow.
Should be no functional changes.
2014-09-25 17:04:56 +06:00
Sergey Sharybin
34abb614f1
Fix ghash comparator used by translation
...
It now need to return bool whether element matched or not.
2014-09-25 17:04:56 +06:00
Campbell Barton
51d99ebf01
BMesh: type-check iterator data argument
2014-09-25 14:14:52 +10:00
Campbell Barton
a318f8ee9e
Type checking macro: CHECK_TYPE_ANY
...
Compile time check a var against a multiple types.
2014-09-25 14:13:36 +10:00
Campbell Barton
21462410ee
Move typecheck macros into own header
2014-09-25 13:07:17 +10:00
Campbell Barton
6f2f80887b
GHash: use bool for comparison (simplify compare)
2014-09-25 06:16:37 +10:00
Bastien Montagne
e18a74849c
Fix T41933: Node Editor: Crash occurs with Select by Suffix
...
Wrong usage of `BLI_str_partition_ex_utf8`...
This is to be backported to 2.72 branch.
2014-09-24 20:26:21 +02:00
Bastien Montagne
f1976cbde7
Fix T41939: Dupliface: Inherit scale doesn't update viewport render.
...
Render needs un object update it seems...
2014-09-24 19:48:16 +02:00
Antony Riakiotakis
fc3753b8f6
gooseberry request:
...
Attempt to select closest bones when possible.
Occlusion query selection does't support this well because we can't
really derive depth information from occlusion tests. May be possible to
improve this somewhat in the future.
2014-09-24 18:22:02 +02:00
Lukas Tönne
345b16601c
Fix T41885, muting broken for Blender Internal nodes in rendering.
...
Nodes don't have muting callbacks any more, so now have to check the
flag to prevent overwriting values on the stack that they share with
inputs.
2014-09-24 14:29:07 +02:00
Campbell Barton
6dae643450
Correct for change in recent commit
2014-09-24 20:46:27 +10:00
Campbell Barton
d0bd474375
Custom Data API: redundant pointer-to-pointer arg
2014-09-24 18:50:29 +10:00
Campbell Barton
ff0b24c4e2
BMesh: slight speedup loop-of-verts iterator
2014-09-24 18:45:23 +10:00
Campbell Barton
3c0605c0ef
BMesh: generic callbacks for mempool iterator
2014-09-24 14:55:30 +10:00
Campbell Barton
059e0dafb4
Cleanup: const correctness for BLI_sortlist
2014-09-24 14:55:02 +10:00
Campbell Barton
31833d2dc8
Cleanup: use const for read-only arrays
2014-09-24 14:55:02 +10:00
Campbell Barton
3a40aed3d5
Cleanup: use float versions of functions when in/output are floats
2014-09-24 14:55:02 +10:00
Campbell Barton
e7f495d8a0
Cleanup: bool
2014-09-24 14:55:01 +10:00
Campbell Barton
0297f1fdd5
Cleanup: de-duplicate text select logic
2014-09-24 14:55:01 +10:00
Campbell Barton
023ac217dd
Cleanup: set var static
2014-09-24 14:55:01 +10:00
Antony Riakiotakis
eb464eed57
Fix game engine not supporting material view.
...
Force textured view in that case. Also correct a few uses of the GLSL
flag in the viewport. Should only be relevant for textured viewport.
2014-09-23 20:40:27 +02:00
Antony Riakiotakis
3906782406
Fix possible buffer overflow in selection code. We want to copy the
...
number of selected data since the offset, not the offset!
2014-09-23 19:05:41 +02:00
Sergey Sharybin
e422e56db0
Move versioning code under the subversion check
2014-09-23 22:56:37 +06:00
Campbell Barton
7ae60703a2
Version Bump: Entering 2.72 rc state
2014-09-24 02:18:15 +10:00
Campbell Barton
55a44e4f30
Fix crash in text editor (wrap + syntax-highlight)
2014-09-24 01:12:55 +10:00
Campbell Barton
8ddc3d148e
Cleanup: simplify check to draw syntax
2014-09-24 01:12:55 +10:00
Lukas Tönne
82c90a44c2
Fix T41921: MapUV node alpha setting broken.
...
The UV values includes the image width/height now. To restore the
previous method as close as possible (even though it is not documented
anywhere how this is supposed to work), we have to ignore this scaling.
2014-09-23 16:59:12 +02:00
Mitchell Stokes
ed4075cb34
Fix T41259: Objects parented to non-armature objects cannot play shape actions in the BGE
2014-09-23 07:52:44 -07:00
Tamito Kajiyama
d342f46682
D713: correct error /w braces (freestyle)
...
Differential revision: https://developer.blender.org/D713
Author: campbellbarton (Campbell Barton)
2014-09-23 22:35:15 +09:00
Campbell Barton
bdd515fee2
Macro VA_NARGS, increase max to 64
2014-09-23 20:29:18 +10:00
Campbell Barton
d871575be7
Cleanup: use struct names in ID comments
2014-09-23 20:29:18 +10:00
Lukas Tönne
dbb9eba0fb
Fixed border extension for the sunbeams node.
...
This ensures that the beams color does not darken along borders,
by using the last valid color of the ray as the border color (extending
colors in the direction of the source point).
2014-09-23 11:42:11 +02:00
Antony Riakiotakis
d7ddb941a0
Projective painting:
...
* Make clone UI a bit more descriptive
* Don't set images to image editors that have a pinned image.
2014-09-22 11:01:50 +02:00
Campbell Barton
9b28ab26b4
Freestyle: disallow with fields (was crashing)
2014-09-22 18:04:16 +10:00
Tamito Kajiyama
ef0883bc2b
Fix for Freestyle crash in bordered animation rendering
2014-09-22 17:52:22 +10:00
Campbell Barton
f6db580041
Fix T41891: Alt+S can't save image
...
win32 BLI_path_abs expanded empty strings into "C:\\",
which made BLI_exists succeed (quite confusing).
Now match behavior on *nix.
2014-09-22 14:46:03 +10:00
Campbell Barton
c9a7789bcf
Corrent recent commit: off by one error
2014-09-22 13:23:42 +10:00
Campbell Barton
d79e11fcc8
Fix image.save() - incorrect relative lib path
2014-09-22 12:38:40 +10:00
Campbell Barton
1004a7db97
Correct MAX_LIBARRAY define, assert when its wrong
2014-09-22 12:04:14 +10:00
Lukas Tönne
217095f622
Fix T41754, sunbeams node should return the unmodified source value at
...
the source pixel.
2014-09-21 18:12:15 +02:00
Bastien Montagne
398ca952ab
Fix T41890: Regression in new array modifier code, vnors were no more offset-corrected.
...
This is not needed when we tag normals as dirty, but in simple cases, if offset has some
rotation (or non-uniform scaling) component, vertex normals has to be corrected.
2014-09-21 10:12:26 +02:00
Antony Riakiotakis
a0b3604337
Last minute artist feedback tweak: Fill tool should not use masking
...
apart from stencil(texture) and face masks.
2014-09-21 01:37:40 +02:00
Antony Riakiotakis
6e56db8ce2
Paint system
...
* Add unified color settings to brush menus.
* Add notifier on fill tool from drag and drop to refresh icons
2014-09-20 23:47:10 +02:00
Bastien Montagne
680d0db83c
Fix T41875: Update issue in Timeline space
...
This space did not refresh on NC_OBJECT, ND_BONE_SELECT notifier...
2014-09-19 22:11:16 +02:00
Antony Riakiotakis
23e2c97f63
Fix T35993, issue with viewport when using instances.
...
Not really sure what the issue here was initially (might have been a
driver problem) but looks like the issue is solved if we skip generating
a display list for clipped objects; Driver does not like a generated
list that is not drawn.
Now we try to clip the object always, not only when using display lists.
This means that display lists will only get generated if object is
actually visible.
Also used glPush/glPop for instance matrices since glLoad can cause
recalculation of inverses in the driver.
2014-09-19 18:04:12 +02:00
Antony Riakiotakis
f2c8209756
Fix T40751 preview image not generated after baking.
...
A DAG_id_tag_update here is enough to fix the problem.
2014-09-19 15:36:49 +02:00
Jens Verwiebe
07bb3641f5
OSX: make some more symbols global only, this may prevent clashes on older systems and is good for loading times anyway.
2014-09-19 15:00:15 +02:00
Sergey Sharybin
d804a5eaf4
Fix T41865: Fluid bake not possible in windows using a python script from the command line
...
Stupid missing variables initialization.
2014-09-19 17:34:50 +06:00
Tamito Kajiyama
64ade99ecc
Freestyle: Python API documentation updates.
...
Fixed dead references of API identifiers (e.g., freestyle.types.Interface0D)
due to relocations of the identifiers into submodules. Also made various minor
revisions of mark-ups and typos.
2014-09-19 13:41:47 +09:00