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
Thomas Dinges
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
Thomas Dinges
02ec0b9431
Cycles:
...
* Forgot to rename some SSS pass strings.
* Some typo fixes.
2013-08-03 21:45:57 +00:00
Campbell Barton
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
Campbell Barton
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
Campbell Barton
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
Campbell Barton
5f72462e38
correct edgeloop tagging assigning an uninitialized value, also remove redundant NULL check in edgenet fill
2013-08-03 17:29:53 +00:00
Campbell Barton
a4b922ad9b
correct invalid sizeof() use in bmesh (harmless in practice)
2013-08-03 17:27:05 +00:00
Campbell Barton
8119791703
fix error in pose bone selection - head/tail mixup
2013-08-03 17:10:00 +00:00
Campbell Barton
a75702b467
code cleanup: remove duplicate checks
2013-08-03 16:55:49 +00:00
Campbell Barton
4770848871
code cleanup: bmesh use 'const' for query functions.
2013-08-03 16:37:23 +00:00
Campbell Barton
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
Thomas Dinges
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
Campbell Barton
ea95a78b0b
skip BLI_STATIC_ASSERT for Coverity builds (caused parse error)
2013-08-03 13:08:51 +00:00
Sv. Lockal
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
Miika Hamalainen
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
Mitchell Stokes
e131447582
BGE: Making sure m_drawingmode is initialized in the various RAS_Storage constructors.
2013-08-03 05:02:03 +00:00
Mitchell Stokes
411a49445f
BGE: Making sure m_left, m_right, m_parent, m_radius, and m_client_object are initialized in the SG_Tree constructors.
2013-08-03 05:01:57 +00:00
Mitchell Stokes
e8ca7abb9a
BGE: Making sure m_objType is initialized in the BlendType (VideoTexture) constructor.
2013-08-03 05:01:50 +00:00
Mitchell Stokes
e4d396f300
BGE: Making sure m_line is initialized in the Exception (VideoTexture) constructor.
2013-08-03 05:01:45 +00:00
Mitchell Stokes
ad65bc3315
BGE: Making sure m_buffV, m_buffU, and m_pitchUV are initialized in the FilterYV12 constructor.
2013-08-03 05:01:40 +00:00
Mitchell Stokes
c90a170d57
BGE: Making sure m_offset is initialized in the ImageSourceMix constructor.
2013-08-03 05:01:36 +00:00
Mitchell Stokes
375309f7a9
BGE: Making sure m_mirrorHalfWidth and m_mirrorHalfHeight are initialized in the ImageRender constructor.
2013-08-03 05:01:32 +00:00
Mitchell Stokes
5a042eb734
BGE: Removing some unreachable and unused code in BL_ActionManager.cpp.
2013-08-03 05:01:23 +00:00
Mitchell Stokes
b5016e34ed
BGE: Fixing a memory leak with PyType_Ready_ADD.
2013-08-02 22:23:42 +00:00
Miika Hamalainen
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