8 years agoFix compilation of cycles for MinGW-w64 after recent commits. MinGW-w64 has conflicti...
Antony Riakiotakis [Sat, 8 Jun 2013 21:48:01 +0000 (21:48 +0000)]
Fix compilation of cycles for MinGW-w64 after recent commits. MinGW-w64 has conflicting redefinitions of the SSE functions in windows.h, so we will be using this header instead, since we can't always avoid including it instead of the sse headers.

8 years agoFix for bug [#35400] Dilate Erode Feather Bug - feathering wraps around image
Monique Dewanchand [Sat, 8 Jun 2013 19:56:11 +0000 (19:56 +0000)]
Fix for bug [#35400] Dilate Erode Feather Bug - feathering wraps around image

8 years agoFix #35671: automatic armature weights assignment crashed with an empty mesh.
Brecht Van Lommel [Sat, 8 Jun 2013 17:56:45 +0000 (17:56 +0000)]
Fix #35671: automatic armature weights assignment crashed with an empty mesh.

8 years agoCycles: invert mist pass so that 0 is nearby and 1 is far away. This is the
Brecht Van Lommel [Sat, 8 Jun 2013 17:56:40 +0000 (17:56 +0000)]
Cycles: invert mist pass so that 0 is nearby and 1 is far away. This is the
opposite of Blender Internal but it makes more sense I think.

8 years agoFix for node search operator, this was not taking into account possible NodeItemCusto...
Lukas Toenne [Sat, 8 Jun 2013 17:35:05 +0000 (17:35 +0000)]
Fix for node search operator, this was not taking into account possible NodeItemCustom in the categories yet. Such custom items as just ignored for now.

8 years agoUI / Freestyle:
Thomas Dinges [Sat, 8 Jun 2013 17:10:17 +0000 (17:10 +0000)]
UI / Freestyle:
* Properties, which depend on an enum should be hidden, not greyed out.

8 years agoUI / Modifiers:
Thomas Dinges [Sat, 8 Jun 2013 16:53:14 +0000 (16:53 +0000)]
UI / Modifiers:
* Skin modifier also wasted quite some space, use dual column layout now.

8 years agoUI / Modifiers:
Thomas Dinges [Sat, 8 Jun 2013 16:06:39 +0000 (16:06 +0000)]
UI / Modifiers:
* VERTEX_WEIGHT modifiers had quite a messy UI, improved the grouping of options a bit, so it is easier to scan through.
* Do not use abbreviations like "Rem" or "Dist" in the UI...

* Also small change for BEVEL modifier UI for more efficient space usage.

8 years agoFix #35672: missing update when changing light ray visibility during viewport render.
Brecht Van Lommel [Sat, 8 Jun 2013 13:43:38 +0000 (13:43 +0000)]
Fix #35672: missing update when changing light ray visibility during viewport render.

8 years agoCycles / OpenCL:
Thomas Dinges [Sat, 8 Jun 2013 11:38:23 +0000 (11:38 +0000)]
Cycles / OpenCL:
* Fix for recent commits, ceilf is not available in OpenCL.

8 years agoCycles: window texture coordinates now work with orthographic cameras, this
Brecht Van Lommel [Sat, 8 Jun 2013 10:51:33 +0000 (10:51 +0000)]
Cycles: window texture coordinates now work with orthographic cameras, this
was an old issue since the first version.

8 years agocode cleanup: warn undefined compiler defines.
Campbell Barton [Sat, 8 Jun 2013 05:24:55 +0000 (05:24 +0000)]
code cleanup: warn undefined compiler defines.

8 years agoCode cleanup:
Nicholas Rishel [Sat, 8 Jun 2013 05:24:08 +0000 (05:24 +0000)]
Code cleanup:
Comment no longer relevant as UI button exists to create a new directory.

8 years agoMaps back and forward history to back and forward buttons on a 5 button mouse.
Nicholas Rishel [Sat, 8 Jun 2013 05:23:47 +0000 (05:23 +0000)]
Maps back and forward history to back and forward buttons on a 5 button mouse.

8 years agoCycles: ray visibility options now work for lamps and mesh lights, with and without
Brecht Van Lommel [Fri, 7 Jun 2013 18:59:23 +0000 (18:59 +0000)]
Cycles: ray visibility options now work for lamps and mesh lights, with and without
multiple importance sampling, so you can disable them for diffuse/glossy/transmission.

The Light Path node here is still weak and does not give this info. To make that
work we'd need to evaluate the shader multiple times which is slow and we can't
detect well enough when it is actually needed.

8 years agoCycles: experimental correlated multi-jittered sampling pattern that can be used
Brecht Van Lommel [Fri, 7 Jun 2013 16:06:22 +0000 (16:06 +0000)]
Cycles: experimental correlated multi-jittered sampling pattern that can be used
instead of sobol. So far one doesn't seem to be consistently better or worse than
the other for the same number of samples but more testing is needed.

The random number generator itself is slower than sobol for most number of samples,
except 16, 64, 256, .. because they can be computed faster. This can probably be
optimized, but we can do that when/if this actually turns out to be useful.

Paper this implementation is based on:

Also includes some refactoring of RNG code, fixing a Sobol correlation issue with
the first BSDF and < 16 samples, skipping some unneeded RNG calls and using a
simpler unit square to unit disk function.

8 years agoCode cleanup: avoid some warnings due to implicit uint/int/float/double conversion.
Brecht Van Lommel [Fri, 7 Jun 2013 16:06:17 +0000 (16:06 +0000)]
Code cleanup: avoid some warnings due to implicit uint/int/float/double conversion.

8 years agoUsablity:
Ton Roosendaal [Fri, 7 Jun 2013 15:42:26 +0000 (15:42 +0000)]

Textbuttons: double click now selects entire words (like on file path segements)
Triple click was requested too, but that's not a WM event type yet.

8 years agoCycles: mist pass added, with start/depth/falloff control. If the pass is
Brecht Van Lommel [Fri, 7 Jun 2013 12:45:26 +0000 (12:45 +0000)]
Cycles: mist pass added, with start/depth/falloff control. If the pass is
enabled in a render layer a Mist Pass panel will be shown in the world

8 years agoadd default preset for font settings.
Campbell Barton [Fri, 7 Jun 2013 01:06:01 +0000 (01:06 +0000)]
add default preset for font settings.

8 years agoadd support for storing text styles in themes.
Campbell Barton [Fri, 7 Jun 2013 00:27:21 +0000 (00:27 +0000)]
add support for storing text styles in themes.
also reset text styles when resetting to the default theme.

8 years agochange to r57261, replace BLI_cleanup_dir with BLI_split_dir_part
Campbell Barton [Thu, 6 Jun 2013 23:58:30 +0000 (23:58 +0000)]
change to r57261, replace BLI_cleanup_dir with BLI_split_dir_part

8 years agoReverted unwanted checkin of work in progres from my previews commit
Gaia Clary [Thu, 6 Jun 2013 22:25:20 +0000 (22:25 +0000)]
Reverted unwanted checkin of work in progres from my previews commit

8 years agoRenamed Panel to 'Vertex Weights' (describe its functionality more precise)
Gaia Clary [Thu, 6 Jun 2013 22:05:48 +0000 (22:05 +0000)]
Renamed Panel to 'Vertex Weights' (describe its functionality more precise)

8 years agotext rendering: shadow offset was causing text to clip, now check for clipping withou...
Campbell Barton [Thu, 6 Jun 2013 21:43:52 +0000 (21:43 +0000)]
text rendering: shadow offset was causing text to clip, now check for clipping without the shadow since not-drawing characters because of subtle effect is rather annoying.

8 years agofix for copy/paste error in scaling text by DPI, vertical shadow offset wasn't workin...
Campbell Barton [Thu, 6 Jun 2013 20:44:48 +0000 (20:44 +0000)]
fix for copy/paste error in scaling text by DPI, vertical shadow offset wasn't working for panel text.

8 years agocode cleanup: use more standard names for userpref ui functions was using `context...
Campbell Barton [Thu, 6 Jun 2013 20:36:28 +0000 (20:36 +0000)]
code cleanup: use more standard names for userpref ui functions was using `context` for style vars.

8 years agofix [#35650] parented camera behavior
Campbell Barton [Thu, 6 Jun 2013 19:04:56 +0000 (19:04 +0000)]
fix [#35650] parented camera behavior

fly mode with parenting was broken for both locked/unlocked parent mode.

8 years agoFix #35651, #35645.
Antony Riakiotakis [Thu, 6 Jun 2013 14:06:12 +0000 (14:06 +0000)]
Fix #35651, #35645.
Hidden faces do not get UvElements generated so essentially this caused
a null point reference on edge lookup.

8 years agoFix #35644: lamp specials menu still showed blender internal energy and falloff
Brecht Van Lommel [Thu, 6 Jun 2013 11:18:39 +0000 (11:18 +0000)]
Fix #35644: lamp specials menu still showed blender internal energy and falloff
distance when cycles was selected as renderer.

8 years agostyle cleanup
Campbell Barton [Thu, 6 Jun 2013 06:02:46 +0000 (06:02 +0000)]
style cleanup

8 years agofix [#35646] Image offset value in empty image display mode should be unitless
Campbell Barton [Thu, 6 Jun 2013 05:48:16 +0000 (05:48 +0000)]
fix [#35646] Image offset value in empty image display mode should be unitless

8 years agoMerge branch 'FIX_Previous_Folder' into trunk
Nicholas Rishel [Thu, 6 Jun 2013 02:13:56 +0000 (02:13 +0000)]
Merge branch 'FIX_Previous_Folder' into trunk

8 years agofix issue with new bridge tool interpolation [#35636]
Campbell Barton [Wed, 5 Jun 2013 21:31:01 +0000 (21:31 +0000)]
fix issue with new bridge tool interpolation [#35636]

8 years agoFix for frame node property display: Extended frame node properties such as the ...
Lukas Toenne [Wed, 5 Jun 2013 20:10:15 +0000 (20:10 +0000)]
Fix for frame node property display: Extended frame node properties such as the "shrink" option were not shown in the node editor sidebar. This was because the RNA type for the node was not using
NodeInternal as a base, which is a wrapper to expose the C callbacks as methods in bpy. Now these basic node types are also based on NodeInternal to ensure the full interface is available to py scripts.

In the process removed the unused NodeGroup register function, this doesn't work nicely anyway because it requires multiple inheritance which RNA doesn't support (so py node groups should be done
entirely in python in the future).

8 years agoissue warning when WITH_RAYOPTIMIZATION is used with MinGW-w32, since this is known...
Campbell Barton [Wed, 5 Jun 2013 19:33:19 +0000 (19:33 +0000)]
issue warning when WITH_RAYOPTIMIZATION is used with MinGW-w32, since this is known to give crashes.

8 years agoRemoved the "Make Local?" popup from group node edit operator on linked node groups...
Lukas Toenne [Wed, 5 Jun 2013 19:28:59 +0000 (19:28 +0000)]
Removed the "Make Local?" popup from group node edit operator on linked node groups. This is no longer necessary since we can now quite safely display linked node trees in general (this check was already
meaningless for material node trees and the like as demonstrated by bug #35640, so rather pointless).

8 years agoFix for own mistake in r57252, needs to unset id.lib of the newly copied tree instead...
Lukas Toenne [Wed, 5 Jun 2013 19:28:58 +0000 (19:28 +0000)]
Fix for own mistake in r57252, needs to unset id.lib of the newly copied tree instead of the old one.

8 years agofix [#35628] Dynamic paint waves over ocean modifier doesn't work
Campbell Barton [Wed, 5 Jun 2013 19:22:12 +0000 (19:22 +0000)]
fix [#35628] Dynamic paint waves over ocean modifier doesn't work

Caused by my recent normal calculation changes, added dependsOnNormals callback which was missing for ocean modifier (it assumed input normals were set).

8 years agoFix #35640, part 2. Check id.lib in poll functions for operators which do critical...
Lukas Toenne [Wed, 5 Jun 2013 19:06:33 +0000 (19:06 +0000)]
Fix #35640, part 2. Check id.lib in poll functions for operators which do critical modification of node trees (create nodes, link, etc.). Transform operators and hide/show type operators are still
allowed, this does not modify actual behavior of the nodes and can be useful for inspecting linked nodes.

8 years agoFix #35640, part 1. Set the id.lib pointer for nested bNodeTree data blocks inside...
Lukas Toenne [Wed, 5 Jun 2013 19:06:27 +0000 (19:06 +0000)]
Fix #35640, part 1. Set the id.lib pointer for nested bNodeTree data blocks inside material, scene, etc. on lib_link, so that the UI buttons get disabled when editing linked node trees. Thanks to Brecht
van Lommel for suggesting this fix.

8 years agoFix textured draw mode + dyntopo crash fix to cover more cases.
Brecht Van Lommel [Wed, 5 Jun 2013 15:54:41 +0000 (15:54 +0000)]
Fix textured draw mode + dyntopo crash fix to cover more cases.

8 years agoCycles: GLSL materials now can use multiple UV maps with the attribute node.
Brecht Van Lommel [Wed, 5 Jun 2013 15:54:39 +0000 (15:54 +0000)]
Cycles: GLSL materials now can use multiple UV maps with the attribute node.

8 years agoFix #35633, Cannot Add Group Node In Blender 2.67a. The menu entry for the "make...
Lukas Toenne [Wed, 5 Jun 2013 09:21:17 +0000 (09:21 +0000)]
Fix #35633, Cannot Add Group Node In Blender 2.67a. The menu entry for the "make group" operator was missing in the new categories system. Added an alternative NodeItemCustom to the standard NodeItem to
allow custom draw functions such as this operator. Used in the group items callback to generate the basic group_make operator call.

8 years agoObsessive Null Checking Compulsion case:
Antony Riakiotakis [Wed, 5 Jun 2013 09:10:56 +0000 (09:10 +0000)]
Obsessive Null Checking Compulsion case:
Textured draw mode + DynTopo crashed after recent specularity tweak.

8 years agoFix #35625, crash with NULL pointer after node render. Happens when node group node_t...
Lukas Toenne [Wed, 5 Jun 2013 08:23:44 +0000 (08:23 +0000)]
Fix #35625, crash with NULL pointer after node render. Happens when node group node_tree pointer is NULL, then the group node doesn not produce any execdata and needs to check this accordingly in the
freeexec callback.

8 years agoadd option to remove all shape keys at once (access from shape key menu on panel).
Campbell Barton [Wed, 5 Jun 2013 06:34:18 +0000 (06:34 +0000)]
add option to remove all shape keys at once (access from shape key menu on panel).

Without this there was no easy way to get a WYSIWYG copy of a mesh that had shape keys,
since removing them would adjust the mesh.

8 years agochanges to mirror tools
Campbell Barton [Wed, 5 Jun 2013 05:58:51 +0000 (05:58 +0000)]
changes to mirror tools

- give feedback on how many mirror verts succeed/fail (for select mirror, shape key mirror, weight mirror)
... when a mirror failed it was confusing and not obvious what was going on.

- slight change to select mirror, now center vertices will remain selected.

- speedup to EDBM_verts_mirror_cache_begin, cache customdata layer offset.

8 years agofix [#35453] "copy mirrored uv coords" doesn't work
Campbell Barton [Wed, 5 Jun 2013 03:10:29 +0000 (03:10 +0000)]
fix [#35453] "copy mirrored uv coords" doesn't work

- made precision configurable.
- report a warning when doubles are found since they cause problems.

added attribute to avoid calculating in python.

8 years agoAdded 'clear active group' to object data properties -> Vertex Groups -> pulldown...
Gaia Clary [Tue, 4 Jun 2013 22:30:41 +0000 (22:30 +0000)]
Added 'clear active group' to object data properties -> Vertex Groups -> pulldown menu

8 years agoyet another check for missing vertex groups needed (for 'Select/Deselect')
Campbell Barton [Tue, 4 Jun 2013 21:54:16 +0000 (21:54 +0000)]
yet another check for missing vertex groups needed (for 'Select/Deselect')

8 years agofix [#35629] Incorrect Rendered Viewport Horizontal Splitting
Campbell Barton [Tue, 4 Jun 2013 21:23:32 +0000 (21:23 +0000)]
fix [#35629] Incorrect Rendered Viewport Horizontal Splitting

previously the order didnt matter but with viewport render, its noticable.

8 years agofix [#35613] Dopesheet, Graph Editor Trouble Selecting Channels
Campbell Barton [Tue, 4 Jun 2013 20:26:58 +0000 (20:26 +0000)]
fix [#35613] Dopesheet, Graph Editor Trouble Selecting Channels

8 years agofix own error with removing vertex weights not checking for non-existing weights.
Campbell Barton [Tue, 4 Jun 2013 19:37:18 +0000 (19:37 +0000)]
fix own error with removing vertex weights not checking for non-existing weights.
however this exposed some other odd behavior.

removing a vertex group would add one if not found but only for meshes, not lattices.

now just skip removal if not found.

8 years agofix for own error in recent bridge changes, make sure normals are calculated before...
Campbell Barton [Tue, 4 Jun 2013 17:46:19 +0000 (17:46 +0000)]
fix for own error in recent bridge changes, make sure normals are calculated before use.

8 years agoCycles:
Thomas Dinges [Tue, 4 Jun 2013 17:20:00 +0000 (17:20 +0000)]
* Revert r57203 (len() renaming)
There seems to be a problem with nVidia OpenCL after this and I haven't figured out the real cause yet.
Better to selectively enable native length() later, after figuring out what's wrong.

This fixes [#35612].

8 years agoFix #35602: VBO + dynamic topology sculpt did not show specularity.
Brecht Van Lommel [Tue, 4 Jun 2013 17:10:57 +0000 (17:10 +0000)]
Fix #35602: VBO + dynamic topology sculpt did not show specularity.

8 years agoFix #35622: applying modifiers did not give correct smooth shading normals
Brecht Van Lommel [Tue, 4 Jun 2013 16:02:54 +0000 (16:02 +0000)]
Fix #35622: applying modifiers did not give correct smooth shading normals
after recent changes to avoid computing unneeded normals.

8 years agoFix #35623: separate mesh operator did not redraw the outliner.
Brecht Van Lommel [Tue, 4 Jun 2013 15:56:14 +0000 (15:56 +0000)]
Fix #35623: separate mesh operator did not redraw the outliner.

8 years agoFix #35617: cycles GLSL object texture coordinates were wrong.
Brecht Van Lommel [Tue, 4 Jun 2013 15:49:34 +0000 (15:49 +0000)]
Fix #35617: cycles GLSL object texture coordinates were wrong.

8 years agoFix #35614: cycles objects on mask layer in render layers were writing passes
Brecht Van Lommel [Tue, 4 Jun 2013 15:41:45 +0000 (15:41 +0000)]
Fix #35614: cycles objects on mask layer in render layers were writing passes
such as motion/uv/normal but they should have been excluded from them.

8 years agoFix #35624: rendering to a new window, then switching scene in the main window,
Brecht Van Lommel [Tue, 4 Jun 2013 15:36:00 +0000 (15:36 +0000)]
Fix #35624: rendering to a new window, then switching scene in the main window,
would still continue to render the previous scene in the render window on F12.

8 years agoFix build error on non-x86 architectures as pointed out by Jochen Schmitt.
Brecht Van Lommel [Tue, 4 Jun 2013 11:21:13 +0000 (11:21 +0000)]
Fix build error on non-x86 architectures as pointed out by Jochen Schmitt.

8 years agouse vla's if supported as replacement to BLI_array in subsurf code.
Campbell Barton [Tue, 4 Jun 2013 07:41:21 +0000 (07:41 +0000)]
use vla's if supported as replacement to BLI_array in subsurf code.

8 years agoreduce signed/unsigned conversion in subsurf.
Campbell Barton [Tue, 4 Jun 2013 06:40:35 +0000 (06:40 +0000)]
reduce signed/unsigned conversion in subsurf.

8 years agocorrect error getting the selection from recent change.
Campbell Barton [Tue, 4 Jun 2013 05:03:36 +0000 (05:03 +0000)]
correct error getting the selection from recent change.

8 years agoedit-mesh improvements to select shortest path
Campbell Barton [Tue, 4 Jun 2013 01:23:51 +0000 (01:23 +0000)]
edit-mesh improvements to select shortest path
- Ctrl+RMB only worked for edges & faces
- Menu item 'Select Shortest Path' only worked for vertices.

Now Ctrl+RMB works for vertices and the menu item works for verts/edges/faces (depending on the current selection).

8 years agofix for missing undo push for drag-toggle.
Campbell Barton [Mon, 3 Jun 2013 19:52:53 +0000 (19:52 +0000)]
fix for missing undo push for drag-toggle.

8 years agoquiet compiler warning building with internationalization enabled.
Campbell Barton [Mon, 3 Jun 2013 19:20:45 +0000 (19:20 +0000)]
quiet compiler warning building with internationalization enabled.

8 years agoFix #35378: Shape Key Animation Data still linked when creating full copy of scene
Sergey Sharybin [Mon, 3 Jun 2013 12:28:46 +0000 (12:28 +0000)]
Fix #35378: Shape Key Animation Data still linked when creating full copy of scene

Two issues were found:

- Mesh/Curve/Lattice kay blocks weren't copying their actions
  when making object data local. This lead to object data using
  diffrent AnimData structures which were using the same action.

- Copying actions shall happen after object object data was
  localized. This is so because otherwise we'll copy actions
  for original AnimData, not for copied one.

Reviewed by Joshua, thanks!

8 years agoFix #35610: Multiresolution Modifier Complains About Sculpt Mode
Sergey Sharybin [Mon, 3 Jun 2013 08:26:12 +0000 (08:26 +0000)]
Fix #35610: Multiresolution Modifier Complains About Sculpt Mode

If multires has got zero subdivisions in sculpt mode, no need
of displaying warning message. It was rather strange decision
which confused artists.

Now multires with zero subdivisions will be ignored silently
when in sculpt mode.

8 years agoFix compilation on MinGW32 scons. The compiled library there is already static, rever...
Antony Riakiotakis [Mon, 3 Jun 2013 06:40:25 +0000 (06:40 +0000)]
Fix compilation on MinGW32 scons. The compiled library there is already static, revert renaming of linked library

8 years agofix [#35311] Planar Decimate / Limited Dissolve fails to merge some adjacent faces
Campbell Barton [Mon, 3 Jun 2013 05:07:16 +0000 (05:07 +0000)]
fix [#35311] Planar Decimate / Limited Dissolve fails to merge some adjacent faces
optionally limit by face flipping, also added support to delimit by material and edge crease.

8 years agofix [#35468] screen list shows temp layout
Campbell Barton [Mon, 3 Jun 2013 04:06:54 +0000 (04:06 +0000)]
fix [#35468] screen list shows temp layout

8 years agofix [#35477] Clicking "Connect Hair" button translates a mesh by it's object location.
Campbell Barton [Mon, 3 Jun 2013 03:47:41 +0000 (03:47 +0000)]
fix [#35477] Clicking "Connect Hair" button translates a mesh by it's object location.

8 years agofix [#35501] Operator log: some property changes log as [...].(null) = ...
Campbell Barton [Mon, 3 Jun 2013 00:46:20 +0000 (00:46 +0000)]
fix [#35501] Operator log: some property changes log as [...].(null) = ...

8 years agofix [#35603] Crash with "Tag Freestyle Edge Mark"
Campbell Barton [Sun, 2 Jun 2013 23:58:53 +0000 (23:58 +0000)]
fix [#35603] Crash with "Tag Freestyle Edge Mark"

8 years agofix [#35592] Collada (DAE) exporter messes up vertex colors
Campbell Barton [Sun, 2 Jun 2013 23:53:03 +0000 (23:53 +0000)]
fix [#35592] Collada (DAE) exporter messes up vertex colors

8 years agofix [#35555] Collada: export destroys mesh in some cases
Campbell Barton [Sun, 2 Jun 2013 23:20:49 +0000 (23:20 +0000)]
fix [#35555] Collada: export destroys mesh in some cases

add arguments to calculate normals when converting to bmesh:
  BM_mesh_bm_from_me, DM_to_bmesh

This gives some speedup to undo (which didnt need to re-calculate vertex normals), and array modifier which doesnt need to calculate face normals at all

8 years agoadd asserts when scanfilling or triangulating with zero length normal.
Campbell Barton [Sun, 2 Jun 2013 22:54:00 +0000 (22:54 +0000)]
add asserts when scanfilling or triangulating with zero length normal.

8 years agofix [#35545] Weight paint with mirror modifier does not accurate represent bone influence
Campbell Barton [Sun, 2 Jun 2013 22:40:45 +0000 (22:40 +0000)]
fix [#35545] Weight paint with mirror modifier does not accurate represent bone influence

8 years agofix [#35489] mode_set() not working in background mode, Scene change doesn't change...
Campbell Barton [Sun, 2 Jun 2013 22:21:45 +0000 (22:21 +0000)]
fix [#35489] mode_set() not working in background mode, Scene change doesn't change mode either

8 years agofix [#35434] Segmentation fault switching screen layout from python
Campbell Barton [Sun, 2 Jun 2013 20:59:00 +0000 (20:59 +0000)]
fix [#35434] Segmentation fault switching screen layout from python
(take 2), only free popup handlers.

8 years agoCycles / Math functions:
Thomas Dinges [Sun, 2 Jun 2013 20:39:32 +0000 (20:39 +0000)]
Cycles / Math functions:
* Rename some math functions:
len -> length
len_squared -> length_squared
normalize_len -> normalize_length

* This way OpenCL uses its inbuilt length() function, rather than our own. The other two functions have been renamed for consistency.
* Tested CPU, CUDA and OpenCL compile, should be no functional changes.

8 years agoFix #35599: MovieClip node crashes when using multilayer exr
Sergey Sharybin [Sun, 2 Jun 2013 19:55:57 +0000 (19:55 +0000)]
Fix #35599: MovieClip node crashes when using multilayer exr

Multilayer EXR is not supported as a source for movie clip yet,
but there's no excuse to crash!

8 years agoBetter API design for making text datablocks after loading.
Tamito Kajiyama [Sun, 2 Jun 2013 17:52:06 +0000 (17:52 +0000)]
Better API design for making text datablocks after loading.

An optional 'internal' argument was added to the operator.
The changes in revision 57153 were reverted, so that the is_in_memory and is_dirty
properties of text datablocks are not editable again.

In the C API layer, BKE_text_load_ex() was introduced to allow for optionally
making text datablocks internal after loading.

8 years agoadd vertex slide to mesh edit toolbar. also expose merge as a menu (rather then butto...
Campbell Barton [Sun, 2 Jun 2013 17:32:45 +0000 (17:32 +0000)]
add vertex slide to mesh edit toolbar. also expose merge as a menu (rather then button causing popup)

8 years agofix for crash in edgering subd when 3+ disconnected edge rings were found.
Campbell Barton [Sun, 2 Jun 2013 17:02:56 +0000 (17:02 +0000)]
fix for crash in edgering subd when 3+ disconnected edge rings were found.

8 years agotweak to recent commit, don't show keymap in menu tooltips.
Campbell Barton [Sun, 2 Jun 2013 15:58:43 +0000 (15:58 +0000)]
tweak to recent commit, don't show keymap in menu tooltips.

8 years agoFix #35587: Cycles: image movie to single image crashing
Sergey Sharybin [Sun, 2 Jun 2013 15:02:17 +0000 (15:02 +0000)]
Fix #35587: Cycles: image movie to single image crashing

Crash was happening on windows platforms only and was caused
by some specifics about how CRT works.

Basically, blender and all of the .dll are compiled with /MT
flag, which means blender.exe and all .dll are using separate
environments. This makes it impossible to pass file descriptors
from blender to other dll, because it becomes invalid in the dll.

And this is exactly what was happening: OIIO was trying to open
movie file with all known plugins and one of them was zlib. And
the way OIIO was using zlib API is opening the file using Boost
and passing a file descriptor to zlib. And since zlib was a
dynamic library this lead to general issues using this descriptor
in zlib code.

Solved by linking to zlib statically. This allows to safely pass
file descriptor to zlib API. Alternative would be to compile all
the stuff with /MD flag, but that's much bigger and less robust
way to fix the issue.

Tested on windows using msvc2008, scons plus cmake both 32 and 64
bit versions. Seems to be working fine.

Further tweaks for mingw and msvc2012 could be needed tho.

8 years agoCode cleanup / Cycles:
Thomas Dinges [Sun, 2 Jun 2013 14:52:29 +0000 (14:52 +0000)]
Code cleanup / Cycles:
* Avoid 2 int castings in hair code and fix some comments.

8 years agoFix for potential division by zero during Freestyle stroke rendering.
Tamito Kajiyama [Sun, 2 Jun 2013 11:42:04 +0000 (11:42 +0000)]
Fix for potential division by zero during Freestyle stroke rendering.
Problem report by Light BWK through personal communications with a
sample .blend file for reproducing the problem.  Thanks!

8 years agocorrections to modifiers from recent normal handling changes
Campbell Barton [Sun, 2 Jun 2013 04:09:29 +0000 (04:09 +0000)]
corrections to modifiers from recent normal handling changes
- solidify didn't define a dependsOnNormals callback (which it should have)
- build wasn't passing on dirty normals.
- decimate wasnt setting dirty normals.

8 years agouse booleans for modifiers and api callbacks.
Campbell Barton [Sun, 2 Jun 2013 03:59:19 +0000 (03:59 +0000)]
use booleans for modifiers and api callbacks.

8 years agocode cleanup: remove unused struct
Campbell Barton [Sun, 2 Jun 2013 02:25:40 +0000 (02:25 +0000)]
code cleanup: remove unused struct

8 years agoremove duplicate operator,
Campbell Barton [Sun, 2 Jun 2013 00:29:30 +0000 (00:29 +0000)]
remove duplicate operator,
select-split and unlink-selection did the same thing,
keep select split since it fits closer to mesh editmode and single key access (Ykey).

8 years agofix regression in reducing normal recalculation [#35595],
Campbell Barton [Sun, 2 Jun 2013 00:20:26 +0000 (00:20 +0000)]
fix regression in reducing normal recalculation [#35595],
pass the dirty-normal-state from the input dm to the output.

8 years agoAdded a short-cut button in the Freestyle Python Scripting mode for loading
Tamito Kajiyama [Sat, 1 Jun 2013 22:37:15 +0000 (22:37 +0000)]
Added a short-cut button in the Freestyle Python Scripting mode for loading
a style module file as a text datablock and appending it to the style module

8 years agoBug fix, own collection while testing
Ton Roosendaal [Sat, 1 Jun 2013 15:24:15 +0000 (15:24 +0000)]
Bug fix, own collection while testing

New OSX "Life resize" was also being called during opening of windows - when things are
not initialized yet. Crashed on opening full-screen window (which is animated in OSX).

8 years agoDon't hide sockets in the node properties panel. This feature is only useful to reduc...
Lukas Toenne [Sat, 1 Jun 2013 12:45:45 +0000 (12:45 +0000)]
Don't hide sockets in the node properties panel. This feature is only useful to reduce the size and clutter of actual nodes, in the panel it's better to show all meaningful inputs.