blender-staging.git
5 years agoFix T39387: Knife makes duplicate verts with subsurf
Campbell Barton [Wed, 13 Aug 2014 05:04:48 +0000 (15:04 +1000)]
Fix T39387: Knife makes duplicate verts with subsurf

5 years agoMath Lib: rename barycentric_transform -> transform_point_by_tri_v3
Campbell Barton [Wed, 13 Aug 2014 04:55:45 +0000 (14:55 +1000)]
Math Lib: rename barycentric_transform -> transform_point_by_tri_v3

also add transform_point_by_seg_v3

5 years agoMath Lib: name signed versions of dist_to_plane_v3 explicitly
Campbell Barton [Wed, 13 Aug 2014 04:34:58 +0000 (14:34 +1000)]
Math Lib: name signed versions of dist_to_plane_v3 explicitly

also add unsigned versions

5 years agoKnife tool: avoid copying vectors
Campbell Barton [Wed, 13 Aug 2014 03:56:53 +0000 (13:56 +1000)]
Knife tool: avoid copying vectors

5 years agoFix possible uninitialized var use
Campbell Barton [Wed, 13 Aug 2014 00:38:08 +0000 (10:38 +1000)]
Fix possible uninitialized var use

5 years agoSpelling
Campbell Barton [Tue, 12 Aug 2014 23:33:46 +0000 (09:33 +1000)]
Spelling

5 years agoSpelling
Campbell Barton [Tue, 12 Aug 2014 22:38:16 +0000 (08:38 +1000)]
Spelling

5 years agoRNA: use static declarations
Campbell Barton [Tue, 12 Aug 2014 22:37:41 +0000 (08:37 +1000)]
RNA: use static declarations

5 years agoCompare squared distances for tracking selection
Campbell Barton [Tue, 12 Aug 2014 22:27:50 +0000 (08:27 +1000)]
Compare squared distances for tracking selection

5 years agoKnife tool: cleanup threshold use, avoid sqrt
Campbell Barton [Tue, 12 Aug 2014 22:08:18 +0000 (08:08 +1000)]
Knife tool: cleanup threshold use, avoid sqrt

5 years agoFix T41164: Knife creates duplicate verts
Campbell Barton [Tue, 12 Aug 2014 22:01:37 +0000 (08:01 +1000)]
Fix T41164: Knife creates duplicate verts

5 years agoAuto-update of themes (missing properties in XML files).
Bastien Montagne [Tue, 12 Aug 2014 20:23:21 +0000 (22:23 +0200)]
Auto-update of themes (missing properties in XML files).

5 years agoFix T40566: Light instances disappears in rendered viewport (Blender Internal)
Sergey Sharybin [Tue, 12 Aug 2014 19:48:15 +0000 (01:48 +0600)]
Fix T40566: Light instances disappears in rendered viewport (Blender Internal)

This is just another issue caused by convertblender overwriting the object
matrix at the time of creating render object. What's even worse here is that
original matrix is not stored for the lamps, only lamp_matrix*view_matrix is
stored.

For sure we can combine lar->co and lar->mat back to mat4, multiply by the
inverse view matrix and get object matrix, but this is not suitable for the
viewport render because every viewport rotation will accumulate the error.

For now let's store worldspace lamp matrix in the LampRen structure and use
it when rotating the scene.

5 years agoFix T41060: Wrong texture 'Object' mapping in 3DView Rendered mode with Blender Internal
Sergey Sharybin [Tue, 12 Aug 2014 18:32:04 +0000 (00:32 +0600)]
Fix T41060: Wrong texture 'Object' mapping in 3DView Rendered mode with Blender Internal

5 years agoFix T41415: Lasso keymap not working in UV editor.
Bastien Montagne [Tue, 12 Aug 2014 18:12:01 +0000 (20:12 +0200)]
Fix T41415: Lasso keymap not working in UV editor.

Extend option was not implemented for UV lasso select...

5 years agoFix part of T41406
Antony Riakiotakis [Tue, 12 Aug 2014 17:45:57 +0000 (19:45 +0200)]
Fix part of T41406

Attempt to make soften brush faster by allowing non-symmetric kernels.
Projective painting supports those naturally but for 2D painting there's
a small hack to avoid shifting of the texture. Not totally correct but
it works for now.

