Tamito Kajiyama
ad5025ea25
Fix for an link error in makesrna with SCons. Reported by Thomas Dinges, thanks!
...
Also removed some leftover of the Freestyle trunk merger in the makesrna subdirectory.
2013-08-06 11:21:47 +00:00
Campbell Barton
cf9dcb0709
code cleanup: remove lock from ViewerOperation class
2013-08-06 09:27:20 +00:00
Campbell Barton
4b99786b17
view3d: gridfloor subdivisions wasn't respected for perspective mode.
2013-08-06 07:10:18 +00:00
Campbell Barton
81acaf5f15
quiet double-promotion warnings, change octree.cpp to use a float (vector accumulated into a float anyway)
2013-08-06 06:38:52 +00:00
Campbell Barton
34c64b8ea3
cycles builds with -Wdouble-promotion again.
2013-08-06 06:36:34 +00:00
Brecht Van Lommel
bff75bafbd
Fix crash loading .blend files that have multiple outliners in a screen, saved
...
with recent outliner optimizations (revision 58855, 3 days ago), in any Blender
version before this commit. On current Blender it would give a double free
warning in the console.
The problem is that it creates a temporary TreeStore on file save. However if you
have multiple outliners this memory block would always be at the same memory
address making it no longer unique. That then meant old memory address lookups on
file read were failing. Solution now is to postpone freeing these temporary memory
blocks until the end so that they are at unique addresses.
2013-08-06 05:35:54 +00:00
Campbell Barton
90b22486c7
select faces after dissolving
2013-08-06 05:05:31 +00:00
Campbell Barton
4d9d21600d
Add key shortcut for context sensitive dissolve, Ctrl+X / Ctrl+Delete (as with node editor)
2013-08-06 05:01:11 +00:00
Campbell Barton
34aa68f299
fix for using uninitialized boolean vars for mask select more/less
2013-08-06 03:45:11 +00:00
Campbell Barton
0398ef6ae0
code clenup: remove benchmarking left in by accident and GPU print, also some minor style edits
2013-08-06 02:47:47 +00:00
Sergey Sharybin
8d6e5606d8
Add assert to mul_v3_m3v3 and mul_v2_m3v3,
...
So they're not likely to be called with bad arguments.
2013-08-06 02:37:02 +00:00
Sergey Sharybin
44376a322f
Frame reporting to console was wrong when not using Render Layers in compo
...
This is because render info's current frame is either happens in
conversion stage (when using Render Layers node) or in sequencer's
rendering (which you don't usually have).
Now made it so when only compositor is used, proper current frame
is being set to re->i stats structure.
2013-08-06 02:34:50 +00:00
Campbell Barton
2acf6e9d84
fix [ #36363 ] ray_cast face index with n_gons
2013-08-06 02:16:29 +00:00
Mitchell Stokes
98176b4e1e
BGE: Making sure the BlenderPlayer calls Py_Finalize().
2013-08-06 02:05:32 +00:00
Campbell Barton
b03bc88d21
replace mul_serie_m4 with mul_m4_m4m4 when only 3 args are given
2013-08-06 01:45:29 +00:00
Campbell Barton
ce2e2b141e
use gcc malloc attribute for low level allocation functions, prevents gcc from checking if resulting pointers alias existing pointers, also use sentinel attribute for uiButGetStrInfo so incorrect usage gives a warning.
2013-08-05 20:57:13 +00:00
Sv. Lockal
b438c2840c
SplitViewer node:
...
- fix thumbnail preview (previously it showed only one input)
- make SplitViewer node update even if the second input is not connected
- now it works when the first socket is connected to a zero-sized node tree (e. g. Color Input node)
- SplitViewer node is now based on 2 operations: SplitOperation and ViewerOperation.
- ViewerBaseOperation was removed as a redundant one. Any future viewer style node can use the same principle and prepare the output before passing to an actual ViewerOperation.
Thanks Lukas Toenne for reviewing this patch and giving me get few pieces of advice.
2013-08-05 19:16:52 +00:00
Brecht Van Lommel
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
Brecht Van Lommel
d01fbce3bb
Fix #36380 : cycles render error with sun lamp that has object scale 0,0,0.
2013-08-05 14:22:07 +00:00
Brecht Van Lommel
3bf175f270
Cycles OSL: image texture lookup optimization, acquire the per thread handle
...
for texture system in advance. Patch by Martijn Berger, with some tweaks.
There was about a 10% performance improvement on OS X in my tests with the
images.blend test file. This may be less on other platforms because OS X has
particularly slow mutex locks.
2013-08-05 12:49:15 +00:00
Brecht Van Lommel
83617429cf
Fix build warnings with clang and UNUSED_RESULT_ATTR (attribute declaration must precede definition).
2013-08-05 12:49:13 +00:00
Brecht Van Lommel
28f893f23a
Fix wrong cycles cmake + msvc build flags with relwithdebinfo and minsizerel.
...
Patch by Karsten Schwenk.
2013-08-05 12:02:43 +00:00
Campbell Barton
0e6048ac1a
fix for divide by zero when border render size causes zero pixel width
2013-08-05 06:08:58 +00:00
Campbell Barton
e5a885a038
fix for blender-internal viewport render looking fuzzy, don't filter the image
2013-08-05 05:13:09 +00:00
Campbell Barton
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
Campbell Barton
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
Campbell Barton
2b3f97c94d
use api function for rect intersection
2013-08-05 04:19:34 +00:00
Thomas Dinges
d06fa3ba2b
Code cleanup / Cycles:
...
* Various string and comment fixes.
2013-08-05 01:24:41 +00:00
Campbell Barton
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
Campbell Barton
fdc336510a
code cleanup: remove redundant NULL checks
2013-08-04 19:13:07 +00:00
Campbell Barton
5129112072
add c++/guardedalloc to more freestyle classes, also remove redundant 'public:'
2013-08-04 18:50:00 +00:00
Campbell Barton
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
Campbell Barton
41721e11fb
fix for 2 memory leaks in dualcon library, quite bad since they leaked on every evaluation.
2013-08-04 18:05:29 +00:00
Campbell Barton
35db9c5e70
Support WITH_CXX_GUARDEDALLOC for dualcon library
2013-08-04 17:58:17 +00:00
Campbell Barton
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
Campbell Barton
aa43a978c1
fix memory leak in KX_ObstacleSimulation
2013-08-04 17:20:03 +00:00
Campbell Barton
7e697846a5
fix for BL_ArmatureConstraint::UpdateTarget(), was getting the pose from the target, not the subtarget.
2013-08-04 16:48:10 +00:00
Thomas Dinges
c26754fe9d
Cycles / OpenCL:
...
* Was broken after Blackbody merge, forgot to rename a struct...
2013-08-04 12:40:46 +00:00
Campbell Barton
a270481239
add missing NULL check in RB_dworld_export if fopen fails.
2013-08-04 04:30:14 +00:00
Campbell Barton
fee152d0ec
fix read outside buffer range KX_ObstacleSimulationTOI_rays::sampleRVO,
...
Was using 3d vectors for 2d operations, passing float[2] to args that use MT_Vector3 was reading the 3rd value of a 2d array
2013-08-04 04:07:29 +00:00
Campbell Barton
c0b73fa1b0
KX_ObstacleSimulation: replace inline math functions with BLI_math functions
2013-08-04 03:47:43 +00:00
Campbell Barton
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
Campbell Barton
4bd60205fb
fix navmesh, error was introduced by r58420 looks like changes weren't tested.
2013-08-04 03:43:02 +00:00
Campbell Barton
704598ef4e
avoid freeing NULL pointer for navmesh BuildVertIndArrays and dont truncate memset arg.
2013-08-04 03:02:35 +00:00
Campbell Barton
bd89bd9e1c
avoid using MEM_reallocN_id directly, add utility macro for freeing.
2013-08-04 03:00:04 +00:00
Campbell Barton
5881fe5d67
avoid runtime overflow (1 << 31), for RNA and armature layer UI.
2013-08-04 00:01:41 +00:00
Campbell Barton
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
Campbell Barton
c3b9ec82d0
fix for strange error with BGE 2d filter code,
...
RAS_2DFilterManager::RenderFilters was casting an int to an unsigned int, then doing a subtraction which would give a negative number.
2013-08-03 23:40:15 +00:00
Campbell Barton
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
Campbell Barton
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