Commit Graph

38269 Commits

Author SHA1 Message Date
f4e4e2594c AVI JPEG: remove the restriction to write only sizes that are multiples of 16.
Other encoders do not seem to have this restriction, and multiple video players
can play the files fine.

This also removes the same restriction for reading files, which actually caused
errors on some files with odd width/height.
2013-08-05 18:02:21 +00:00
83617429cf Fix build warnings with clang and UNUSED_RESULT_ATTR (attribute declaration must precede definition). 2013-08-05 12:49:13 +00:00
0e6048ac1a fix for divide by zero when border render size causes zero pixel width 2013-08-05 06:08:58 +00:00
e5a885a038 fix for blender-internal viewport render looking fuzzy, don't filter the image 2013-08-05 05:13:09 +00:00
0395b8eee8 border render with cycles had 1 pixel offset on the top-right edge of the image, issue was caused by wmSubWindowScissorSet adding 1 to the ar->drawrct, now only add the padding when drawing the entire area 2013-08-05 04:52:27 +00:00
37ff3a0e8a minor glitch with border drawing, use glRecti rather then glRectf, so rounding matches the border render 2013-08-05 04:35:28 +00:00
2b3f97c94d use api function for rect intersection 2013-08-05 04:19:34 +00:00
2497084744 mempool api cleanup: differentiate mempool functions that allocate a pointer lookup table from allocating the data as a contiguous array,
call these functions BLI_mempool_as_table(), BLI_mempool_as_array(), the N prefixed versions of these functions return newly allocated arrays.
2013-08-04 19:40:50 +00:00
5129112072 add c++/guardedalloc to more freestyle classes, also remove redundant 'public:' 2013-08-04 18:50:00 +00:00
78d69a1e15 code cleanup: replace strcpy with BLI_strncpy for fixed size strings, and correct some harmless but incorrect sizeof() use 2013-08-04 18:12:49 +00:00
d2dbc0b85e more consistent use of checks of BLI_open(), check 'fd < 0' rather then -1. packedfile incorrectly treated 0 as an error value. best not be vague/sloppy with this. 2013-08-04 17:30:47 +00:00
93f5e2218a code cleanup: replace strncpy -> BLI_strncpy, skip first 2 chars when making a hash from the object name. 2013-08-04 03:45:30 +00:00
4bd60205fb fix navmesh, error was introduced by r58420 looks like changes weren't tested. 2013-08-04 03:43:02 +00:00
bd89bd9e1c avoid using MEM_reallocN_id directly, add utility macro for freeing. 2013-08-04 03:00:04 +00:00
5881fe5d67 avoid runtime overflow (1 << 31), for RNA and armature layer UI. 2013-08-04 00:01:41 +00:00
dd037a85a0 code cleanup: remove unused define, correct header guard mismatch, add NULL check so DM_to_mesh() can have a NULL object passed (currently not used) and remove redundant NULL check. 2013-08-03 23:58:17 +00:00
c212503437 minor changes to BLI_heap, save some CPU cycles.
added an assert for incorrect use of BLI_heap_remove
2013-08-03 22:04:47 +00:00
8052bf0ec2 add missing NULL checks from BKE_constraint_get_typeinfo(), so constraints from the future dont crash.
also remove some redundant NULL checks.
2013-08-03 22:03:15 +00:00
6e940a15cb Cycles / SSS passes:
* Connecting the new passes in the compositor caused a crash, forgot to register the new passes in the compositor operations code.
2013-08-03 21:56:27 +00:00
02ec0b9431 Cycles:
* Forgot to rename some SSS pass strings.
* Some typo fixes.
2013-08-03 21:45:57 +00:00
26f52fb441 bmesh: improve limited dissolve result
iteratively dissolve the best edge/vert, updating the heap as the dissolve runs.
2013-08-03 21:01:42 +00:00
da5b04a0c2 fix for over-allocation in BKE_pbvh_search_gather, BKE_pbvh_gather_proxies,
each element was having the size of PBVHNode allocated rather then the size of a pointer (8 vs 184 bytes here)
2013-08-03 18:05:30 +00:00
2a8d76d734 add versions of MEM_reallocN, MEM_recallocN which take a string arg so new allocs have an ID, changing existing functions signatures would be too disruptive at the moment. 2013-08-03 17:53:41 +00:00
5f72462e38 correct edgeloop tagging assigning an uninitialized value, also remove redundant NULL check in edgenet fill 2013-08-03 17:29:53 +00:00
a4b922ad9b correct invalid sizeof() use in bmesh (harmless in practice) 2013-08-03 17:27:05 +00:00
8119791703 fix error in pose bone selection - head/tail mixup 2013-08-03 17:10:00 +00:00
a75702b467 code cleanup: remove duplicate checks 2013-08-03 16:55:49 +00:00
4770848871 code cleanup: bmesh use 'const' for query functions. 2013-08-03 16:37:23 +00:00
31761f5e5b code cleanup: replace bmesh_radial_face_find -> BM_edge_in_face 2013-08-03 15:30:57 +00:00
Lukas Toenne
20a377f93a Fix #36288, Renderlayer toggles behave unexpected in Outliner. The outliner was using the wrong flag variable for toggling render layers, was setting pass flags instead of the layer on/off flag. 2013-08-03 15:00:22 +00:00
5fc6f04fc8 Cycles / SSS:
* Render Passes are now available for Subsurface Scattering (Direct, Indirect and Color pass). 