5 years agoFix T41409: Copy Custom Property function does nothing with pose bones.
Bastien Montagne [Tue, 12 Aug 2014 15:31:26 +0000 (17:31 +0200)]
Fix T41409: Copy Custom Property function does nothing with pose bones.

Copying custom IDprops actually never worked, afaik, since previous code was copying 'from'
prop onto itself, in this case!

5 years agoChange previous commit that uses transparency by default.
Antony Riakiotakis [Tue, 12 Aug 2014 14:17:07 +0000 (16:17 +0200)]
Change previous commit that uses transparency by default.

Sampling still samples the texture color in transparent areas. This is
not so bad but users may get confused when clicking on a white spot and
picking black instead of the mesh color.

Krita also has this uncertainty when picking in transparent areas but we
do not interpolate with an explicit "transparent" looking texture during
viewport drawing (maybe we should), so it's not so apparent what happens
here.

5 years agoCleanup.
Bastien Montagne [Tue, 12 Aug 2014 14:03:17 +0000 (16:03 +0200)]
Cleanup.

5 years agoFix T41411: Undo crashing with background images set.
Bastien Montagne [Tue, 12 Aug 2014 14:02:44 +0000 (16:02 +0200)]
Fix T41411: Undo crashing with background images set.

Since 3DViews use IDs like images or clips, we can't skip anymore `lib_link_screen()`
when reading from mem for undo/redo stuff. Else, freeing (unused) screen in `BKE_read_file_from_memfile()`
will lead to using data already freed (since pointers have not been updated when reading that undo step).

5 years agoSupport table erasor in projective painting as well.
Antony Riakiotakis [Tue, 12 Aug 2014 12:20:06 +0000 (14:20 +0200)]
Support table erasor in projective painting as well.

5 years agoFix T41414, T41386.
Antony Riakiotakis [Tue, 12 Aug 2014 11:49:27 +0000 (13:49 +0200)]
Fix T41414, T41386.

There were a few issues to fix here:

* We did not really unpremultiply float image dabs prior to sending them
to the GPU. That made float and byte image result different in texture
painting and undoing could change the result.
* To make textures nicely composited over the mesh, I used decal mode in
OpenGL texture environment for the texture unit. This uses the texture's
alpha channel with a nice over operator.
* Texture creation used to override the alpha setting due to the display
restrictions. Not so anymore, people can now create transparent byte
images.

Also, made alpha zero default for new textures now, since it has such a
nice effect here.

5 years agoStupid MSVC replaces tabs to spaces spontaneously :S
Sergey Sharybin [Tue, 12 Aug 2014 10:51:37 +0000 (16:51 +0600)]
Stupid MSVC replaces tabs to spaces spontaneously :S

5 years agoConsole detection now works reliably when starting blender-app directly
Sergey Sharybin [Tue, 12 Aug 2014 10:40:23 +0000 (16:40 +0600)]
Console detection now works reliably when starting blender-app directly

5 years agoFix T41349: Muting texture nodes can cause crashes.
Lukas Tönne [Tue, 12 Aug 2014 10:41:26 +0000 (12:41 +0200)]
Fix T41349: Muting texture nodes can cause crashes.

Problem is that setup of stack indices which refer to the same stack
entry can lead to cyclic TexDelegate node pointers, causing an infinite
loop.

Fixing this would take too much time and require recoding large parts of
the texnodes system, which is earmarked for scrapping anyway ... So for
now just disabled muting in texnodes to avoid crashes.

5 years agoScons / Buildbot: Remove code for Visual Studio 2008.
Thomas Dinges [Tue, 12 Aug 2014 10:32:39 +0000 (12:32 +0200)]
Scons / Buildbot: Remove code for Visual Studio 2008.

Probably the vc2013 builder can become a more generic name now, but I will double check this with Martijn.

5 years agoCleanup: Remove Visual Studio 2012 code from builder.
Thomas Dinges [Tue, 12 Aug 2014 10:16:22 +0000 (12:16 +0200)]
Cleanup: Remove Visual Studio 2012 code from builder.

5 years agoFix undo in texture painting not refreshing float images in viewport if
Antony Riakiotakis [Tue, 12 Aug 2014 10:03:15 +0000 (12:03 +0200)]
Fix undo in texture painting not refreshing float images in viewport if
16 bit float textures was off

