Commit Graph

49420 Commits

Author SHA1 Message Date
Campbell Barton
4bc818d240 code cleanup: quiet uninitialized memory use warning for X11 - harmless in this case but always gave warnings with memcheck (RGB color for alpha zero icon color wasnt initialized).
also some other minor changes.
2012-07-08 12:23:58 +00:00
Campbell Barton
b91bc4f037 use gcc attrubutes to warn on unused return values and arguments which shouldnt be NULL.
also remove IDP_AppendArray's return value which wasnt the new item in the array (which is odd/misleading), but wasnt used anywhere either.
2012-07-08 06:00:27 +00:00
Mitchell Stokes
8ce864784c Fix for [#31701] "radar causes collision" reported by Markus Rietz (afeature).
The problem was that the physics shapes for the near and radar sensor were getting turned into characters because CcdConstructionInfo::m_bCharacter was defaulting to true. Now it defaults to false and is explicitly set to true for only Character physics types.
2012-07-08 05:00:16 +00:00
Campbell Barton
2c8db87897 fix [#32020] Image will not render in second (any scene other than first) if scene name is longer than 28 characters 2012-07-08 00:04:41 +00:00
Bastien Montagne
8b9977e354 Fixing a typo! 2012-07-07 23:38:40 +00:00
Campbell Barton
cfb7aee017 style cleanup 2012-07-07 22:51:57 +00:00
Sv. Lockal
d58ce290e1 increase file browser title length for multibyte translations and use utf8 copy for it 2012-07-07 14:58:40 +00:00
Campbell Barton
84bf3e48c0 style cleanup: use c style comments in C code 2012-07-06 23:56:59 +00:00
Tamito Kajiyama
b7b5029814 Merged changes in the trunk up to revision 48695. 2012-07-06 23:46:48 +00:00
Campbell Barton
3a0593cc3d code cleanup: dont use function calls like dot_v3v3, pow and sqrt within macros which results in calling the function multiple times needlessly.
also added some comments.
2012-07-06 22:48:28 +00:00
Campbell Barton
eab80a40df svn merge ^/trunk/blender -r48681:48691 2012-07-06 20:28:35 +00:00
Campbell Barton
2336aadb80 decrease size for convex hull epsilon when checking which side of a face the vertex is on.
this doesnt fix all cases but works better then it did.
2012-07-06 20:16:04 +00:00
Campbell Barton
1a9e7a00f3 style cleanup: var names 2012-07-06 19:22:21 +00:00
Chris Want
16b165eed5 Fix for bug 32017.
There was some bad recursion introduced recently that caused crashes
when a Material node is the same material as the material itself (e.g.,
if Material.001 has a node with Material.001).

This commit attempt to correct this by keeping track of the material
at the root of the node tree, and doesn't recurse further if it
encounters it again within the nodetree.

Joshua, please review!
2012-07-06 16:55:35 +00:00
Campbell Barton
ec233cd747 svn merge ^/trunk/blender -r48674:48681 2012-07-06 14:25:49 +00:00
Campbell Barton
5f792b08e4 fix for rare crash we have with some mango files. 2012-07-06 14:24:41 +00:00
Sergey Sharybin
d1c335ad79 Tomato keying screen: small fixes and improvements
- Fixed issues with calculating matte with balance != 0.5
  It used to be used concave combination of minimal and maximal
  channel values which could be inpredictable.
  Use concave combination of two non-major channels sorted
  by their index, so such combination would always use the same
  coefficients for particular non-major channels.

- Added despill balance slider which defines balance between
  non-major channels used for calculating average of two
  colors. Difference between average value and pixel value of
  major screen channel defines amount of despill. Balance of
  0.5 gives the same behavior as it was before this slider
  was added.
2012-07-06 12:59:00 +00:00
Jeroen Bakker
28f7bfa8df * Added OpenCL implementation of the Defocus node
* Always disable two phase compositing during rendering

 - At Mind -
2012-07-06 11:31:40 +00:00
Campbell Barton
27da686aec use icons for rgb colors 2012-07-06 11:24:43 +00:00
Bastien Montagne
f058a3dd42 Fix [#31923] Particle instanced objects don't show textures in render
Actually, particle instance modifier was still using tessfaces, but copying poly cdata!

Simply made it using poly/loop.
2012-07-06 10:03:27 +00:00
Campbell Barton
cf369c5e13 svn merge ^/trunk/blender -r48658:48674 2012-07-06 09:24:47 +00:00
Campbell Barton
3b559c8cc8 rgb color display options for compo backdrop. 2012-07-06 09:22:59 +00:00
Bastien Montagne
1b6a4c1c9b Fix [#32003] Triangulate fails for simple case.
Main problem was in poly_rotate_plane() (which rotates a ngon to make its normal aligned with Z axis), it did not handled the case where the normal was aligned but opposite to the Z axis (which had the consequence that, as with the T mesh of the given blend, all tested new edges inside face were detected as outside, and vice-versa...).

Additionnaly, I made a mistake in previous Triangulate commit (r48243) in bm_face_goodline, which could allow a few invalid triangles in some specific cases, fixed!

And done a bit of cleanup, as I was at it.
2012-07-06 07:40:54 +00:00
Mitchell Stokes
b41561a406 Fix for [#31978] "Horizon colour drawn on two edges of screen when a 2D filter is active" reported by Alex Fraser.
The glViewport used for 2D Filters wasn't quite matching the 3d view. It seems the height and width were both off by one. There may be a deeper bug with the canvas rectangle having slightly wrong dimensions, but this at least fixes the 2D Filters.
2012-07-05 21:03:29 +00:00
Jason Wilkins
3e073f42a5 You do not need to create an object to call a static function. 2012-07-05 20:44:42 +00:00
Mitchell Stokes
9f7db7f3ea Fix for [#31122] "Properties cant have Spaces in names when using interval as a evaluation. Or else it'll fail to activate actuator." reported by Auuman Anubis.
I cleaned up the INTERVAL check to do a much cleaner (and saner) range check that doesn't get messed up by spaces.
2012-07-05 20:34:42 +00:00
Campbell Barton
f5fe447e00 svn merge ^/trunk/blender -r48638:48658 2012-07-05 18:04:17 +00:00
Campbell Barton
5f3bd06f37 code cleanup: use a define for bmesh hull epsilon 2012-07-05 18:03:07 +00:00
Campbell Barton
e5cbfb5460 fix for crash in point comparison when one of the arrays is NULL 2012-07-05 17:08:06 +00:00
Bastien Montagne
b0598a203c Cosmetic updates to mesh validate messages. 2012-07-05 13:02:42 +00:00
Campbell Barton
b5135a8bdf fix for making local loosing references to node groups.
node->id was left as an indirect link which wont get saved with the file.
2012-07-05 12:50:50 +00:00
Campbell Barton
9208aa5792 code cleanup: replace magic numbers with enum. 2012-07-05 12:09:43 +00:00
Campbell Barton
3c367f924a svn merge ^/trunk/blender -r48604:48638 2012-07-05 11:40:48 +00:00
Antony Riakiotakis
fa92f2fb55 Update build systems to copy needed dlls from MinGW-w64, turn openmp on by default for MinGW. 2012-07-05 11:39:11 +00:00
Campbell Barton
2442bcf807 add the ability to make objects and obdata local but not materials. 2012-07-05 11:37:04 +00:00
Bastien Montagne
e62ec9261c Japanese and Ukranian are now above 60% done, congrats! 2012-07-05 10:56:58 +00:00
Sergey Sharybin
2e12919c4b Color management: skip generating byte buffers in verify_buffer_float
This saves some time in cases color management is used by sipping
generating non-color managed buffers.
2012-07-05 09:41:12 +00:00
Sergey Sharybin
8b1f1be3ae Color management: remove unused code 2012-07-05 09:41:07 +00:00
Sergey Sharybin
83758c4154 Color management: refactor of cache to deal better with movie clip cache
There were some crashes discovered in some circumstances of using
color management within the clip editor which ended up some refactoring
of color management cache.

Switch from global movie cache instance to per-image buffer instances

This only means keys for color managed buffers could be much simpier
and that look up would happen much faster in there're lots of frames
cached. Memory limiter stuff is still global for all color management
and in fact it's also shared with movie clip cache .

This allowed to get rid of original image buffer stored in cache
key and allowed to easily remove all display buffers when source
image buffer is being freed. This was main culptrit leading to
crashes.

Additional changes:

- Add option to make moviecache verbose. If DEBUG_MESSAGES is
  defined in moviecache.c detailed logs would be printed to the
  console.

- Movie caches are now named which helps reading debug messages.

- Improved a bit behavior of cache element removing when buffer
  overflows on adding new display buffer and there're frames from
  movie clip.
2012-07-05 09:41:00 +00:00
Sergey Sharybin
60113a4b63 Color management: do not initialize threads in case conversion
happens in single thread only.
2012-07-05 09:40:53 +00:00
Jeroen Bakker
e5e1d7bc9f Added a default margin to the tile dependancy of the lens distortion
node.
2012-07-05 09:39:06 +00:00
Jeroen Bakker
5e0f7467e9 Adjusted margin of the lens distortion 2012-07-05 08:33:17 +00:00
Jeroen Bakker
4e836ab476 Moved highlight code to the workscheduler. 2012-07-05 06:34:31 +00:00
Nicholas Bishop
0085c7110b Code cleanup: move PBVH ray/AABB intersection test to BLI_math_geom 2012-07-05 03:55:55 +00:00
Sergej Reich
2d5b9c4ae4 Draw outdated point cache in a lighter color 2012-07-05 02:58:02 +00:00
Antony Riakiotakis
3818a47e4a Change order of inclusion to stop MinGW from complaining 2012-07-04 22:55:40 +00:00
Campbell Barton
9f22750422 style cleanup 2012-07-04 20:47:12 +00:00
Campbell Barton
21bf13989f code cleanup: remove Python.h include from blenkernel. 2012-07-04 20:13:39 +00:00
Campbell Barton
48d0d32f73 svn merge ^/trunk/blender -r48585:48604 2012-07-04 17:55:30 +00:00
Daniel Genrich
958cf139f6 Bugfix Smoke / DynamicPaint: Missing update call from depsgraph was missing when force fields were used. 2012-07-04 16:55:17 +00:00