8 years agoCode cleanup:
Thomas Dinges [Tue, 13 Aug 2013 08:43:31 +0000 (08:43 +0000)]
Code cleanup:
* Some typo fixes.

8 years agoBGE: Updating the bge.logic.expandPath() documentation to better reflect its current...
Mitchell Stokes [Tue, 13 Aug 2013 07:48:07 +0000 (07:48 +0000)]
BGE: Updating the bge.logic.expandPath() documentation to better reflect its current behavior.

8 years agoadd support for loading 8bit BMP images
Campbell Barton [Tue, 13 Aug 2013 07:18:07 +0000 (07:18 +0000)]
add support for loading 8bit BMP images

8 years agoFix #36451, Particle system crashes blender. The psys_render_restore function was...
Lukas Toenne [Tue, 13 Aug 2013 06:21:39 +0000 (06:21 +0000)]
Fix #36451, Particle system crashes blender. The psys_render_restore function was accessing the psys->frand random number array, but since the particle modifier is disabled this array does not get
initialized. Added a sanity check to skip disabled particle systems in BI render. (why wasn't this done before?)

8 years agochange VIEW3D_OT_camera_to_view_selected poll function so it can be called from a...
Campbell Barton [Tue, 13 Aug 2013 04:35:14 +0000 (04:35 +0000)]
change VIEW3D_OT_camera_to_view_selected poll function so it can be called from a script (without a view3d).

8 years agoBGE: Adding a GPU Latency profile category to represent the CPU time spent waiting...
Mitchell Stokes [Tue, 13 Aug 2013 03:09:58 +0000 (03:09 +0000)]
BGE: Adding a GPU Latency profile category to represent the CPU time spent waiting on the graphics card.

8 years agofix for bug in rip tool, isolated verts would remain selected after ripping.
Campbell Barton [Tue, 13 Aug 2013 01:52:36 +0000 (01:52 +0000)]
fix for bug in rip tool, isolated verts would remain selected after ripping.

8 years agofix own regression, rip tool wasn't handling selection.
Campbell Barton [Tue, 13 Aug 2013 01:00:07 +0000 (01:00 +0000)]
fix own regression, rip tool wasn't handling selection.

8 years agoswitch arg order for BM_elem_select_copy(), would like to make this constant for...
Campbell Barton [Tue, 13 Aug 2013 00:35:23 +0000 (00:35 +0000)]
switch arg order for BM_elem_select_copy(), would like to make this constant for all bmesh functions eventually.

8 years agobmesh: simplify mode check for setting the edge selection
Campbell Barton [Tue, 13 Aug 2013 00:17:39 +0000 (00:17 +0000)]
bmesh: simplify mode check for setting the edge selection

8 years agobmesh_vert_separate: remove unused return value
Campbell Barton [Mon, 12 Aug 2013 23:49:56 +0000 (23:49 +0000)]
bmesh_vert_separate: remove unused return value

8 years agobmesh_edge_separate: avoid counting radial loops when splitting edges, we only need...
Campbell Barton [Mon, 12 Aug 2013 22:36:46 +0000 (22:36 +0000)]
bmesh_edge_separate: avoid counting radial loops when splitting edges, we only need to check if the edge is boundary or not. will speedup edgesplit modifier a little.

8 years agoFix [#36439] Switching windows on Win7 x64 under certain outliner conditions will...
Sv. Lockal [Mon, 12 Aug 2013 17:05:02 +0000 (17:05 +0000)]
Fix [#36439] Switching windows on Win7 x64 under certain outliner conditions will cause crash

8 years agoFollowup for r58992, fixing user decrement error
Sergey Sharybin [Mon, 12 Aug 2013 13:52:13 +0000 (13:52 +0000)]
Followup for r58992, fixing user decrement error

Some places like proxy rebuild didn't increent
custom shape user counter which lead to user
decrement errors later when freeing pose channels.

Try to keep custom object counter relevent, but
some corner cases might still be missing.

8 years agoGPL V3 license, which will be valid for the binary releases.
Ton Roosendaal [Mon, 12 Aug 2013 12:31:51 +0000 (12:31 +0000)]
GPL V3 license, which will be valid for the binary releases.
(Because Blender links with the Apache2 license).

Cleanup of this directory will happen before official release.

8 years agoAdd jemalloc license to release/text
Sergey Sharybin [Mon, 12 Aug 2013 12:17:54 +0000 (12:17 +0000)]
Add jemalloc license to release/text

Official linux builds are linking against jemalloc,
and in the own branch i'm using some of it's code.

License files location could be changed a bit later
(i.e. make it so all the license files are in the
single folder, not in the root of the blender distro).

8 years agoFix #36420: ends of curves - caps & twist not good
Sergey Sharybin [Mon, 12 Aug 2013 09:00:48 +0000 (09:00 +0000)]
Fix #36420: ends of curves - caps & twist not good

Forgot to calculate directions of first/last points
for NURBS and POLY splines.

8 years agoimage_load() utility function's 'recursive' option wasn't functional since 2.4x
Campbell Barton [Mon, 12 Aug 2013 07:48:31 +0000 (07:48 +0000)]
image_load() utility function's 'recursive' option wasn't functional since 2.4x

8 years agoFix #36408: Setting `` changes saved alpha
Sergey Sharybin [Mon, 12 Aug 2013 07:47:44 +0000 (07:47 +0000)]
Fix #36408: Setting `` changes saved alpha

Issue was caused by reload caused by input colorspace change.

For generated images generated alpha flags weren't saved to
DNA, which lead to fallback from 32 bit depth to 24 when
doing any kind reload of generated image.

The same alpha loss happens when you save .blend file with
generated images.

Now added generated depth to DNA, so reload image and .blend
file wouldn't loss alpha.

8 years agobpy.path.reduce_dirs() - new utility function to de-duplicate and remove nested paths...
Campbell Barton [Mon, 12 Aug 2013 07:44:38 +0000 (07:44 +0000)]
bpy.path.reduce_dirs() - new utility function to de-duplicate and remove nested paths before doing a recursive search.

8 years agoFix #36437 Cycles no longer rendering Emitter object (Particle Systems). The change...
Lukas Toenne [Mon, 12 Aug 2013 06:53:17 +0000 (06:53 +0000)]
Fix #36437 Cycles no longer rendering Emitter object (Particle Systems). The change r58999 was ignoring the "show_emitter" setting by particles (the result would be the same as long as hair was not
used). If particle emitters are forced to show all other of the usual duplicator hiding should be disabled.

8 years agochange to object-smooth poll function, no need to check for active object, just check...
Campbell Barton [Mon, 12 Aug 2013 06:10:29 +0000 (06:10 +0000)]
change to object-smooth poll function, no need to check for active object, just check we're not in editmode.

8 years agoCode cleanup / Cycles:
Thomas Dinges [Sun, 11 Aug 2013 16:55:24 +0000 (16:55 +0000)]
Code cleanup / Cycles:
* Remove unused "PathThroughput" variable.
* Don't compile unused voronoi code, we only use Distance Squared atm.
* Various typo and comment fixes.

8 years agoFix RNA parameter passing issue with dynamic arrays, was computing the wrong
Brecht Van Lommel [Sun, 11 Aug 2013 15:49:27 +0000 (15:49 +0000)]
Fix RNA parameter passing issue with dynamic arrays, was computing the wrong
size in some cases.

8 years agoCode cleanup / Cycles:
Thomas Dinges [Sun, 11 Aug 2013 15:27:04 +0000 (15:27 +0000)]
Code cleanup / Cycles:
* Rename "curve_kernel_data" to just "curve", to avoid redundant naming.

8 years agodisplay an error with python driver expressions when script execution is disabled.
Campbell Barton [Sun, 11 Aug 2013 08:29:56 +0000 (08:29 +0000)]
display an error with python driver expressions when script execution is disabled.

8 years agouse 'greater/less then or equal to' operators rather then adding 1.
Campbell Barton [Sun, 11 Aug 2013 05:40:35 +0000 (05:40 +0000)]
use 'greater/less then or equal to' operators rather then adding 1.

8 years agoremove unused auto-key struct-member from uiAfterFunc, add compiler defines to cppche...
Campbell Barton [Sat, 10 Aug 2013 23:27:42 +0000 (23:27 +0000)]
remove unused auto-key struct-member from uiAfterFunc, add compiler defines to cppcheck utility script.

8 years agoedge-split now leaves split edges selected
Campbell Barton [Sat, 10 Aug 2013 23:22:35 +0000 (23:22 +0000)]
edge-split now leaves split edges selected

8 years agoBGE: Fixing the memory leaks reported when the BlenderPlayer exits.
Mitchell Stokes [Sat, 10 Aug 2013 21:17:46 +0000 (21:17 +0000)]
BGE: Fixing the memory leaks reported when the BlenderPlayer exits.

They were caused by not having a free_windowmanager_cb set and by not having registered SpaceTypes, which meant data allocated for thosse SpaceTypes could not be freed. These were solved by defining a free_windowmanager_cb for the player that just frees wmWindows, and by making sure we only allocate memory for registered SpaceTypes.

8 years agoAdd better UI for "Add Torus" function
Sv. Lockal [Sat, 10 Aug 2013 15:37:24 +0000 (15:37 +0000)]
Add better UI for "Add Torus" function

The previous one did nothing in many cases and was very unintuitive:

8 years agoLinux install_deps: update OpenCOLLADA to 828b60384552b83e55d2af7055f07d2c40b4d3f4...
Bastien Montagne [Sat, 10 Aug 2013 11:06:46 +0000 (11:06 +0000)]
Linux install_deps: update OpenCOLLADA to 828b60384552b83e55d2af7055f07d2c40b4d3f4 repo UID.

8 years agoAs requested by Mitchell Stokes, reverting r58837 as it is causing some problems...
Daniel Stokes [Sat, 10 Aug 2013 01:29:23 +0000 (01:29 +0000)]
As requested by Mitchell Stokes, reverting r58837 as it is causing some problems with the embedded game engine's python execution.

8 years agoCode cleanup / Cycles:
Thomas Dinges [Sat, 10 Aug 2013 00:52:57 +0000 (00:52 +0000)]
Code cleanup / Cycles:
* Remove code for the unused Wave texture variations.

We have quite some unused code in the texture area, I guess it doesn't harm to clean a bit up here.
We can always get the code back from SVN if we need something.

8 years agoCycles:
Thomas Dinges [Fri, 9 Aug 2013 20:03:49 +0000 (20:03 +0000)]
* GPU kernel can now be compiled without __NON_PROGRESSIVE__ again, was broken after my last commit. Also add a check for have_error(), in case the GPU kernel comes without Non-Progressive, to avoid a crash.

* Don't compile progressive kernel twice on CPU, if __NON_PROGRESSIVE__ would be disabled there.

8 years agoFix cycles not rendering with 1x1 resolution anymore, not so common for users
Brecht Van Lommel [Fri, 9 Aug 2013 19:55:46 +0000 (19:55 +0000)]
Fix cycles not rendering with 1x1 resolution anymore, not so common for users
but nice for debugging.

8 years agoFix cycles passes UI panel to line up better.
Brecht Van Lommel [Fri, 9 Aug 2013 19:55:45 +0000 (19:55 +0000)]
Fix cycles passes UI panel to line up better.

8 years agoOpenGL VBO's: free VBO pool before redraw, otherwise this just holds onto memory
Brecht Van Lommel [Fri, 9 Aug 2013 19:55:43 +0000 (19:55 +0000)]
OpenGL VBO's: free VBO pool before redraw, otherwise this just holds onto memory
after objects are deleted until another big object is added. There's no good reason
to do this, or to think that our pool is somehow much faster than using the OpenGL
API to allocate and free buffers.

8 years agoCycles / Non-Progressive integrator:
Thomas Dinges [Fri, 9 Aug 2013 18:47:25 +0000 (18:47 +0000)]
Cycles / Non-Progressive integrator:
* Non-Progressive integrator is now available on the GPU (CUDA, sm_20 and above).

Implementation details:
* kernel_path_trace() has been split up into two functions:
kernel_path_trace_non_progressive() and kernel_path_trace_progressive().

* We compile two CUDA kernel entry functions (in for the two integrators, they are still inside one .cubin file but due to the kernel separation there should be no performance problem. I tested with the BMW file on my Geforce 540M and the render times were the same for 100 samples (1.57 min in my case).

This is part of my GSoC project, SVN merge of r59032 + manual merge of UI changes for this from my branch.

8 years agoFix #36146, Cycles SSS Shader Node - Scale Value Input Box - to sensitive. Changed...
Lukas Toenne [Fri, 9 Aug 2013 11:41:01 +0000 (11:41 +0000)]
Fix #36146, Cycles SSS Shader Node - Scale Value Input Box - to sensitive. Changed the ui limit from 1,000,000 to 1,000. Not sure if such huge values are needed in some cases, but they can always be
entered explicitly, bypassing the ui limit.

NOTE: this only applies to newly added nodes. For legacy reasons the limit values are stored directly in each socket, so changing them for existing nodes would require a do_versions, seems unnecessary
for such a minor change.

8 years agoFix #36417: vertex weight mix modifier crash with texture mask and subsurf modifier
Brecht Van Lommel [Thu, 8 Aug 2013 20:35:19 +0000 (20:35 +0000)]
Fix #36417: vertex weight mix modifier crash with texture mask and subsurf modifier
preceding it, was writing past end of array.

8 years agoFix #36298 and #36359: timeline no longer did redraw during animation render.
Brecht Van Lommel [Thu, 8 Aug 2013 19:04:28 +0000 (19:04 +0000)]
Fix #36298 and #36359: timeline no longer did redraw during animation render.

This got broken in 58217, but before that it only worked by accident because
of a missing break statement in a switch.

8 years agoFix #36274: empty particle texture slots should not have any influence, same
Brecht Van Lommel [Thu, 8 Aug 2013 18:12:07 +0000 (18:12 +0000)]
Fix #36274: empty particle texture slots should not have any influence, same
as for materials, world, lamps, etc.

8 years agoFix incorrect display of constraint names on retina / high DPI.
Brecht Van Lommel [Thu, 8 Aug 2013 17:36:19 +0000 (17:36 +0000)]
Fix incorrect display of constraint names on retina / high DPI.

8 years agoFix #36317: keyframing metaball elements did not work yet, now you can keyframe
Brecht Van Lommel [Thu, 8 Aug 2013 17:22:49 +0000 (17:22 +0000)]
Fix #36317: keyframing metaball elements did not work yet, now you can keyframe
properties like stiffness.

8 years agoFix #36243: one screen should never be used by multiple windows, but this could
Brecht Van Lommel [Thu, 8 Aug 2013 17:05:09 +0000 (17:05 +0000)]
Fix #36243: one screen should never be used by multiple windows, but this could
happen when a screen was maximized to a single editor, now that case is disabled

8 years agoFix #36394: rendering a point density texture with a hair particle system did
Brecht Van Lommel [Thu, 8 Aug 2013 15:36:03 +0000 (15:36 +0000)]
Fix #36394: rendering a point density texture with a hair particle system did
not work correct, the positions would change over time and child particles did
not render.

8 years agoLinking Brushes did not link the mask texture properly
Antony Riakiotakis [Thu, 8 Aug 2013 09:45:59 +0000 (09:45 +0000)]
Linking Brushes did not link the mask texture properly

8 years agopass compiler defines such as __FLT_MIN__ to smatch and sparse (they fail without...
Campbell Barton [Thu, 8 Aug 2013 01:53:02 +0000 (01:53 +0000)]
pass compiler defines such as __FLT_MIN__ to smatch and sparse (they fail without them).

8 years agodisable cycles when building without python, also use const for function args in...
Campbell Barton [Wed, 7 Aug 2013 22:40:03 +0000 (22:40 +0000)]
disable cycles when building without python, also use const for function args in more places.

8 years agoFix for a formatting error in the docstring of SVertex.viewvertex().
Tamito Kajiyama [Wed, 7 Aug 2013 21:49:11 +0000 (21:49 +0000)]
Fix for a formatting error in the docstring of SVertex.viewvertex().

8 years agoFix for docstrings of CurvePoint.first_svertex() and CurvePoint.second_svertex().
Tamito Kajiyama [Wed, 7 Aug 2013 21:40:59 +0000 (21:40 +0000)]
Fix for docstrings of CurvePoint.first_svertex() and CurvePoint.second_svertex().

8 years agoFix #36383: add object to group check for dependency cycles did not work correctly
Brecht Van Lommel [Wed, 7 Aug 2013 20:16:36 +0000 (20:16 +0000)]
Fix #36383: add object to group check for dependency cycles did not work correctly
when the group contained two objects duplicating the same group. Also added the
dependency check to the "add to active group" operator now for consistency.

8 years agoFix crashes that could still happen opening files with the outliner bug that existed
Brecht Van Lommel [Wed, 7 Aug 2013 19:29:15 +0000 (19:29 +0000)]
Fix crashes that could still happen opening files with the outliner bug that existed
between revision 58855 and 58959. Now it ensures the memory is not freed before reading.

8 years agoFix #36355: cycles render of objects with both duplis and hair would not render
Brecht Van Lommel [Wed, 7 Aug 2013 19:02:15 +0000 (19:02 +0000)]
Fix #36355: cycles render of objects with both duplis and hair would not render
the hair in some cases.

8 years agoFix #36007: ends of curves do not fit
Sergey Sharybin [Wed, 7 Aug 2013 18:22:15 +0000 (18:22 +0000)]
Fix #36007: ends of curves do not fit

Made first/last tessellated curve have proper
direction and tilt. Before direction/tilt
from second/previous to last tessellated curve

Thanks Brecht for review and tests!

8 years agoAnother preview fix for SplitViewer node
Sv. Lockal [Wed, 7 Aug 2013 18:01:25 +0000 (18:01 +0000)]
Another preview fix for SplitViewer node

Use the same logic as in ViewerNode to update preview when backdrop is disabled.

8 years agoFix #36373: maya and max key configurations for mesh loop select did not work correct
Brecht Van Lommel [Wed, 7 Aug 2013 15:51:57 +0000 (15:51 +0000)]
Fix #36373: maya and max key configurations for mesh loop select did not work correct
when doing an extend loop select, then doing a regular loop select, it would still

8 years agoFix #36391: removing an armature with a custom bone shape object would not
Brecht Van Lommel [Wed, 7 Aug 2013 15:23:09 +0000 (15:23 +0000)]
Fix #36391: removing an armature with a custom bone shape object would not
decrement the object user count when removing the armature. This could cause
the object to stick when it shouldn't, in particular when that object is part
of a group.

8 years agoFix #36266, First undo in compositor decrements usercounter without a reason. The...
Lukas Toenne [Wed, 7 Aug 2013 13:14:50 +0000 (13:14 +0000)]
Fix #36266, First undo in compositor decrements usercounter without a reason. The handling of scene backpointers in render layer/composite nodes changed slightly recently, which caused a double increment
of the scene user count. The node->id pointer for these nodes is now initialized in the respective init callbacks already. The explicit assignment and increment in the ED_node_composit_default is not
necessary and just adds an increment without checking previous values and decrementing them properly.

Note that the current system still leaves the scene with "fake" users (rlayer + composite nodes) which are actually part of the scene data itself. But that's design issue with the "local" node tree data
and doesn't do any real harm.

8 years agoremove assert in check_for_dupid() function for rare but valid renaming situation.
Campbell Barton [Wed, 7 Aug 2013 08:20:37 +0000 (08:20 +0000)]
remove assert in check_for_dupid() function for rare but valid renaming situation.

8 years agoAdding a fov attribute to KX_Camera. This attribute converts the field of view value...
Daniel Stokes [Wed, 7 Aug 2013 05:24:47 +0000 (05:24 +0000)]
Adding a fov attribute to KX_Camera. This attribute converts the field of view value and uses it to set lens.

8 years agoquiet shadow warnings and remove redundant NULL check
Campbell Barton [Wed, 7 Aug 2013 04:31:05 +0000 (04:31 +0000)]
quiet shadow warnings and remove redundant NULL check

8 years agocode cleanup: more confusion with 0/NULL/false
Campbell Barton [Wed, 7 Aug 2013 03:55:21 +0000 (03:55 +0000)]
code cleanup: more confusion with 0/NULL/false

8 years agocode cleanup: some structs were declaring data when only typedef's were intended...
Campbell Barton [Wed, 7 Aug 2013 03:44:05 +0000 (03:44 +0000)]
code cleanup: some structs were declaring data when only typedef's were intended, make local vars and functions static.

8 years agocode cleanup: more zero as NULL pointers.
Campbell Barton [Wed, 7 Aug 2013 03:36:05 +0000 (03:36 +0000)]
code cleanup: more zero as NULL pointers.

8 years agocode cleanup: use NULL rather then zero for pointers
Campbell Barton [Wed, 7 Aug 2013 03:30:23 +0000 (03:30 +0000)]
code cleanup: use NULL rather then zero for pointers

8 years ago* Make MSVC happy.
Thomas Dinges [Tue, 6 Aug 2013 23:47:47 +0000 (23:47 +0000)]
* Make MSVC happy.

8 years agominor edits to float/double conversion suggested by DingTo
Campbell Barton [Tue, 6 Aug 2013 23:34:47 +0000 (23:34 +0000)]
minor edits to float/double conversion suggested by DingTo

8 years agoBGE Fix [#33215] KX_MeshProxy.transformUV() argument ValueError
Daniel Stokes [Tue, 6 Aug 2013 21:52:05 +0000 (21:52 +0000)]
BGE Fix [#33215] KX_MeshProxy.transformUV() argument ValueError

8 years agofix own regression in edgeloop delete [#36389] loop detete crashes
Campbell Barton [Tue, 6 Aug 2013 17:45:58 +0000 (17:45 +0000)]
fix own regression in edgeloop delete [#36389] loop detete crashes

8 years agoUsual edits/fixes to new UI messages...
Bastien Montagne [Tue, 6 Aug 2013 14:55:00 +0000 (14:55 +0000)]
Usual edits/fixes to new UI messages...

8 years agoFix for an link error in makesrna with SCons. Reported by Thomas Dinges, thanks!
Tamito Kajiyama [Tue, 6 Aug 2013 11:21:47 +0000 (11:21 +0000)]
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.

8 years agocode cleanup: remove lock from ViewerOperation class
Campbell Barton [Tue, 6 Aug 2013 09:27:20 +0000 (09:27 +0000)]
code cleanup: remove lock from ViewerOperation class

8 years agoview3d: gridfloor subdivisions wasn't respected for perspective mode.
Campbell Barton [Tue, 6 Aug 2013 07:10:18 +0000 (07:10 +0000)]
view3d: gridfloor subdivisions wasn't respected for perspective mode.

8 years agoquiet double-promotion warnings, change octree.cpp to use a float (vector accumulated...
Campbell Barton [Tue, 6 Aug 2013 06:38:52 +0000 (06:38 +0000)]
quiet double-promotion warnings, change octree.cpp to use a float (vector accumulated into a float anyway)

8 years agocycles builds with -Wdouble-promotion again.
Campbell Barton [Tue, 6 Aug 2013 06:36:34 +0000 (06:36 +0000)]
cycles builds with -Wdouble-promotion again.

8 years agoFix crash loading .blend files that have multiple outliners in a screen, saved
Brecht Van Lommel [Tue, 6 Aug 2013 05:35:54 +0000 (05:35 +0000)]
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.

8 years agoselect faces after dissolving
Campbell Barton [Tue, 6 Aug 2013 05:05:31 +0000 (05:05 +0000)]
select faces after dissolving

8 years agoAdd key shortcut for context sensitive dissolve, Ctrl+X / Ctrl+Delete (as with...
Campbell Barton [Tue, 6 Aug 2013 05:01:11 +0000 (05:01 +0000)]
Add key shortcut for context sensitive dissolve, Ctrl+X  /  Ctrl+Delete  (as with node editor)

8 years agofix for using uninitialized boolean vars for mask select more/less
Campbell Barton [Tue, 6 Aug 2013 03:45:11 +0000 (03:45 +0000)]
fix for using uninitialized boolean vars for mask select more/less

8 years agocode clenup: remove benchmarking left in by accident and GPU print, also some minor...
Campbell Barton [Tue, 6 Aug 2013 02:47:47 +0000 (02:47 +0000)]
code clenup: remove benchmarking left in by accident and GPU print, also some minor style edits

8 years agoAdd assert to mul_v3_m3v3 and mul_v2_m3v3,
Sergey Sharybin [Tue, 6 Aug 2013 02:37:02 +0000 (02:37 +0000)]
Add assert to mul_v3_m3v3 and mul_v2_m3v3,
So they're not likely to be called with bad arguments.

8 years agoFrame reporting to console was wrong when not using Render Layers in compo
Sergey Sharybin [Tue, 6 Aug 2013 02:34:50 +0000 (02:34 +0000)]
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.

8 years agofix [#36363] ray_cast face index with n_gons
Campbell Barton [Tue, 6 Aug 2013 02:16:29 +0000 (02:16 +0000)]
fix [#36363] ray_cast face index with n_gons

8 years agoBGE: Making sure the BlenderPlayer calls Py_Finalize().
Mitchell Stokes [Tue, 6 Aug 2013 02:05:32 +0000 (02:05 +0000)]
BGE: Making sure the BlenderPlayer calls Py_Finalize().

8 years agoreplace mul_serie_m4 with mul_m4_m4m4 when only 3 args are given
Campbell Barton [Tue, 6 Aug 2013 01:45:29 +0000 (01:45 +0000)]
replace mul_serie_m4 with mul_m4_m4m4 when only 3 args are given

8 years agouse gcc malloc attribute for low level allocation functions, prevents gcc from checki...
Campbell Barton [Mon, 5 Aug 2013 20:57:13 +0000 (20:57 +0000)]
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.

8 years agoSplitViewer node:
Sv. Lockal [Mon, 5 Aug 2013 19:16:52 +0000 (19:16 +0000)]
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.

8 years agoAVI JPEG: remove the restriction to write only sizes that are multiples of 16.
Brecht Van Lommel [Mon, 5 Aug 2013 18:02:21 +0000 (18:02 +0000)]
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.

8 years agoFix #36380: cycles render error with sun lamp that has object scale 0,0,0.
Brecht Van Lommel [Mon, 5 Aug 2013 14:22:07 +0000 (14:22 +0000)]
Fix #36380: cycles render error with sun lamp that has object scale 0,0,0.

8 years agoCycles OSL: image texture lookup optimization, acquire the per thread handle
Brecht Van Lommel [Mon, 5 Aug 2013 12:49:15 +0000 (12:49 +0000)]
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.

8 years agoFix build warnings with clang and UNUSED_RESULT_ATTR (attribute declaration must...
Brecht Van Lommel [Mon, 5 Aug 2013 12:49:13 +0000 (12:49 +0000)]
Fix build warnings with clang and UNUSED_RESULT_ATTR (attribute declaration must precede definition).

8 years agoFix wrong cycles cmake + msvc build flags with relwithdebinfo and minsizerel.
Brecht Van Lommel [Mon, 5 Aug 2013 12:02:43 +0000 (12:02 +0000)]
Fix wrong cycles cmake + msvc build flags with relwithdebinfo and minsizerel.
Patch by Karsten Schwenk.

8 years agofix for divide by zero when border render size causes zero pixel width
Campbell Barton [Mon, 5 Aug 2013 06:08:58 +0000 (06:08 +0000)]
fix for divide by zero when border render size causes zero pixel width

8 years agofix for blender-internal viewport render looking fuzzy, don't filter the image
Campbell Barton [Mon, 5 Aug 2013 05:13:09 +0000 (05:13 +0000)]
fix for blender-internal viewport render looking fuzzy, don't filter the image

8 years agoborder render with cycles had 1 pixel offset on the top-right edge of the image,...
Campbell Barton [Mon, 5 Aug 2013 04:52:27 +0000 (04:52 +0000)]
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

8 years agominor glitch with border drawing, use glRecti rather then glRectf, so rounding matche...
Campbell Barton [Mon, 5 Aug 2013 04:35:28 +0000 (04:35 +0000)]
minor glitch with border drawing, use glRecti rather then glRectf, so rounding matches the border render

8 years agouse api function for rect intersection
Campbell Barton [Mon, 5 Aug 2013 04:19:34 +0000 (04:19 +0000)]
use api function for rect intersection

8 years agoCode cleanup / Cycles:
Thomas Dinges [Mon, 5 Aug 2013 01:24:41 +0000 (01:24 +0000)]
Code cleanup / Cycles:
* Various string and comment fixes.