5 years agoFix T41408: Diffuse and specular passes were incorrect with combined/color passes...
Sergey Sharybin [Tue, 12 Aug 2014 07:33:23 +0000 (13:33 +0600)]
Fix T41408: Diffuse and specular passes were incorrect with combined/color passes disabled

5 years agoCleanup: magic numbers
Campbell Barton [Tue, 12 Aug 2014 05:58:53 +0000 (15:58 +1000)]
Cleanup: magic numbers

5 years agoRewritten Array Modifier D443
Campbell Barton [Tue, 12 Aug 2014 03:52:17 +0000 (13:52 +1000)]
Rewritten Array Modifier D443

Patch by PatB with own edits

- replace BMesh with CDDM functions.
- faster remove-vertex merging.
- extend CDDM_merge_verts to be more flexible.

5 years agoCleanup: unused var
Campbell Barton [Tue, 12 Aug 2014 03:33:39 +0000 (13:33 +1000)]
Cleanup: unused var

5 years agoGHash: add flag get/set for gset
Campbell Barton [Tue, 12 Aug 2014 03:26:29 +0000 (13:26 +1000)]
GHash: add flag get/set for gset

5 years agoFreestyle: Removed the stored bContext from the Controller class.
Tamito Kajiyama [Fri, 1 Aug 2014 01:18:25 +0000 (10:18 +0900)]
Freestyle: Removed the stored bContext from the Controller class.

The stored context object was used for creation of shade nodes.  A closer look at the
node system showed that the context is not actually used when shader nodes are
added to a shader node tree.  Relying on this fact, now a NULL pointer is passed to
nodeAddStaticNode() instead of the stored bContext pointer.

5 years agoAdded support for Feestyle edge/face marks in the 3D view window in Cycles.
Tamito Kajiyama [Tue, 29 Jul 2014 05:36:56 +0000 (14:36 +0900)]
Added support for Feestyle edge/face marks in the 3D view window in Cycles.

5 years agoFix for wrong idname of the "Create Freestyle Stroke Material" operator.
Tamito Kajiyama [Tue, 29 Jul 2014 05:36:11 +0000 (14:36 +0900)]
Fix for wrong idname of the "Create Freestyle Stroke Material" operator.

5 years agoFreestyle: code cleanup.
Tamito Kajiyama [Mon, 11 Aug 2014 08:13:38 +0000 (17:13 +0900)]
Freestyle: code cleanup.

Marked a function argument with UNUSED() and removed an unused local variable.

Patch provided by Sergey Sharybin.

5 years agoFreestyle: removed dead code in BlenderStrokeRenderer.
Tamito Kajiyama [Mon, 11 Aug 2014 07:46:09 +0000 (16:46 +0900)]
Freestyle: removed dead code in BlenderStrokeRenderer.

5 years agoFreestyle: Fix for git merge glitches.
Tamito Kajiyama [Mon, 28 Jul 2014 03:25:26 +0000 (12:25 +0900)]
Freestyle: Fix for git merge glitches.

Also made minor code cleanup.

5 years agoFreestyle: Removed debugging code (use G.main instead of Freestyle-local struct Main).
Tamito Kajiyama [Mon, 21 Jul 2014 10:41:11 +0000 (19:41 +0900)]
Freestyle: Removed debugging code (use G.main instead of Freestyle-local struct Main).

5 years agoFix for vertex colors not working properly.
Tamito Kajiyama [Mon, 21 Jul 2014 09:49:27 +0000 (18:49 +0900)]
Fix for vertex colors not working properly.

Looks like the issue was caused by a UV map name starting with a lower case
letter (e.g., "color").  Capitalizing the name fixed the problem.  Also adjusted
the creation of custom data layers to optimize things a bit.

5 years agoFix for wrong link in the line style shader nodes due to a typo.
Tamito Kajiyama [Mon, 21 Jul 2014 09:47:19 +0000 (18:47 +0900)]
Fix for wrong link in the line style shader nodes due to a typo.

5 years agoFix for SCENE_OT_freestyle_stroke_material_create not respecting "use_nodes" line...
Tamito Kajiyama [Mon, 21 Jul 2014 09:45:39 +0000 (18:45 +0900)]
Fix for SCENE_OT_freestyle_stroke_material_create not respecting "use_nodes" line style prop.

