Commit Graph

47437 Commits

Author SHA1 Message Date
Campbell Barton
357655af32 use static functions for raycast functions. 2013-05-08 12:55:05 +00:00
Campbell Barton
8238cd6992 use unsigned int, for mask rasterizer. 2013-05-08 12:54:47 +00:00
Campbell Barton
5c4f96af2c code cleanup: use 'const float[2]' where possible. 2013-05-08 12:54:33 +00:00
Campbell Barton
62db610220 use unsigned int's for smallhash, avoids using ABS when converting an
int from a key.
2013-05-08 12:54:07 +00:00
Campbell Barton
6b1b20ef0d code cleanup: BKE_mesh_nurbs_displist_to_mdata(), use const bool for
'conv_polys'
2013-05-08 12:53:52 +00:00
Campbell Barton
67ec36a615 use negative dot product for clipping, rather then doing it inline. 2013-05-08 12:53:43 +00:00
Campbell Barton
3e4db4969c code cleanup: remove unused 'dm' arg from BVHTreeFromMesh. 2013-05-08 12:53:34 +00:00
Campbell Barton
cf3d638681 remove unneeded null check in draw_viewport_name 2013-05-08 12:53:14 +00:00
Campbell Barton
34c28e3a0e fix [#35259] Crash when enabling mesh analysis intersect. 2013-05-08 12:40:23 +00:00
Brecht Van Lommel
fdcca14090 Fix #35255: build for older OpenCollada versions failed, but don't see a good
reason to not keep it working.
2013-05-08 10:07:58 +00:00
Brecht Van Lommel
13c0ef139f Fix OS X 32 bit build error, and bring buildbot config in sync with default. 2013-05-07 18:32:37 +00:00
Ton Roosendaal
aa959b4e7d Putting undefined versioning to only older than 2.67. 2013-05-07 16:35:37 +00:00
Ton Roosendaal
a0800cb8b3 And here's the epic 2.67 splash and version!
Celebrating Freestyle :) Kudos to dfeveloper Tamito and Malaysian artist Mclelun!
2013-05-07 16:27:55 +00:00
Sergey Sharybin
a4cf8b3779 Supress error message if dlopen for jack.so failed
This is mainly happening when there's no jack installed
in the system and no reason to cause general panic
messages in the terminal about this.
2013-05-07 15:49:23 +00:00
Sergey Sharybin
5455928262 Fix #35122: Blenderplayer crashes when loading level
Issue was caused by ntreeUpdateTree calling for a ntree
which is not in G.main.

This lead to issues in ntreeVerifyNodes (which is called
from ntreeUpdateTree).

Made is so ntreeUpdateTree now accepts main as an argument.
Will work for the release, later we could either solve the
TODO mentioned in ntreeUpdateTree which will eliminate need
in main there or make it so context's main is used from all
over where ntreeUpdateTree is called (currently there're
still some usages of G.main).
2013-05-07 15:28:42 +00:00
Campbell Barton
c31ec62d2f fix for glitch in text editor using ctrl+(backspace / delete),
for now just don't jump words when theres a selection.
2013-05-07 01:00:19 +00:00
Campbell Barton
0ffde4fae3 expose bmesh volume calculation to python api (use for print toolbox addon). 2013-05-07 00:00:32 +00:00
Sergej Reich
424e8b69f1 bullet: Don't use sse in api for windows.
Remove stray BT_USE_SSE_IN_API definitions.
Was causing problems especially for 32 bit windows.

It's not quite clear why they were added in the first place since
this should be defined in btScalar.h, needs further investigation.

Thanks to Francisco De La Cruz (xercesblue) for looking into this.

