blender.git
8 years agoMerged revision(s) 57828-57907 from trunk/blender into soc-2013-dingto
Thomas Dinges [Mon, 1 Jul 2013 15:23:48 +0000 (15:23 +0000)]
Merged revision(s) 57828-57907 from trunk/blender into soc-2013-dingto

8 years agoNLA Bugfix: When clicking on a channel name in the channel list while still in
Joshua Leung [Mon, 1 Jul 2013 14:58:59 +0000 (14:58 +0000)]
NLA Bugfix: When clicking on a channel name in the channel list while still in
tweakmode, this will now result in tweakmode being exited instead of going into
a weird limbo-land where channel selection has changed (but tweakmode is still
active but not drawn)

8 years agoFix incorrect GLSL bump mapping in editmode when the UV coordinates are
Brecht Van Lommel [Mon, 1 Jul 2013 14:49:08 +0000 (14:49 +0000)]
Fix incorrect GLSL bump mapping in editmode when the UV coordinates are
flipped, was not passing sign on to GLSL shader.

8 years agoBugfix [#35744] FCurve select changes on Graph Editor Resize
Joshua Leung [Mon, 1 Jul 2013 14:14:21 +0000 (14:14 +0000)]
Bugfix [#35744] FCurve select changes on Graph Editor Resize

Selection state of F-Curves is lost when resizing the Graph Editor.

The problem was that SIPO_TEMP_NEEDCHANSYNC was getting set in the graph_init()
callback, which gets called everytime the view resizes, and not just the very
first time this happens. However, setting this flag forces the selection state
to the updated/pulled from the scene data.

In the past, it was necessary to set this flag so that we could force F-Curve
colors to get initialised correctly. However, things probably changed at some
point, so this behaviour is no longer needed. At worst now, opening a new graph
editor may not show F-Curve selection correctly synced with the viewport, though
that's easily worked around by reselecting whatever it is in the 3d view.

8 years agoBugfix [#35856] Bones gets scaled chaotically when during NLA Strip Blend In/Out
Joshua Leung [Mon, 1 Jul 2013 13:57:00 +0000 (13:57 +0000)]
Bugfix [#35856] Bones gets scaled chaotically when during NLA Strip Blend In/Out

This was one of the consequences of r.57333 (i.e. influence shouldn't be ignored
on the first strip that animates a channel), as scale should really default to a
base value of 1 (instead of things being blended against 0 as per all other
properties). The end result was that bones were getting scaled to zero here when
the influence of their strip fell to zero.

Now, we use the RNA default values of properties to initialise their initial
values. This may/may not work well in all cases:
1) For properties which don't have the appropriate RNA defaults set, this will
be problematic. But, most properties people are likely to animate here I think
are already set up correctly.
2) It may not always be nice to have values "snapping back" to default values.
In this case, you should still be defining a strip at the bottom of your NLA
stack which defines what the appropriate rest poses *should* be for your shot.

8 years agoBugfix [#35887] Keyframes inserted at wrong time on offsetted NLA Strips when
Joshua Leung [Mon, 1 Jul 2013 13:19:38 +0000 (13:19 +0000)]
Bugfix [#35887] Keyframes inserted at wrong time on offsetted NLA Strips when
using "Auto Keying" + "Insert Available Only"

Patch from Campbell.

The problem was that NLA offset/mapping correction was only done when no
destination action was supplied to insert_keyframe(). In most cases, this is not
a problem, since all normal keyframing goes through keyingset or the insert-
button operators, and these just pass action=NULL (since they're too lazy to
look it up). However, there is one situation where this bug gets triggered (the
specific combination of autokeyframing and "insert available only"), where the
caller of insert_keyframe() actually passed in an action (to prevent it from
creating one itself!).

8 years agoBugfix [#35936] Can't create new vertex group when using Ctrl G menu
Joshua Leung [Mon, 1 Jul 2013 13:02:53 +0000 (13:02 +0000)]
Bugfix [#35936] Can't create new vertex group when using Ctrl G menu

This was caused by r.57812

There were two problems here:
  1) vertex_group_vert_select_unlocked_poll()  had faulty logic which meant that
it always failed when there were no vgroups present yet - the final return
always just fell through
  2) Since the "Assign to New Groups" option was actually implemented using the
same operator as "Assign to Active Group" (just with an extra parameter set), if
the active group was locked, it was not possible to "Assign to New Group" (even
though a new group would not be locked).

8 years agoFix for Make Local -> All not working correct with multy-user datablocks
Sergey Sharybin [Mon, 1 Jul 2013 08:53:45 +0000 (08:53 +0000)]
Fix for Make Local -> All not working correct with multy-user datablocks

Make Local operator uses BKE_library_make_local function if all the
datablocks needs to be made local. And this function was calling
id_clear_lib_data for every datablock, which only clears library
data. But this function doesn't work correct for datablocks which
areshared by multiple users (this is also mentioned in comment
for this function).

This lead to situations when two datablocks shares the same runtime
data leading to crashes later. For example making everythig local in
scales cycles scene from durian ends up in a crash when toggling
rig edit mode.

Solved by using id_make_local instead of id_clear_lib_data, which
will ensure all the data are nicely expanded and made local.

Checked by Brecht, thanks fr the review!

8 years agofix [#35858] there were two bugs here, hidden faces were occluding in vertex selectio...
Campbell Barton [Mon, 1 Jul 2013 08:25:27 +0000 (08:25 +0000)]
fix [#35858] there were two bugs here, hidden faces were occluding in vertex selection mode.

8 years agobridge tool: calculate face normals before triangulating, own error when removing...
Campbell Barton [Mon, 1 Jul 2013 07:15:12 +0000 (07:15 +0000)]
bridge tool: calculate face normals before triangulating, own error when removing normal recalc from the bmesh operator.
also rename `Fill Grid` -> `Grid Fill` to match `Beauty Fill`

8 years agoadd type checking assert in bmesh operator iterator.
Campbell Barton [Mon, 1 Jul 2013 07:12:05 +0000 (07:12 +0000)]
add type checking assert in bmesh operator iterator.

8 years agotweak to commit r57891, dont draw hidden faces/edges in editmode.
Campbell Barton [Mon, 1 Jul 2013 01:25:21 +0000 (01:25 +0000)]
tweak to commit r57891, dont draw hidden faces/edges in editmode.

8 years agofix [#35911] Show weights not working with a weight edit modifier in edit mode
Campbell Barton [Mon, 1 Jul 2013 00:42:44 +0000 (00:42 +0000)]
fix [#35911] Show weights not working with a weight edit modifier in edit mode

8 years agoadd some missing members to opengl debug print, also use a macro to avoid passing...
Campbell Barton [Sun, 30 Jun 2013 23:50:17 +0000 (23:50 +0000)]
add some missing members to opengl debug print, also use a macro to avoid passing each arg twice.

8 years agoopengl debug info, make GPU_state_print() only show values in arrays that are set...
Campbell Barton [Sun, 30 Jun 2013 23:30:21 +0000 (23:30 +0000)]
opengl debug info, make GPU_state_print() only show values in arrays that are set. (was print 32 values every time)

8 years agofix [#35914] Blender crashes when trying to use vertex selection masking on a copy...
Campbell Barton [Sun, 30 Jun 2013 22:04:03 +0000 (22:04 +0000)]
fix [#35914] Blender crashes when trying to use vertex selection masking on a copy directly after using SHIFT+d

8 years agominor change for high res displays, scale fcurve handles and view3d axis size.
Campbell Barton [Sun, 30 Jun 2013 21:41:06 +0000 (21:41 +0000)]
minor change for high res displays, scale fcurve handles and view3d axis size.

8 years agoPatch [#35897] install_deps: add OpenEXR to ldconfig by Gavin Howard, thanks.
Bastien Montagne [Sun, 30 Jun 2013 16:20:59 +0000 (16:20 +0000)]
Patch [#35897] install_deps: add OpenEXR to ldconfig by Gavin Howard, thanks.

8 years agoFix for
Jeroen Bakker [Sun, 30 Jun 2013 13:35:00 +0000 (13:35 +0000)]
Fix for
 * [#35922] RGB Input Node doesn't work properly

8 years agorevert own fix for adding nodes with (DPI != 72), the fix doesn't work for OSX retina...
Campbell Barton [Sun, 30 Jun 2013 11:56:15 +0000 (11:56 +0000)]
revert own fix for adding nodes with (DPI != 72), the fix doesn't work for OSX retina displays.

8 years agoFix more swapped descriptions for mouse X/Y position properties.
Brecht Van Lommel [Sat, 29 Jun 2013 11:02:36 +0000 (11:02 +0000)]
Fix more swapped descriptions for mouse X/Y position properties.

8 years agoFix swapped descriptions for window X/Y position properties.
Brecht Van Lommel [Sat, 29 Jun 2013 10:59:54 +0000 (10:59 +0000)]
Fix swapped descriptions for window X/Y position properties.

8 years agoFix scons/windows build error, missing pthreads include in blenfont for mutex.
Brecht Van Lommel [Sat, 29 Jun 2013 10:52:18 +0000 (10:52 +0000)]
Fix scons/windows build error, missing pthreads include in blenfont for mutex.

8 years agore-arrange '--help' output into more useful sections (added debug, python).
Campbell Barton [Sat, 29 Jun 2013 10:09:15 +0000 (10:09 +0000)]
re-arrange '--help' output into more useful sections (added debug, python).
also minor style cleanup

8 years agofixed a compiler warning message in vs 2008
Gaia Clary [Sat, 29 Jun 2013 08:41:20 +0000 (08:41 +0000)]
fixed a compiler warning message in vs 2008

8 years agofixed Blender crash, but unclear when this situation can happen
Gaia Clary [Sat, 29 Jun 2013 08:38:17 +0000 (08:38 +0000)]
fixed Blender crash, but unclear when this situation can happen

8 years agoreplace LATTICE_PT macro with BKE_lattice_index_from_uvw().
Campbell Barton [Fri, 28 Jun 2013 21:24:38 +0000 (21:24 +0000)]
replace LATTICE_PT macro with BKE_lattice_index_from_uvw().

8 years agofix regression since early 2.5x, there was no way to copy library linked objects.
Campbell Barton [Fri, 28 Jun 2013 19:33:58 +0000 (19:33 +0000)]
fix regression since early 2.5x, there was no way to copy library linked objects.

8 years agofix for crash linking fonts to other objects with linked obdata (link, undo would...
Campbell Barton [Fri, 28 Jun 2013 18:39:39 +0000 (18:39 +0000)]
fix for crash linking fonts to other objects with linked obdata (link, undo would crash).

8 years agoview-selected didnt work for metaballs in object mode (radius from previous commit...
Campbell Barton [Fri, 28 Jun 2013 18:19:55 +0000 (18:19 +0000)]
view-selected didnt work for metaballs in object mode (radius from previous commit was 2x too large too).

8 years agoFix #35904: on Windows force NVidia Optimus, which does automatic graphics
Brecht Van Lommel [Fri, 28 Jun 2013 17:58:48 +0000 (17:58 +0000)]
Fix #35904: on Windows force NVidia Optimus, which does automatic graphics
switching between an integrated Intel and a dedicated NVidia card, to use the
dedicated card for Blender.

A more portable and general solution would be nice, but it's all I could find:
http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf

8 years agoFix #35551: the topology mirror setting affected shape key and vertex group but
Brecht Van Lommel [Fri, 28 Jun 2013 17:13:09 +0000 (17:13 +0000)]
Fix #35551: the topology mirror setting affected shape key and vertex group but
this was confusing as there was no setting visible for it. Now these menus
contain an entry to mirror without and with topology mirror.

8 years agoweight Paint: moved Auto Normalize and Multipaint options below Blend selector
Gaia Clary [Fri, 28 Jun 2013 17:10:25 +0000 (17:10 +0000)]
weight Paint: moved Auto Normalize and Multipaint options below Blend selector

8 years agofix for crash when setting the cursor in background mode.
Campbell Barton [Fri, 28 Jun 2013 16:37:39 +0000 (16:37 +0000)]
fix for crash when setting the cursor in background mode.

8 years agotest operator script, add ability to load files from a path while testing operators.
Campbell Barton [Fri, 28 Jun 2013 16:30:34 +0000 (16:30 +0000)]
test operator script, add ability to load files from a path while testing operators.

8 years agofix [#35860] crash if pressing <F8> in import dialog
Campbell Barton [Fri, 28 Jun 2013 16:15:44 +0000 (16:15 +0000)]
fix [#35860] crash if pressing <F8> in import dialog
disallow reloading scripts while running modal, python operators.

8 years agoFix #35412: blender internal "from dupli" texture coordinates not working with
Brecht Van Lommel [Fri, 28 Jun 2013 16:06:55 +0000 (16:06 +0000)]
Fix #35412: blender internal "from dupli" texture coordinates not working with
particles in linked groups.

8 years agochanged Pulldown box label for clarity
Gaia Clary [Fri, 28 Jun 2013 15:12:54 +0000 (15:12 +0000)]
changed Pulldown box label for clarity

8 years agoFix: blender internal transparent shadows were not influenced by object color alpha.
Brecht Van Lommel [Fri, 28 Jun 2013 15:00:05 +0000 (15:00 +0000)]
Fix: blender internal transparent shadows were not influenced by object color alpha.

8 years agoFix #35902: build navigation mesh crash with multiple meshes selected.
Brecht Van Lommel [Fri, 28 Jun 2013 14:15:14 +0000 (14:15 +0000)]
Fix #35902: build navigation mesh crash with multiple meshes selected.

8 years agoFix #35900: image editor save multilayer EXR was not using the compression
Brecht Van Lommel [Fri, 28 Jun 2013 13:13:45 +0000 (13:13 +0000)]
Fix #35900: image editor save multilayer EXR was not using the compression
codec specified by the user.

8 years agoFix #35896: cycles crash with OSL image textures and viewport + preview render
Brecht Van Lommel [Fri, 28 Jun 2013 13:05:21 +0000 (13:05 +0000)]
Fix #35896: cycles crash with OSL image textures and viewport + preview render
running at the same time.

8 years agoFix #35884: crash opening .blend with generated color grid image and preview render.
Brecht Van Lommel [Fri, 28 Jun 2013 13:05:15 +0000 (13:05 +0000)]
Fix #35884: crash opening .blend with generated color grid image and preview render.

Printing text on the color grid image would initialize font glyphs from a thread at
the same time as the UI, causing conflicts. The freetype glyph renderer needs to be
mutex locked because it uses a shared buffer internally even when rendering for
different fonts. Also needed to change the image generate function to use the render
monospace font to avoid conflicts in blenfont.

What's still weak in the blenfont API is that there is no distinction between a font
and a thread using that font to render with some particular size, style, etc.

8 years agoview-select wasn't working for metaballs.
Campbell Barton [Fri, 28 Jun 2013 06:54:49 +0000 (06:54 +0000)]
view-select wasn't working for metaballs.

8 years agofix [#35901] Hooks on armature bones are calculated in wrong space
Campbell Barton [Fri, 28 Jun 2013 06:00:38 +0000 (06:00 +0000)]
fix [#35901] Hooks on armature bones are calculated in wrong space

8 years agoavoid crashes running screendump and screen editing operators in background mode...
Campbell Barton [Fri, 28 Jun 2013 05:39:05 +0000 (05:39 +0000)]
avoid crashes running screendump and screen editing operators in background mode. (not that these would be useful but better not crash)

8 years agoFix #35808: blender internal viewport with freestyle would keep continuously
Brecht Van Lommel [Thu, 27 Jun 2013 22:13:40 +0000 (22:13 +0000)]
Fix #35808: blender internal viewport with freestyle would keep continuously
rerendering for no reason.

Update tags were not being done in the proper Main database.

8 years agofix for out of bounds read in BLI_path_rel
Campbell Barton [Thu, 27 Jun 2013 20:47:59 +0000 (20:47 +0000)]
fix for out of bounds read in BLI_path_rel

8 years agoIK plugin range check was wrong, could do out of bounds reads.
Campbell Barton [Thu, 27 Jun 2013 19:52:50 +0000 (19:52 +0000)]
IK plugin range check was wrong, could do out of bounds reads.

8 years agoFix: Check for locked Vertex Group (returned true where false was expected)
Gaia Clary [Thu, 27 Jun 2013 18:23:03 +0000 (18:23 +0000)]
Fix: Check for locked Vertex Group (returned true where false was expected)

8 years agofix for memory leak in vgroup_copy_active_to_sel
Campbell Barton [Thu, 27 Jun 2013 17:11:23 +0000 (17:11 +0000)]
fix for memory leak in vgroup_copy_active_to_sel

8 years agoMerged revision(s) 57768-57827 from trunk/blender into soc-2013-dingto
Thomas Dinges [Thu, 27 Jun 2013 16:16:54 +0000 (16:16 +0000)]
Merged revision(s) 57768-57827 from trunk/blender into soc-2013-dingto

8 years agoCycles / Ramp closures:
Thomas Dinges [Thu, 27 Jun 2013 16:08:06 +0000 (16:08 +0000)]
Cycles / Ramp closures:
* Fix crash with negative values in Phong Ramp, and add some checks to survive INF and NAN values.

Patch by Brecht and myself.

8 years agoCode cleanup / Cycles:
Thomas Dinges [Thu, 27 Jun 2013 15:48:16 +0000 (15:48 +0000)]
Code cleanup / Cycles:
* Some cleanup for castings.

8 years agocorrect previous startup.blend - r57698 (which disabled cycles by accident).
Campbell Barton [Thu, 27 Jun 2013 15:40:32 +0000 (15:40 +0000)]
correct previous startup.blend - r57698 (which disabled cycles by accident).
also correct sequencer grid theme color.

8 years agoFix #35809: dragging a non-active node in the node editor did not work reliably.
Brecht Van Lommel [Thu, 27 Jun 2013 15:07:27 +0000 (15:07 +0000)]
Fix #35809: dragging a non-active node in the node editor did not work reliably.
Disabled timer events from the properties editor were cancelling gestures.

8 years agoFix #35802: searchbox menu not opening when opened from a popup near the bottom
Brecht Van Lommel [Thu, 27 Jun 2013 14:30:26 +0000 (14:30 +0000)]
Fix #35802: searchbox menu not opening when opened from a popup near the bottom
of the window.

8 years agoFix #35890: memory leak in OS X ghost locale detection.
Brecht Van Lommel [Thu, 27 Jun 2013 13:24:55 +0000 (13:24 +0000)]
Fix #35890: memory leak in OS X ghost locale detection.

8 years agoBlender 2.68 Release maintenance:
Thomas Dinges [Thu, 27 Jun 2013 11:30:53 +0000 (11:30 +0000)]
Blender 2.68 Release maintenance:
* Update readme and release-log links to 2.68.

8 years agoFix a few DPI/retina scaling issues in the graph editor and movie clip editor.
Brecht Van Lommel [Thu, 27 Jun 2013 11:29:53 +0000 (11:29 +0000)]
Fix a few DPI/retina scaling issues in the graph editor and movie clip editor.

Patch #35889 by David Jeske.

8 years agofix [#35884] evil bge.types.BL_Shader.setUniformMatrix3()
Campbell Barton [Thu, 27 Jun 2013 07:49:20 +0000 (07:49 +0000)]
fix [#35884] evil bge.types.BL_Shader.setUniformMatrix3()

8 years agoChanged Tool Tip for clarity
Gaia Clary [Thu, 27 Jun 2013 07:03:40 +0000 (07:03 +0000)]
Changed Tool Tip for clarity

8 years agofix for adding nodes with a DPI besides 72 causing offset.
Campbell Barton [Thu, 27 Jun 2013 06:49:23 +0000 (06:49 +0000)]
fix for adding nodes with a DPI besides 72 causing offset.

8 years agoAdded checks to Vertex Groups panel to respect locked Vertex Groups
Gaia Clary [Thu, 27 Jun 2013 06:33:01 +0000 (06:33 +0000)]
Added checks to Vertex Groups panel to respect locked Vertex Groups

8 years agomake screenshot poll for background mode.
Campbell Barton [Thu, 27 Jun 2013 06:21:10 +0000 (06:21 +0000)]
make screenshot poll for background mode.

8 years agofix for crash reading from a freed scene when exiting blender.
Campbell Barton [Thu, 27 Jun 2013 06:16:31 +0000 (06:16 +0000)]
fix for crash reading from a freed scene when exiting blender.

8 years agofix for recently added active-vertex weight operators crashing on lattice objects...
Campbell Barton [Thu, 27 Jun 2013 05:39:02 +0000 (05:39 +0000)]
fix for recently added active-vertex weight operators crashing on lattice objects in edit mode.

8 years agofix for incorrect selection when running MESH_OT_loop_to_region, running wire-frame...
Campbell Barton [Thu, 27 Jun 2013 05:19:25 +0000 (05:19 +0000)]
fix for incorrect selection when running MESH_OT_loop_to_region, running wire-frame operator directly after would crash.

8 years agouse common suffix's for exec/poll functions in recently added vertex-group operators.
Campbell Barton [Thu, 27 Jun 2013 04:41:04 +0000 (04:41 +0000)]
use common suffix's for exec/poll functions in recently added vertex-group operators.

8 years agofix for zero length normalize before scanfill for meshes and other minor changes.
Campbell Barton [Thu, 27 Jun 2013 04:32:44 +0000 (04:32 +0000)]
fix for zero length normalize before scanfill for meshes and other minor changes.

8 years ago3d text tool - 'insert lorem' was crashing, also add this to the text menu.
Campbell Barton [Thu, 27 Jun 2013 04:18:01 +0000 (04:18 +0000)]
3d text tool - 'insert lorem' was crashing, also add this to the text menu.

8 years agofix for old bug, select more in a nurbs surface would crash (under allocing).
Campbell Barton [Thu, 27 Jun 2013 03:57:59 +0000 (03:57 +0000)]
fix for old bug, select more in a nurbs surface would crash (under allocing).

8 years agopep8 cleanup
Campbell Barton [Thu, 27 Jun 2013 03:05:19 +0000 (03:05 +0000)]
pep8 cleanup

8 years ago- remove edge collapse loop operator (now replaced by dissolve).
Campbell Barton [Thu, 27 Jun 2013 01:10:19 +0000 (01:10 +0000)]
- remove edge collapse loop operator (now replaced by dissolve).
- fix missing null pointer check from own recent changes.
- add asserts if BLI path functions are given wrong id's

8 years agofix for python api bug: assigning the wrong size array to an RNA property wasn't...
Campbell Barton [Thu, 27 Jun 2013 01:01:11 +0000 (01:01 +0000)]
fix for python api bug: assigning the wrong size array to an RNA property wasn't checking the length and could crash, eg:
  mesh.polygons[0].vertices = (10,)

8 years agoremove redundant casts
Campbell Barton [Thu, 27 Jun 2013 00:37:42 +0000 (00:37 +0000)]
remove redundant casts

8 years agoCycles:
Thomas Dinges [Thu, 27 Jun 2013 00:03:48 +0000 (00:03 +0000)]
Cycles:
* Assure SSE2 intrinsics are also used on SSE3 CPUs and x86.

8 years agoCode cleanup: cycles
Brecht Van Lommel [Wed, 26 Jun 2013 23:29:33 +0000 (23:29 +0000)]
Code cleanup: cycles
* Reshuffle SSE #ifdefs to try to avoid compilation errors enabling SSE on 32 bit.
* Remove CUDA kernel launch size exception on Mac, is not needed.
* Make OSL file compilation quiet like c/cpp files.

8 years ago* Comment out change from r57790 to fix compilation for now.
Thomas Dinges [Wed, 26 Jun 2013 23:15:52 +0000 (23:15 +0000)]
* Comment out change from r57790 to fix compilation for now.

8 years agoCycles / Brick texture:
Thomas Dinges [Wed, 26 Jun 2013 23:08:18 +0000 (23:08 +0000)]
Cycles / Brick texture:
* Avoid some unneeded int castings, they were only needed in the original Texture Nodes implementation as custom1 and custom2 were shorts.

8 years agoAdded checks to vertex Weight editor to respect locked Vertex Groups
Gaia Clary [Wed, 26 Jun 2013 22:29:31 +0000 (22:29 +0000)]
Added checks to vertex Weight editor to respect locked Vertex Groups

8 years agoCycles / SSE2:
Thomas Dinges [Wed, 26 Jun 2013 22:12:23 +0000 (22:12 +0000)]
Cycles / SSE2:
* kernel_sse2 was built without actual SSE2 intrinsics on x86 systems.

8 years agoBM_face_legal_splits - perform calculations in 2d (was using 3d vectors for all 2d...
Campbell Barton [Wed, 26 Jun 2013 21:47:08 +0000 (21:47 +0000)]
BM_face_legal_splits - perform calculations in 2d (was using 3d vectors for all 2d operations)

8 years agoavoid calling axis_dominant_v3_to_m3 twice from BM_face_legal_splits
Campbell Barton [Wed, 26 Jun 2013 21:17:10 +0000 (21:17 +0000)]
avoid calling axis_dominant_v3_to_m3 twice from BM_face_legal_splits

8 years agoFix #35882: render to image editor, ctrl+up fullscreen, click back to previous
Brecht Van Lommel [Wed, 26 Jun 2013 20:51:41 +0000 (20:51 +0000)]
Fix #35882: render to image editor, ctrl+up fullscreen, click back to previous
did not work.

8 years agoFurther fix for #35880: theme color of enabled option buttons in popups was still
Brecht Van Lommel [Wed, 26 Jun 2013 20:28:12 +0000 (20:28 +0000)]
Further fix for #35880: theme color of enabled option buttons in popups was still
controlled by the wrong color, now it's controlled by "Menu Back" text color. This
is somewhat confusing but we like some other widgets the standard colors do not
work well on the dark background of popups.

8 years agoremove bmesh arg from BM_face_legal_splits(), don't use a bmesh iterator.
Campbell Barton [Wed, 26 Jun 2013 20:15:02 +0000 (20:15 +0000)]
remove bmesh arg from BM_face_legal_splits(), don't use a bmesh iterator.

8 years agoFix #35883: freestyle + envmap render crashed.
Brecht Van Lommel [Wed, 26 Jun 2013 19:23:03 +0000 (19:23 +0000)]
Fix #35883: freestyle + envmap render crashed.

8 years agofix [#33068] Can't paint weights of some vertices in some situations.
Campbell Barton [Wed, 26 Jun 2013 18:40:55 +0000 (18:40 +0000)]
fix [#33068] Can't paint weights of some vertices in some situations.

old limitation where you could only paint onto one side of a mirrored mesh (weight paint, vertex paint).

8 years agoremove unused struct
Campbell Barton [Wed, 26 Jun 2013 16:59:58 +0000 (16:59 +0000)]
remove unused struct

8 years agoFix #35365 Texture cloning not behaving correctly in perspective view
Antony Riakiotakis [Wed, 26 Jun 2013 14:28:39 +0000 (14:28 +0000)]
Fix #35365 Texture cloning not behaving correctly in perspective view

This issue was caused by doing pespective interpolation of clone uv
coordinates in perspective view. To fix this we need to use perspective
correction for screen coordinates, but return regular barycentric
weights back for clone layer uv coordinate interpolation.

8 years agoStyle cleanup (indent of switch/case in own code).
Bastien Montagne [Wed, 26 Jun 2013 13:22:25 +0000 (13:22 +0000)]
Style cleanup (indent of switch/case in own code).

8 years agoUpdate osl magic number when updating version ;)
Bastien Montagne [Wed, 26 Jun 2013 12:37:48 +0000 (12:37 +0000)]
Update osl magic number when updating version ;)

8 years agoFix #35879: missing 3D viewport redraws when changing lamp settings, after recent
Brecht Van Lommel [Wed, 26 Jun 2013 12:33:30 +0000 (12:33 +0000)]
Fix #35879: missing 3D viewport redraws when changing lamp settings, after recent
changes to avoid unnecessary redraws.

8 years agoFix #35880: popup menus like F6 redo did not use the right theme color for
Brecht Van Lommel [Wed, 26 Jun 2013 12:24:36 +0000 (12:24 +0000)]
Fix #35880: popup menus like F6 redo did not use the right theme color for
highlighted text, it should use the UI instead of 3D view color.

8 years agoFix Cycles OpenCL issue if context/program creation fails, mistake by me,
Brecht Van Lommel [Wed, 26 Jun 2013 12:24:33 +0000 (12:24 +0000)]
Fix Cycles OpenCL issue if context/program creation fails, mistake by me,
patch #35866 by Doug Gale to fix it.

8 years agoMerged revision(s) 57671-57767 from trunk/blender into soc-2013-dingto
Thomas Dinges [Wed, 26 Jun 2013 11:46:55 +0000 (11:46 +0000)]
Merged revision(s) 57671-57767 from trunk/blender into soc-2013-dingto

8 years agoFix #35583 Smooth brush ignores hidden parts
Antony Riakiotakis [Wed, 26 Jun 2013 11:39:48 +0000 (11:39 +0000)]
Fix #35583 Smooth brush ignores hidden parts

The bug only exists for multires smoothing. Other cases were handled by
BKE_pbvh_vertex_iter_begin, which culled hidden parts accordingly. Added
a manual check on the multires smoothing code.

8 years agoInstall Deps script:
Thomas Dinges [Wed, 26 Jun 2013 11:30:37 +0000 (11:30 +0000)]
Install Deps script:
* Use recent OSL 1.3.2 release.

8 years agoFix #34837 Texture Painting using Face Selection Mask fails to show
Antony Riakiotakis [Wed, 26 Jun 2013 10:14:30 +0000 (10:14 +0000)]
Fix #34837 Texture Painting using Face Selection Mask fails to show
texture if more than 1 texture is used

The problem here is that no flushing is done when the texface image
changes between rendered triangles. Added a compare function and
slightly modified the draw_tface_mapped__set_draw callback to compliant
with the new user data.