5 years agoFreestyle: Proper support for alpha transparency in line style shader nodes for Cycles.
Tamito Kajiyama [Mon, 21 Jul 2014 06:08:07 +0000 (15:08 +0900)]
Freestyle: Proper support for alpha transparency in line style shader nodes for Cycles.

5 years agoFreestyle: Fix for error handling in SCENE_OT_freestyle_stroke_material_create.
Tamito Kajiyama [Sun, 20 Jul 2014 11:09:46 +0000 (20:09 +0900)]
Freestyle: Fix for error handling in SCENE_OT_freestyle_stroke_material_create.

5 years agoFreestyle: Fix for an increasing reference count of images in copied Image Texture...
Tamito Kajiyama [Sun, 20 Jul 2014 08:41:36 +0000 (17:41 +0900)]
Freestyle: Fix for an increasing reference count of images in copied Image Texture shader nodes.

5 years agoFreestyle: Properly reconnect links from a UV Along Stroke node to a UV Map node.
Tamito Kajiyama [Sun, 20 Jul 2014 07:21:05 +0000 (16:21 +0900)]
Freestyle: Properly reconnect links from a UV Along Stroke node to a UV Map node.

5 years agoFreestyle: Updated BKE_linestyle_default_shader() to include the UV Along Stroke...
Tamito Kajiyama [Sun, 20 Jul 2014 03:17:22 +0000 (12:17 +0900)]
Freestyle: Updated BKE_linestyle_default_shader() to include the UV Along Stroke shader node.

5 years agoFreestyle: Added new UV Along Stroke shader node.
Tamito Kajiyama [Sun, 20 Jul 2014 03:14:31 +0000 (12:14 +0900)]
Freestyle: Added new UV Along Stroke shader node.

5 years agoFreestyle: removed unnecessary call of node_type_storage() in the definition of the...
Tamito Kajiyama [Sun, 20 Jul 2014 03:12:54 +0000 (12:12 +0900)]
Freestyle: removed unnecessary call of node_type_storage() in the definition of the Output Line Style node.

5 years agoFreestyle: Caching of auto-generated materials from line style shader nodes.
Tamito Kajiyama [Sat, 19 Jul 2014 14:42:15 +0000 (23:42 +0900)]
Freestyle: Caching of auto-generated materials from line style shader nodes.

5 years agoRemoved/disabled debugging code.
Tamito Kajiyama [Sat, 19 Jul 2014 09:53:02 +0000 (18:53 +0900)]
Removed/disabled debugging code.

5 years agoFreestyle: an improved workflow of line style shading nodes.
Tamito Kajiyama [Sat, 19 Jul 2014 09:52:32 +0000 (18:52 +0900)]
Freestyle: an improved workflow of line style shading nodes.

Removed the previous changes for passing a line style through the Controller, and
revised the BlenderTextureShader to assign the shader node tree of a line style
(if specified) to strokes.  This way the assignment of shading nodes can be done
through both the Freestyle GUI and Python scripting.

5 years agoWIP commit just for a record of a working snapshot of code revisions for node-based...
Tamito Kajiyama [Sat, 19 Jul 2014 06:38:56 +0000 (15:38 +0900)]
WIP commit just for a record of a working snapshot of code revisions for node-based textured strokes.

5 years agoMade temporary changes to use G.main rather than Freestyle-local Main for debugging.
Tamito Kajiyama [Sat, 19 Jul 2014 06:37:13 +0000 (15:37 +0900)]
Made temporary changes to use G.main rather than Freestyle-local Main for debugging.

5 years agoFreestyle: Fix for a crash during access to Scene properties from within Python.
Tamito Kajiyama [Sat, 19 Jul 2014 06:35:11 +0000 (15:35 +0900)]
Freestyle: Fix for a crash during access to Scene properties from within Python.

5 years agoAdded BKE_linestyle_use_textures() to check if stroke textures are enabled.
Tamito Kajiyama [Sat, 19 Jul 2014 06:33:15 +0000 (15:33 +0900)]
Added BKE_linestyle_use_textures() to check if stroke textures are enabled.

5 years agoFreestyle: Keep a reference of the line style in Stroke rather than in StrokeRep.
Tamito Kajiyama [Fri, 18 Jul 2014 12:40:11 +0000 (21:40 +0900)]
Freestyle: Keep a reference of the line style in Stroke rather than in StrokeRep.

