7 years agocode cleanup: replace strcpy with BLI_strncpy for fixed size strings, and correct...
Campbell Barton [Sun, 4 Aug 2013 18:12:49 +0000 (18:12 +0000)]
code cleanup: replace strcpy with BLI_strncpy for fixed size strings, and correct some harmless but incorrect sizeof() use

7 years agofix for 2 memory leaks in dualcon library, quite bad since they leaked on every evalu...
Campbell Barton [Sun, 4 Aug 2013 18:05:29 +0000 (18:05 +0000)]
fix for 2 memory leaks in dualcon library, quite bad since they leaked on every evaluation.

7 years agoSupport WITH_CXX_GUARDEDALLOC for dualcon library
Campbell Barton [Sun, 4 Aug 2013 17:58:17 +0000 (17:58 +0000)]
Support WITH_CXX_GUARDEDALLOC for dualcon library

7 years agomore consistent use of checks of BLI_open(), check 'fd < 0' rather then -1. packedfil...
Campbell Barton [Sun, 4 Aug 2013 17:30:47 +0000 (17:30 +0000)]
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.

7 years agofix memory leak in KX_ObstacleSimulation
Campbell Barton [Sun, 4 Aug 2013 17:20:03 +0000 (17:20 +0000)]
fix memory leak in KX_ObstacleSimulation

7 years agofix for BL_ArmatureConstraint::UpdateTarget(), was getting the pose from the target...
Campbell Barton [Sun, 4 Aug 2013 16:48:10 +0000 (16:48 +0000)]
fix for BL_ArmatureConstraint::UpdateTarget(), was getting the pose from the target, not the subtarget.

7 years agoCycles / OpenCL:
Thomas Dinges [Sun, 4 Aug 2013 12:40:46 +0000 (12:40 +0000)]
Cycles / OpenCL:
* Was broken after Blackbody merge, forgot to rename a struct...

7 years agoadd missing NULL check in RB_dworld_export if fopen fails.
Campbell Barton [Sun, 4 Aug 2013 04:30:14 +0000 (04:30 +0000)]
add missing NULL check in RB_dworld_export if fopen fails.

7 years agofix read outside buffer range KX_ObstacleSimulationTOI_rays::sampleRVO,
Campbell Barton [Sun, 4 Aug 2013 04:07:29 +0000 (04:07 +0000)]
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

7 years agoKX_ObstacleSimulation: replace inline math functions with BLI_math functions
Campbell Barton [Sun, 4 Aug 2013 03:47:43 +0000 (03:47 +0000)]
KX_ObstacleSimulation: replace inline math functions with BLI_math functions

7 years agocode cleanup: replace strncpy -> BLI_strncpy, skip first 2 chars when making a hash...
Campbell Barton [Sun, 4 Aug 2013 03:45:30 +0000 (03:45 +0000)]
code cleanup: replace strncpy -> BLI_strncpy, skip first 2 chars when making a hash from the object name.

7 years agofix navmesh, error was introduced by r58420 looks like changes weren't tested.
Campbell Barton [Sun, 4 Aug 2013 03:43:02 +0000 (03:43 +0000)]
fix navmesh, error was introduced by r58420 looks like changes weren't tested.

7 years agoavoid freeing NULL pointer for navmesh BuildVertIndArrays and dont truncate memset...
Campbell Barton [Sun, 4 Aug 2013 03:02:35 +0000 (03:02 +0000)]
avoid freeing NULL pointer for navmesh BuildVertIndArrays and dont truncate memset arg.

7 years agoavoid using MEM_reallocN_id directly, add utility macro for freeing.
Campbell Barton [Sun, 4 Aug 2013 03:00:04 +0000 (03:00 +0000)]
avoid using MEM_reallocN_id directly, add utility macro for freeing.

7 years agoavoid runtime overflow (1 << 31), for RNA and armature layer UI.
Campbell Barton [Sun, 4 Aug 2013 00:01:41 +0000 (00:01 +0000)]
avoid runtime overflow (1 << 31), for RNA and armature layer UI.