This is part of my GSoC project, SVN merge of r58587, r58828 and r58835.
2013-08-03 13:12:09 +00:00
ea95a78b0b skip BLI_STATIC_ASSERT for Coverity builds (caused parse error) 2013-08-03 13:08:51 +00:00
66a4077927 fix for [#36260] 2,300 Objects Makes Blender Unresponsive
- performance of outliner was low because of unoptimal data structures.
- now it uses BLI_mempool instead of custom mempool and GHash to make searches for duplicates faster.
- also fix undesired behaviour of BLI_mempool_as_arrayN

thanks to Campbell Barton and Lukas Tönne for helping me get a better fix put together.
2013-08-03 11:35:09 +00:00
91d148b891 Dynamic Paint: Added a new "smoothness" parameter for waves.
It greatly helps getting rid of that "noise" that occurs if you use really steep objects (like cubes) as a brush. New default value is 1.0 which is just high enough to only get rid of the sharpest spikes, so if you want really smooth waves it's better use higher values.

This also seems to "fix" bug [#35413].
2013-08-03 09:46:38 +00:00
9f1670cde6 Fix [#35541]: Point cache doesn't load existing frames from disk if cache file name is changed. 2013-08-02 16:39:50 +00:00
ab777e957c fix(Collada): wrong usage of the set attribute with multiple UV sets 2013-08-02 15:58:11 +00:00
c17f5960df correct error in own recent edits to triangle joining 2013-08-02 13:35:04 +00:00
efe690a3a5 code cleanup:
- incorrect NULL check in logic UI drawing
- incorrect NULL check in octree quad test
2013-08-02 13:21:32 +00:00
5302469834 Some versioning changes/patching of the brush system:
* Change overlay alphas to 33 if not initialized. This should have been
done for 2.67 but better do it now to avoid frustration with overly
transparent overlays. For users that have set this low manually this
will reset the setting to 33 but I think it's less irritating than users
who unwillingly had the setting to 1 and saw nothing when activating the
overlay.

* Allow overlay alpha to be zero as well

* Reset old, now obsolete BRUSH_FIXED flag for brushes that still use
this. I am doing this here to avoid patching hell when the paint brush
is merged, since it's not possible to know the merged version
beforehand, and this flag will be used.
2013-08-02 00:24:34 +00:00
36df391b2f User request: when switching to smooth tool with shift-click in
sculpting, use the original brush size.
2013-08-01 23:07:53 +00:00
78820edafc use bmesh for loop macros for looping over mesh verts/edges/faces 2013-08-01 18:33:35 +00:00
e03b1668e0 code cleanup: remove unused functions
- IsectLLPt2Df
- isect_point_quad_uv_v2
- isect_point_face_uv_v2

These are obsoleted by resolve_tri_uv, resolve_quad_uv

also add attributes for unused function results for some math functions.
2013-08-01 17:15:11 +00:00
6fe4ec1bdc Fix a very irritating problem of our stroke system. On small brushes,
the space stroke would be repeated on unneeded subpixel precision. Since
this is not really useful, enforce spacing to be at least one pixel.
This makes small brushes quite more responsive.
2013-08-01 17:14:20 +00:00
ceaec3c86a Fix [#36265]: Smoke doesn't work if domain object has negative scale. 2013-08-01 12:09:12 +00:00
e34b7a62c4 Hack to workaround scene update lock caused by GIL
Couple of RNA callbacks would imply scene update routines
to trigger. This works fine for until some objects does have
drivers.

If some object does have driver, it'll try to lock GIL
when evaluating this driver, and GIL is already locked by
a python API, which causes deadlock.

For now made it so RNA callbacks doesn't do threaded update.
This is not so much nice, especially since Cycles might
use the same API for motion blur, but for now don't see
better way to solve the deadlock.
2013-08-01 03:58:22 +00:00
cb0cb84127 Fix typo which lead to crash when applying lattice modifier 2013-07-31 22:37:54 +00:00
0f591cbb51 Small optimization to previous change of statistics output
Use boolean flag for detecting whether there're updated
objects instead of doing real object counter (which required
spin lock).
2013-07-31 21:56:11 +00:00
983137ed74 Remove annoying statistics ifdef from code
All the statistics is already inside if() block, so
it doesn't have any noticeable affect on overall
performance.
2013-07-31 21:56:06 +00:00
a196de9a79 Made task scheduler follow command line argument number of threads 2013-07-31 21:56:00 +00:00
f5db3dc220 Made it so threaded update statistics only prints when something was updated
This prevents infinite prints of statistics while blender is idling.
2013-07-31 21:55:54 +00:00