5 years agoFreestyle: show "use_nodes" option in the UI when Cycles is enabled.
Tamito Kajiyama [Fri, 18 Jul 2014 02:45:00 +0000 (11:45 +0900)]
Freestyle: show "use_nodes" option in the UI when Cycles is enabled.

The "use_textures" option is intended for the BI and does not make sense in Cycles.

5 years agoFix for renamed API functions in rB415af0b.
Tamito Kajiyama [Thu, 17 Jul 2014 04:04:01 +0000 (13:04 +0900)]
Fix for renamed API functions in rB415af0b.

5 years agoFreestyle: Removed a debug print in BlenderStrokeRenderer::GetStrokeShader().
Tamito Kajiyama [Wed, 16 Jul 2014 13:25:59 +0000 (22:25 +0900)]
Freestyle: Removed a debug print in BlenderStrokeRenderer::GetStrokeShader().

5 years agoFreestyle: Added "blend_type" and "use_clamp" options to the Output Line Style shader...
Tamito Kajiyama [Wed, 16 Jul 2014 13:25:37 +0000 (22:25 +0900)]
Freestyle: Added "blend_type" and "use_clamp" options to the Output Line Style shader node.

5 years agoFreestyle: Fix for a crash in BKE_linestyle_default_shader() due to a typo.
Tamito Kajiyama [Wed, 16 Jul 2014 06:42:44 +0000 (15:42 +0900)]
Freestyle: Fix for a crash in BKE_linestyle_default_shader() due to a typo.

5 years agoFreestyle: Fix for stroke_shader node default values copied from the Output Line...
Tamito Kajiyama [Wed, 16 Jul 2014 06:27:40 +0000 (15:27 +0900)]
Freestyle: Fix for stroke_shader node default values copied from the Output Line Style node.

5 years agoFreestyle: Changed the default Color value of the Output Line Style node.
Tamito Kajiyama [Wed, 16 Jul 2014 06:25:37 +0000 (15:25 +0900)]
Freestyle: Changed the default Color value of the Output Line Style node.

5 years agoFreestyle: Add BKE_linestyle_default_shader() for creating the default line style...
Tamito Kajiyama [Wed, 16 Jul 2014 06:25:10 +0000 (15:25 +0900)]
Freestyle: Add BKE_linestyle_default_shader() for creating the default line style shader node tree.

Changes to ED_node_shader_default() were reverted since the code there was actually
not suitable for setting up the default line style node tree properly.

5 years agoFollow-up to rB647969f9b617: Renamed CTX_data_linestyle_from_scene() to BKE_get_lines...
Tamito Kajiyama [Wed, 16 Jul 2014 04:53:00 +0000 (13:53 +0900)]
Follow-up to rB647969f9b617: Renamed CTX_data_linestyle_from_scene() to BKE_get_linestyle_from_scene().

5 years agoFreestyle: Added preliminary support for textured strokes in Cycles.
Tamito Kajiyama [Tue, 15 Jul 2014 15:21:27 +0000 (00:21 +0900)]
Freestyle: Added preliminary support for textured strokes in Cycles.

Now the shader node tree of a line style ID datablock is used to define textures
as well as their mapping and influence.

TODO: Textures alpha channel mapping and influence.
TODO: Blend mode in the Output Line Style shader node.

5 years agoChanged ntreeCopyTree_ex() to accept a pointer to struct Main.
Tamito Kajiyama [Tue, 15 Jul 2014 15:11:44 +0000 (00:11 +0900)]
Changed ntreeCopyTree_ex() to accept a pointer to struct Main.

5 years agoFix for a wrong ID datablock referenced due to a typo in BKE_copy_linestyle().
Tamito Kajiyama [Mon, 14 Jul 2014 07:23:09 +0000 (16:23 +0900)]
Fix for a wrong ID datablock referenced due to a typo in BKE_copy_linestyle().

5 years agoAdded new Output Line Style shader node for defining a node-based line material.
Tamito Kajiyama [Mon, 14 Jul 2014 07:20:40 +0000 (16:20 +0900)]
Added new Output Line Style shader node for defining a node-based line material.

5 years agoMinor fix for texture category name.
Tamito Kajiyama [Fri, 11 Jul 2014 08:03:35 +0000 (17:03 +0900)]
Minor fix for texture category name.