7 years agocode cleanup: remove unused define, correct header guard mismatch, add NULL check...
Campbell Barton [Sat, 3 Aug 2013 23:58:17 +0000 (23:58 +0000)]
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.

7 years agofix for strange error with BGE 2d filter code,
Campbell Barton [Sat, 3 Aug 2013 23:40:15 +0000 (23:40 +0000)]
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.

7 years agominor changes to BLI_heap, save some CPU cycles.
Campbell Barton [Sat, 3 Aug 2013 22:04:47 +0000 (22:04 +0000)]
minor changes to BLI_heap, save some CPU cycles.
added an assert for incorrect use of BLI_heap_remove

7 years agoadd missing NULL checks from BKE_constraint_get_typeinfo(), so constraints from the...
Campbell Barton [Sat, 3 Aug 2013 22:03:15 +0000 (22:03 +0000)]
add missing NULL checks from BKE_constraint_get_typeinfo(), so constraints from the future dont crash.
also remove some redundant NULL checks.

7 years agoCycles / SSS passes:
Thomas Dinges [Sat, 3 Aug 2013 21:56:27 +0000 (21:56 +0000)]
Cycles / SSS passes:
* Connecting the new passes in the compositor caused a crash, forgot to register the new passes in the compositor operations code.

7 years agoCycles:
Thomas Dinges [Sat, 3 Aug 2013 21:45:57 +0000 (21:45 +0000)]
* Forgot to rename some SSS pass strings.
* Some typo fixes.

7 years agobmesh: improve limited dissolve result
Campbell Barton [Sat, 3 Aug 2013 21:01:42 +0000 (21:01 +0000)]
bmesh: improve limited dissolve result

iteratively dissolve the best edge/vert, updating the heap as the dissolve runs.

7 years agofix for over-allocation in BKE_pbvh_search_gather, BKE_pbvh_gather_proxies,
Campbell Barton [Sat, 3 Aug 2013 18:05:30 +0000 (18:05 +0000)]
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)

7 years agoadd versions of MEM_reallocN, MEM_recallocN which take a string arg so new allocs...
Campbell Barton [Sat, 3 Aug 2013 17:53:41 +0000 (17:53 +0000)]
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.

7 years agocorrect edgeloop tagging assigning an uninitialized value, also remove redundant...
Campbell Barton [Sat, 3 Aug 2013 17:29:53 +0000 (17:29 +0000)]
correct edgeloop tagging assigning an uninitialized value, also remove redundant NULL check in edgenet fill

7 years agocorrect invalid sizeof() use in bmesh (harmless in practice)
Campbell Barton [Sat, 3 Aug 2013 17:27:05 +0000 (17:27 +0000)]
correct invalid sizeof() use in bmesh (harmless in practice)

7 years agofix error in pose bone selection - head/tail mixup
Campbell Barton [Sat, 3 Aug 2013 17:10:00 +0000 (17:10 +0000)]
fix error in pose bone selection - head/tail mixup

7 years agocode cleanup: remove duplicate checks
Campbell Barton [Sat, 3 Aug 2013 16:55:49 +0000 (16:55 +0000)]
code cleanup: remove duplicate checks

7 years agocode cleanup: bmesh use 'const' for query functions.
Campbell Barton [Sat, 3 Aug 2013 16:37:23 +0000 (16:37 +0000)]
code cleanup: bmesh use 'const' for query functions.

7 years agocode cleanup: replace bmesh_radial_face_find -> BM_edge_in_face
Campbell Barton [Sat, 3 Aug 2013 15:30:57 +0000 (15:30 +0000)]
code cleanup: replace bmesh_radial_face_find -> BM_edge_in_face

7 years agoFix #36288, Renderlayer toggles behave unexpected in Outliner. The outliner was using...
Lukas Toenne [Sat, 3 Aug 2013 15:00:22 +0000 (15:00 +0000)]
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.

7 years agoCycles / SSS:
Thomas Dinges [Sat, 3 Aug 2013 13:12:09 +0000 (13:12 +0000)]
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.