Should fix [#35071] Bullet Convex Hull Crashes on Win32 with SSE
2013-05-06 22:53:11 +00:00
Sergey Sharybin
88129ac395 Fix for crash when using 2D stabilization for float movie clips
Also removed unneeded image buffer scaling, it was only needed
for "early output" if there was no rotation. That is no longer
supported since it used to pixelate result a lot and interpolation
is always used now.

Saves quite a few of memory and CPU cycles.
2013-05-06 17:59:02 +00:00
Sergey Sharybin
9aed3f62d3 Fix missing angle zerolization when 2d stabilization is disabled.
Not sure how it wasn't noticed for so long, probably check happens
in callee as well, but better be safe than sorry here.
2013-05-06 17:24:30 +00:00
Brecht Van Lommel
7224513f57 Fix crash rendering material with "Face Textures" option.
Example file: lib/tests/materials/crystal_cube.blend
2013-05-06 14:00:28 +00:00
Brecht Van Lommel
2a4ee23a25 Fix #35225: new OS X Lion fullscreen did not work together well with old
fullscreen option. It was possible to enable both at the same time which got
you stuck in a state where it was impossible to exit fullscreen. Now I've made
them mutually exlusive, only one can be enabled at the same time.

Note the reason we need to support both is because the new Lion fullscreen does
not work with multiple monitors, it will just give black screens on the other
monitors. This is a limitation of OS X, you can find many complaints about this
online.
2013-05-06 13:39:25 +00:00
Sergey Sharybin
ad7a74f58d Another correction to svn rev56509
Initial fix was not fully working, because faulty
edge shared the same address as screen area. This
lead to screen freeing issues -- double free (which
was supressed by guarded allocation actually) but
also freed memory access when iterating via edges
to free them.

Solved by a small hack which removes edges with bad
vertices from edges list. This prevents double-free
and freed memory access cased by corrupted files we're
currently fixing. In other cases this tweak is likely
be harmless -- in worst case scenario it'll lead to
small memory leak, which is not as much lethal as
freed memory access.
2013-05-06 12:27:14 +00:00
Sergey Sharybin
5282c4d003 Fix for uninitialized variable in previous commit. 2013-05-06 11:38:21 +00:00
Ton Roosendaal
b299b039f7 Bug fix #35179
Added provision for saved corrupt blend files - caused by a startup.blend 
addressing > 16 GB space, which was read in 32 bits.

Now an invalid screen will get removed immediate after read. Might give
a memory-not-in-memlist print, but that's quite safe.
2013-05-06 11:23:13 +00:00
Brecht Van Lommel
c36365935c Fix #35229: collada crash exporting constraints with no target set. 2013-05-06 11:12:00 +00:00
Brecht Van Lommel
f39464870c Attempt to fix #35228: hide a few LLVM symbols that are not in the llvm namespace
to try to avoid conflicts with Mesa GL llvmpipe on linux.
2013-05-06 09:44:56 +00:00
Campbell Barton
4319685234 fix for cursor jumping error stepping backwards where the the first character of a string would be skipped no matter what it was. 2013-05-06 03:35:21 +00:00
Campbell Barton
c97983c9de correction for uv template, also some doxygen comment corrections. 2013-05-05 18:41:45 +00:00
Brecht Van Lommel
02fd2d256d Fix #35216: code examples like simple operator missing from python docs due to
rename of directory.
2013-05-05 05:56:48 +00:00
Brecht Van Lommel
62087935ec Fix #35209: cycles generated texture coordinates did not stick to deforming meshes. 2013-05-05 05:56:41 +00:00
Campbell Barton
998b9241be correct bmesh api crossref and update uv-operator template. 2013-05-05 05:54:29 +00:00
Thomas Dinges
36c4dc2d5b Cycles / Preview render:
* Hair strands were too thin in preview, after addition of "radius_scale" property in r56072.
Increased the scale from 0.01 to 0.03 now.
2013-05-04 23:12:17 +00:00
Thomas Dinges
2741dd0fe3 * Remove unused screens from Cycles preview blend to save some space. 2013-05-04 23:02:05 +00:00
Campbell Barton
463f2a43dc revert part of own commit r56476, caused scene unlink button to be removed. 2013-05-04 22:29:33 +00:00
Sv. Lockal
f9c28cdc7a Fix for non-terminated reading of JPEG metadata
This commit prevents Blender reading memory next to non-null-terminated JPEG metadata strings
2013-05-04 21:12:23 +00:00
Brecht Van Lommel
fd0ad3c8df Fix quicktime video export not properly supporting animation of audio properties like volume.
Patch #35184 by James Yonan, see the report for a detailed explanation of why this failed.
2013-05-04 13:17:43 +00:00
Campbell Barton
c656174578 fix for mistake in own recent commit, broke operator search (r56465). 2013-05-03 22:43:02 +00:00
Brecht Van Lommel
838949c3e7 Fix #35207: addition to previous fix to avoid OSL getting uninitialized
ray differentials for lighting, which could cause bad texture filtering
artifacts or performance.
2013-05-03 21:34:51 +00:00
Bastien Montagne
879859e0cc Second part of fix for regression of nodes UI translation (since new pynodes): add back sockets translation. 2013-05-03 14:01:12 +00:00
Brecht Van Lommel
356ca7ec8a Fix for recent glossy BSDF fix, color ramp test file was rendering different. 2013-05-03 13:17:28 +00:00
Bastien Montagne
95271e248a One-liner fix for part of regression of nodes UI translation (since new pynodes): add menu entries are translated again.
The sockets' names remain untranslated currently, investigating whether this can safely be fixed at this stage too...
2013-05-03 12:37:45 +00:00
Campbell Barton
0e27e71962 correct own recent commit, confused totloop with dm_totloop, rename vars & correct even though in this case the error was harmless. 2013-05-03 08:37:18 +00:00
Campbell Barton
a947ea0a1e disable view3d dolly, move, pan -- when the view offset is locked, also corrected fly modes offset lock check
and added ED_view3d_offset_lock_check() to reuse between functions.
2013-05-03 07:29:25 +00:00
Campbell Barton
2a78a14369 knife sort_by_frac_along was re-calculating the reference factor for every test, change to only calculate once and use line_point_factor_v3().
also add zero division check for line_point_factor_v3() since the 2d version already checked for this.
2013-05-03 05:57:33 +00:00
Brecht Van Lommel
a5d6820b6d Possible fix for #35198: uninitialized memory access with background multiple
importance sampling + OSL.
2013-05-03 05:24:05 +00:00
Brecht Van Lommel
7753d1c49c Fix #34889: negative lights not working in glsl view and game engine.
Patch #35197 by Tyler Seacrest.
2013-05-03 05:24:01 +00:00
Tamito Kajiyama
9d25253596 Minor code clean-up. 2013-05-03 03:36:33 +00:00
Tamito Kajiyama
b1afee23da Fix for shaders.py based on code review comments from flokkievids.
Only the suggested changes that cause backward incompatibility were considered for now.

* Removed pyFXSThicknessShader that is identical with pyConstantThicknessShader.

* Swapped the order of two arguments of the pyDecreasingThicknessShader constructor
in line with other shaders taking the same arguments.

* Made module functions smoothC and get_fedge into methods of relevant shader classes.

* Removed pyExtremitiesOrientationShader that relied on undefined Stroke methods.
2013-05-03 02:37:43 +00:00
Campbell Barton
e281fff26c remove unused random number generator, thanks Bao2 for spotting. 2013-05-03 02:23:55 +00:00