5 years agoEnabled USE_CYCLES_FOR_STROKE_RENDERING compile-time flag by default.
Tamito Kajiyama [Fri, 11 Jul 2014 07:52:01 +0000 (16:52 +0900)]
Enabled USE_CYCLES_FOR_STROKE_RENDERING compile-time flag by default.

5 years agoImplemented a basic framework for node-based shaders.
Tamito Kajiyama [Fri, 11 Jul 2014 07:51:04 +0000 (16:51 +0900)]
Implemented a basic framework for node-based shaders.

Shader nodes will be used to define materials for stroke rendering, so as to
allow users to interactively configure textures.

5 years agoFreestyle: Show the Freestyle Line panel of the Material properties context also...
Tamito Kajiyama [Wed, 9 Jul 2014 00:48:16 +0000 (09:48 +0900)]
Freestyle: Show the Freestyle Line panel of the Material properties context also in Cycles

5 years agoAlways use the Blender Internal renderer for stroke rendering.
Tamito Kajiyama [Sat, 28 Jun 2014 15:27:45 +0000 (00:27 +0900)]
Always use the Blender Internal renderer for stroke rendering.

5 years agoAdded new operator "Create Freestyle Stroke Material" for testing.
Tamito Kajiyama [Sat, 28 Jun 2014 10:18:47 +0000 (19:18 +0900)]
Added new operator "Create Freestyle Stroke Material" for testing.

5 years agoRemoved debug prints.
Tamito Kajiyama [Fri, 27 Jun 2014 07:11:30 +0000 (16:11 +0900)]
Removed debug prints.

5 years agoFix for hard-coded #include file paths.
Tamito Kajiyama [Fri, 27 Jun 2014 07:00:22 +0000 (16:00 +0900)]
Fix for hard-coded #include file paths.

5 years agoFix for nested Cycles sessions.
Tamito Kajiyama [Fri, 27 Jun 2014 05:56:21 +0000 (14:56 +0900)]
Fix for nested Cycles sessions.

5 years agoRemoved ad-hoc use of R_PERSISTENT_DATA for Freestyle/Cycles.
Tamito Kajiyama [Fri, 27 Jun 2014 05:55:18 +0000 (14:55 +0900)]
Removed ad-hoc use of R_PERSISTENT_DATA for Freestyle/Cycles.

5 years agoAdded debug prints.
Tamito Kajiyama [Fri, 27 Jun 2014 05:52:55 +0000 (14:52 +0900)]
Added debug prints.

5 years agoInitial implementation of Cycles materials for Freestyle stroke rendering.
Tamito Kajiyama [Thu, 26 Jun 2014 15:40:41 +0000 (00:40 +0900)]
Initial implementation of Cycles materials for Freestyle stroke rendering.

5 years agoProof-of-concept implementation of Freestyle support for Cycles.
Tamito Kajiyama [Wed, 25 Jun 2014 06:12:24 +0000 (15:12 +0900)]
Proof-of-concept implementation of Freestyle support for Cycles.

5 years agoSpelling
Campbell Barton [Tue, 12 Aug 2014 00:31:07 +0000 (10:31 +1000)]
Spelling

5 years agoFix uninitialized memory use
Campbell Barton [Mon, 11 Aug 2014 22:21:02 +0000 (08:21 +1000)]
Fix uninitialized memory use

5 years agoFix marker selection margin ignoring DPI
Campbell Barton [Mon, 11 Aug 2014 19:43:24 +0000 (05:43 +1000)]
Fix marker selection margin ignoring DPI

5 years agoFix T41403: Grid Particles only partially generated.
Bastien Montagne [Mon, 11 Aug 2014 18:23:39 +0000 (20:23 +0200)]
Fix T41403: Grid Particles only partially generated.

Getting dominant axis (biggest dimension of bbox) was wrong, now using BLI code for that.

5 years agoFix T41362: CPU and GPU rendering gives different results
Sergey Sharybin [Mon, 11 Aug 2014 16:29:27 +0000 (22:29 +0600)]
Fix T41362: CPU and GPU rendering gives different results

We can't really make CPU and GPU results look the same in all possible
circumstances, but here we can make them look close enough to each other
by making it so sobol pattern for bounce number is the smae for both
CPU and GPU.