7 years agoskip BLI_STATIC_ASSERT for Coverity builds (caused parse error)
Campbell Barton [Sat, 3 Aug 2013 13:08:51 +0000 (13:08 +0000)]
skip BLI_STATIC_ASSERT for Coverity builds (caused parse error)

7 years agofix for [#36260] 2,300 Objects Makes Blender Unresponsive
Sv. Lockal [Sat, 3 Aug 2013 11:35:09 +0000 (11:35 +0000)]
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.

7 years agoDynamic Paint: Added a new "smoothness" parameter for waves.
Miika Hamalainen [Sat, 3 Aug 2013 09:46:38 +0000 (09:46 +0000)]
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].

7 years agoBGE: Making sure m_drawingmode is initialized in the various RAS_Storage constructors.
Mitchell Stokes [Sat, 3 Aug 2013 05:02:03 +0000 (05:02 +0000)]
BGE: Making sure m_drawingmode is initialized in the various RAS_Storage constructors.

7 years agoBGE: Making sure m_left, m_right, m_parent, m_radius, and m_client_object are initial...
Mitchell Stokes [Sat, 3 Aug 2013 05:01:57 +0000 (05:01 +0000)]
BGE: Making sure m_left, m_right, m_parent, m_radius, and m_client_object are initialized in the SG_Tree constructors.

7 years agoBGE: Making sure m_objType is initialized in the BlendType (VideoTexture) constructor.
Mitchell Stokes [Sat, 3 Aug 2013 05:01:50 +0000 (05:01 +0000)]
BGE: Making sure m_objType is initialized in the BlendType (VideoTexture) constructor.

7 years agoBGE: Making sure m_line is initialized in the Exception (VideoTexture) constructor.
Mitchell Stokes [Sat, 3 Aug 2013 05:01:45 +0000 (05:01 +0000)]
BGE: Making sure m_line is initialized in the Exception (VideoTexture) constructor.

7 years agoBGE: Making sure m_buffV, m_buffU, and m_pitchUV are initialized in the FilterYV12...
Mitchell Stokes [Sat, 3 Aug 2013 05:01:40 +0000 (05:01 +0000)]
BGE: Making sure m_buffV, m_buffU, and m_pitchUV are initialized in the FilterYV12 constructor.

7 years agoBGE: Making sure m_offset is initialized in the ImageSourceMix constructor.
Mitchell Stokes [Sat, 3 Aug 2013 05:01:36 +0000 (05:01 +0000)]
BGE: Making sure m_offset is initialized in the ImageSourceMix constructor.

7 years agoBGE: Making sure m_mirrorHalfWidth and m_mirrorHalfHeight are initialized in the...
Mitchell Stokes [Sat, 3 Aug 2013 05:01:32 +0000 (05:01 +0000)]
BGE: Making sure m_mirrorHalfWidth and m_mirrorHalfHeight are initialized in the ImageRender constructor.

7 years agoBGE: Removing some unreachable and unused code in BL_ActionManager.cpp.
Mitchell Stokes [Sat, 3 Aug 2013 05:01:23 +0000 (05:01 +0000)]
BGE: Removing some unreachable and unused code in BL_ActionManager.cpp.

7 years agoBGE: Fixing a memory leak with PyType_Ready_ADD.
Mitchell Stokes [Fri, 2 Aug 2013 22:23:42 +0000 (22:23 +0000)]
BGE: Fixing a memory leak with PyType_Ready_ADD.