This makes CPU and GPU render results look the same with low number of
samples, high number of samples was never an issue.

5 years agoFix compilation error with debug scons
Sergey Sharybin [Mon, 11 Aug 2014 14:58:42 +0000 (20:58 +0600)]
Fix compilation error with debug scons

The issue is that we've got hell with DEBUG and _DEBUG,
theu're defined really inconsistent acros CMake and SCons.

Used more reliable NDEBUG definition for IDP_spit.

5 years agoFix T41360: Crash on Boolean Modifier
Sergey Sharybin [Mon, 11 Aug 2014 14:50:28 +0000 (20:50 +0600)]
Fix T41360: Crash on Boolean Modifier

The issue was caused by the wrong attributes maps in certain
circumstances after union intersections.

Namely issue might have happen when more than one iteration of
union was happening and it was caused by the fact that new faces
might be allocated on the same address as freed face from the
old mesh.

Didn't find a nicer fix for this apart from correcting the whole
attributes map after each union step.

We could try removing attributes for the meshes which are getting
deleted, but in asymptotic it's gonna to give exactly the same
complexity as the current approach.

5 years agoFix for previous commit - after talk with physics guys (Genscher, Miikah), better
Bastien Montagne [Mon, 11 Aug 2014 13:43:24 +0000 (15:43 +0200)]
Fix for previous commit - after talk with physics guys (Genscher, Miikah), better
to keep soft UI limits as is, and only raise hard ones.

5 years agoFix T40047: Smoke: Maximum value for initial velocity.
Bastien Montagne [Mon, 11 Aug 2014 13:23:36 +0000 (15:23 +0200)]
Fix T40047: Smoke: Maximum value for initial velocity.

Based on D644, by robschia (Roberto Schiavone).

5 years agoFix T40203: Fluid simulation needs more memory than displayed.
Bastien Montagne [Mon, 11 Aug 2014 13:01:36 +0000 (15:01 +0200)]
Fix T40203: Fluid simulation needs more memory than displayed.

Nothing like a fix, actually, this is an issue in elbeem afaik.
For now, just warn user that complex obstacles may breack things.

5 years agoFix T40744: MIP Map is generating strange noise in texture, Blender Internal
Sergey Sharybin [Mon, 11 Aug 2014 11:37:56 +0000 (17:37 +0600)]
Fix T40744: MIP Map is generating strange noise in texture, Blender Internal

5 years agoManifest used to be installed on non-windows platforms
Sergey Sharybin [Mon, 11 Aug 2014 11:26:20 +0000 (17:26 +0600)]
Manifest used to be installed on non-windows platforms

5 years agoMinor cleanup
Antony Riakiotakis [Mon, 11 Aug 2014 09:55:16 +0000 (11:55 +0200)]
Minor cleanup

5 years agoPie Menus C code backend.
Antony Riakiotakis [Mon, 11 Aug 2014 08:39:59 +0000 (10:39 +0200)]
Pie Menus C code backend.

This commit merges the code in the pie-menu branch.

As per decisions taken the last few days, there are no pie menus
included and there will be an official add-on including overrides of
some keys with pie menus. However, people will now be able to use the
new code in python.

Full Documentation is in http://wiki.blender.org/index.php/Dev:Ref/

Thanks:
Campbell Barton, Dalai Felinto and Ton Roosendaal for the code review
and design comments

Jonathan Williamson, Pawel Lyczkowski, Pablo Vazquez among others for
suggestions during the development.

Special Thanks to Sean Olson, for his support, suggestions, testing and
merciless bugging so that I would finish the pie menu code. Without him
we wouldn't be here. Also to the rest of the developers of the original
python add-on, Patrick Moore and Dan Eicher and finally to Matt Ebb, who
did the research and first implementation and whose code I used to get
started.

5 years agoFix T41395: Set Object As Camera - Monkey Render bug?
Sergey Sharybin [Mon, 11 Aug 2014 08:11:15 +0000 (14:11 +0600)]
Fix T41395: Set Object As Camera - Monkey Render bug?

5 years agoFix T40766: Startup fails with UnicodeDecodeError on Windows
Campbell Barton [Mon, 11 Aug 2014 07:53:42 +0000 (17:53 +1000)]
Fix T40766: Startup fails with UnicodeDecodeError on Windows