7 years agoFix [#35541]: Point cache doesn't load existing frames from disk if cache file name...
Miika Hamalainen [Fri, 2 Aug 2013 16:39:50 +0000 (16:39 +0000)]
Fix [#35541]: Point cache doesn't load existing frames from disk if cache file name is changed.

7 years agofix(Collada): wrong usage of the set attribute with multiple UV sets
Gaia Clary [Fri, 2 Aug 2013 15:58:11 +0000 (15:58 +0000)]
fix(Collada): wrong usage of the set attribute with multiple UV sets

7 years agocorrect error in own recent edits to triangle joining
Campbell Barton [Fri, 2 Aug 2013 13:35:04 +0000 (13:35 +0000)]
correct error in own recent edits to triangle joining

7 years agocode cleanup:
Campbell Barton [Fri, 2 Aug 2013 13:21:32 +0000 (13:21 +0000)]
code cleanup:
- incorrect NULL check in logic UI drawing
- incorrect NULL check in octree quad test

7 years agoSome versioning changes/patching of the brush system:
Antony Riakiotakis [Fri, 2 Aug 2013 00:24:34 +0000 (00:24 +0000)]
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

* 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.

7 years agoUser request: when switching to smooth tool with shift-click in
Antony Riakiotakis [Thu, 1 Aug 2013 23:07:53 +0000 (23:07 +0000)]
User request: when switching to smooth tool with shift-click in
sculpting, use the original brush size.

7 years agouse bmesh for loop macros for looping over mesh verts/edges/faces
Campbell Barton [Thu, 1 Aug 2013 18:33:35 +0000 (18:33 +0000)]
use bmesh for loop macros for looping over mesh verts/edges/faces

7 years agocode cleanup: remove unused functions
Campbell Barton [Thu, 1 Aug 2013 17:15:11 +0000 (17:15 +0000)]
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.

7 years agoFix a very irritating problem of our stroke system. On small brushes,
Antony Riakiotakis [Thu, 1 Aug 2013 17:14:20 +0000 (17:14 +0000)]
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.

7 years agoPotential fix for wrogn k3 value after solve
Sergey Sharybin [Thu, 1 Aug 2013 16:34:55 +0000 (16:34 +0000)]
Potential fix for wrogn k3 value after solve

7 years agoFix for r58798, forgot to update the presets.
Thomas Dinges [Thu, 1 Aug 2013 14:00:24 +0000 (14:00 +0000)]
Fix for r58798, forgot to update the presets.

7 years agoFix [#36265]: Smoke doesn't work if domain object has negative scale.
Miika Hamalainen [Thu, 1 Aug 2013 12:09:12 +0000 (12:09 +0000)]
Fix [#36265]: Smoke doesn't work if domain object has negative scale.

7 years agoCycles / Squared Samples:
Thomas Dinges [Wed, 31 Jul 2013 22:51:48 +0000 (22:51 +0000)]
Cycles / Squared Samples:
* After some feedback decided to remove this option from the Progressive integrator, it only makes sense for Non-Progressive where we have different values for the sample types.

7 years agoFix linking issue, we use bundled static glew so we should define static glew in...
Antony Riakiotakis [Wed, 31 Jul 2013 22:39:17 +0000 (22:39 +0000)]
Fix linking issue, we use bundled static glew so we should define static glew in ghost as well.

7 years agoCode cleanup, use bools here. Forgot to change that.
Thomas Dinges [Wed, 31 Jul 2013 21:40:52 +0000 (21:40 +0000)]
Code cleanup, use bools here. Forgot to change that.

7 years agoremove unused headers and NULL check
Campbell Barton [Wed, 31 Jul 2013 21:34:25 +0000 (21:34 +0000)]
remove unused headers and NULL check

7 years agoCycles / HSV Separator and Combine node:
Thomas Dinges [Wed, 31 Jul 2013 21:27:48 +0000 (21:27 +0000)]
Cycles / HSV Separator and Combine node:
* Added nodes to separate and combine hsv colors.

Part of my GSoC 2013 project, SVN merge of r57981.

7 years agoCycles / Vector Transform node:
Thomas Dinges [Wed, 31 Jul 2013 21:18:23 +0000 (21:18 +0000)]
Cycles / Vector Transform node:
* Add a note to convert a Vector, Point or Normal between World <=> Camera <=> Object coordinate space.


Part of my GSoC 2013 project, SVN merge of r57599, r57670, r57918, r57919, r58245 and r58775.

7 years agoCycles / Blackbody to RGB node:
Thomas Dinges [Wed, 31 Jul 2013 20:56:32 +0000 (20:56 +0000)]
Cycles / Blackbody to RGB node:
* Added a node to convert a temperature in Kelvin to an RGB color. This can be used e.g. for lights, to easily find the right color temperature.
= Some common temperatures =
Candle light: 1500 Kelvin
Sunset/Sunrise: 1850 Kelvin
Studio lamps: 3200 Kelvin
Horizon daylight: 5000 Kelvin


Thanks to Philipp Oeser (lichtwerk), who essentially contributed to this with a patch! :)

This is part of my GSoC 2013 project. SVN merge of r57424, r57487, r57507, r57525, r58253 and r58774

7 years agofix for BLI_ghash_clear from Sv. Lockal (lockal)
Campbell Barton [Wed, 31 Jul 2013 20:50:55 +0000 (20:50 +0000)]
fix for BLI_ghash_clear from Sv. Lockal (lockal)

7 years agoCycles / Ray Depth:
Thomas Dinges [Wed, 31 Jul 2013 20:30:37 +0000 (20:30 +0000)]
Cycles / Ray Depth:
* Added a Ray Depth output to the Light Path node, which gives the user access to the current bounce.
This can be used to limit the maximum ray bounce on a per shader basis. Another use case is to restrict light influence with this, to have a lamp only contribute to the direct lighting.

This is part of my GSoC 2013 project. SVN merge of r58091 and r58772 from soc-2013-dingto.

7 years agoCode cleanup: libmv C API
Joseph Mansfield [Wed, 31 Jul 2013 13:48:12 +0000 (13:48 +0000)]
Code cleanup: libmv C API

Clean up inconsistencies in the libmv C API:
- All type identifiers are libmv_TypeName
- All function identifiers libmv_functionName
- Prefer libmv_nounVerb function names (e.g. libmv_featuresDestroy)
- Match Blender code formatting rather than Google
- Spelling corrections

Code review:

7 years agoFix #36267 part 2 of 2: Fix for reroute node values in old shader node stack system...
Lukas Toenne [Wed, 31 Jul 2013 12:26:03 +0000 (12:26 +0000)]
Fix #36267 part 2 of 2: Fix for reroute node values in old shader node stack system. They were overwriting stack values from their input nodes, because the system would not detect that these sockets
actually just point to existing defined stack values. To make the link check work, set the socket->link pointer if internal node connections exist, this works for both muted and reroute nodes.

7 years agoFix #36267, part 1 of 2: fix for reroute node type updates. The reroute nodes change...
Lukas Toenne [Wed, 31 Jul 2013 12:26:01 +0000 (12:26 +0000)]
Fix #36267, part 1 of 2: fix for reroute node type updates. The reroute nodes change their socket type based on what they are connected to, to work as pass-through nodes with as little conversion as

Problem was/is that the nodes can set the 'type' property, but in order to actually change the data type they would also need to update the typeinfo pointer (and idname), which is strongly discouraged.
Solution is to just replace the input/output sockets of the reroute node with new sockets of the desired type and port all links over.

7 years agocode cleanup: remove redundant NULL checks
Campbell Barton [Wed, 31 Jul 2013 09:18:40 +0000 (09:18 +0000)]
code cleanup: remove redundant NULL checks

7 years agoadd NULL checks in eyedropper_color_sample_fl since BKE_area_find_region_type may...
Campbell Barton [Wed, 31 Jul 2013 09:17:58 +0000 (09:17 +0000)]
add NULL checks in eyedropper_color_sample_fl since BKE_area_find_region_type may not find a region.

7 years agoUse bool instead of int.
Sergey Sharybin [Wed, 31 Jul 2013 03:44:45 +0000 (03:44 +0000)]
Use bool instead of int.

7 years agoFix #36302: Multires baking to zero 0 was showing error but still was baking
Sergey Sharybin [Wed, 31 Jul 2013 03:35:45 +0000 (03:35 +0000)]
Fix #36302: Multires baking to zero 0 was showing error but still was baking

We do not support baking to level 0, disabled this completely now.

7 years agoUse malloc in cases when data is getting overwriten after allocation.
Sergey Sharybin [Tue, 30 Jul 2013 18:49:40 +0000 (18:49 +0000)]
Use malloc in cases when data is getting overwriten after allocation.

7 years agoCycles / Non-Progressive integrator:
Thomas Dinges [Tue, 30 Jul 2013 12:56:39 +0000 (12:56 +0000)]
Cycles / Non-Progressive integrator:
* Avoid check for !LABEL_TRANSPARENT in "kernel_path_non_progressive_lighting", transparency is either handled in the outer loop or in the "kernel_path_indirect" function, but not here.

7 years agofix: [#36148] Collada instance nodes are not scaled properly during import
Gaia Clary [Tue, 30 Jul 2013 12:18:24 +0000 (12:18 +0000)]
fix: [#36148] Collada instance nodes are not scaled properly during import

7 years agoapply world matrix only to armature, Bones and children get it implicit via parenting
Gaia Clary [Tue, 30 Jul 2013 11:10:04 +0000 (11:10 +0000)]
apply world matrix only to armature, Bones and children get it implicit via parenting

7 years agofunction renaming for own recently added BLI_math functions, suggested by Brecht.
Campbell Barton [Tue, 30 Jul 2013 10:58:36 +0000 (10:58 +0000)]
function renaming for own recently added BLI_math functions, suggested by Brecht.

7 years agofix for error in own recent changes to transform initialization, proportional editmod...
Campbell Barton [Tue, 30 Jul 2013 09:50:17 +0000 (09:50 +0000)]
fix for error in own recent changes to transform initialization, proportional editmode needs to skip hidden faces.

7 years agoCycles:
Thomas Dinges [Tue, 30 Jul 2013 09:26:45 +0000 (09:26 +0000)]
* Increase the maximum amount of closures per shader from 16 to 64, so more complex closure trees can be rendered.

I measured performance on CPU and GPU (Geforce 540M) and couldn't find a performance impact, but if someone encounters a noticeable impact on his system, please report.

7 years agoFix for [#36321] 'Mark Freestyle Edge' still showing with Cycles renderer
Thomas Dinges [Tue, 30 Jul 2013 09:00:31 +0000 (09:00 +0000)]
Fix for [#36321] 'Mark Freestyle Edge' still showing with Cycles renderer
* Now we hide Freestyle properties when "use_shading_nodes" is true.

7 years agoRemove superfluous iterations (caused by typo) and type casts in outliner
Sv. Lockal [Tue, 30 Jul 2013 08:45:45 +0000 (08:45 +0000)]
Remove superfluous iterations (caused by typo) and type casts in outliner

This significantly lowers the position of outliner_draw_tree_element in profiler
and partially fixes [#36260] (2,300 Objects Makes Blender Unresponsive)

7 years agoMinor change to the template that has some consequences for addons...
Lukas Toenne [Tue, 30 Jul 2013 08:30:15 +0000 (08:30 +0000)]
Minor change to the template that has some consequences for addons: use bpy.types.* base classes instead of bpy_types.*

The bpy_types classes cause issues when used in addons when loading on Blender startup (subclasses cannot be properly registered).

7 years agoCollada: renamed size_mat to scale_mat for clarity. removed obsolete variable definition
Gaia Clary [Tue, 30 Jul 2013 07:32:37 +0000 (07:32 +0000)]
Collada: renamed size_mat to scale_mat for clarity. removed obsolete variable definition

7 years agoCollada: unit converter was not initialized for ArmatureImporter
Gaia Clary [Tue, 30 Jul 2013 07:22:40 +0000 (07:22 +0000)]
Collada: unit converter was not initialized for ArmatureImporter

7 years agoMissed a couple of files for the vsync commit (r58729).
Mitchell Stokes [Mon, 29 Jul 2013 22:36:51 +0000 (22:36 +0000)]
Missed a couple of files for the vsync commit (r58729).

7 years agoBGE: Adding vsync control. Users can enable vsync, disable vsync, or use adaptive...
Mitchell Stokes [Mon, 29 Jul 2013 22:31:32 +0000 (22:31 +0000)]
BGE: Adding vsync control. Users can enable vsync, disable vsync, or use adaptive vsync via UI options in the render properties, or by using the new Python method bge.render.setVsync(). Win32 and X11 support are done via EXT_swap_control. Support for using EXT_swap_control on OS X still needs to be added to Ghost.

7 years agoBGE: Adding bge.physics as another alias for the PhysicsConstraints module.
Mitchell Stokes [Mon, 29 Jul 2013 22:20:06 +0000 (22:20 +0000)]
BGE: Adding bge.physics as another alias for the PhysicsConstraints module.

7 years agoCollada: Optimize Scale to scene. Only need to scale the root objects of a hierarchy
Gaia Clary [Mon, 29 Jul 2013 22:15:04 +0000 (22:15 +0000)]
Collada: Optimize Scale to scene. Only need to scale the root objects of a hierarchy

7 years agoCollada: Import now always rotates input to match blender's Z_UP axis
Gaia Clary [Mon, 29 Jul 2013 21:51:53 +0000 (21:51 +0000)]
Collada: Import now always rotates input to match blender's Z_UP axis

7 years agoAdded Scene scale calculator to UnitConverter for future usage (wip)
Gaia Clary [Mon, 29 Jul 2013 21:22:59 +0000 (21:22 +0000)]
Added Scene scale calculator to UnitConverter for future usage (wip)

7 years agoFix #36290: cycles generated texture coordinates were not sticking to the
Brecht Van Lommel [Mon, 29 Jul 2013 19:39:23 +0000 (19:39 +0000)]
Fix #36290: cycles generated texture coordinates were not sticking to the
surface again, got lost in an unrelated optimization.

7 years agoAdded/changed comment for clarification
Gaia Clary [Mon, 29 Jul 2013 17:27:27 +0000 (17:27 +0000)]
Added/changed comment for clarification

7 years agoFix #36235: cycles crash deactivating render layer during rendering.
Brecht Van Lommel [Mon, 29 Jul 2013 15:32:24 +0000 (15:32 +0000)]
Fix #36235: cycles crash deactivating render layer during rendering.

7 years agoFix #36264, New modulo math node not viewable in GLSL mode. Modulo math operation...
Lukas Toenne [Mon, 29 Jul 2013 11:42:23 +0000 (11:42 +0000)]
Fix #36264, New modulo math node not viewable in GLSL mode. Modulo math operation was simply missing the switch statement for gpu execution.

7 years agofix [#36280] Dynamic Topology crashes with active face
Campbell Barton [Mon, 29 Jul 2013 09:18:35 +0000 (09:18 +0000)]
fix [#36280] Dynamic Topology crashes with active face

7 years agoadd asserts to ensure face normal is up to date.
Campbell Barton [Mon, 29 Jul 2013 09:12:23 +0000 (09:12 +0000)]
add asserts to ensure face normal is up to date.

7 years agoadd api call for initializing events from the windows eventstate.
Campbell Barton [Mon, 29 Jul 2013 08:29:04 +0000 (08:29 +0000)]
add api call for initializing events from the windows eventstate.

7 years agofix for possible dounle fclose in makesrna's replace_if_different function.
Campbell Barton [Mon, 29 Jul 2013 08:01:12 +0000 (08:01 +0000)]
fix for possible dounle fclose in makesrna's replace_if_different function.

7 years agobmesh optimization (noted as todo), avoid recalculating normal every time BM_face_leg...
Campbell Barton [Mon, 29 Jul 2013 06:04:09 +0000 (06:04 +0000)]
bmesh optimization (noted as todo), avoid recalculating normal every time BM_face_legal_splits() runs,
assume normal is valid (assert when its not).

7 years agominor changes for confusing code.
Campbell Barton [Mon, 29 Jul 2013 04:45:40 +0000 (04:45 +0000)]
minor changes for confusing code.
- memset() was argument was truncated.
- outliner had redundant NULL check.
- node texture was allocating memory to make a unique name which isnt needed for a fixed size string.