blender.git
7 years agoMerging r57816 through r57896 from trunk into soc-2013-depsgraph_mt
Sergey Sharybin [Mon, 1 Jul 2013 09:07:21 +0000 (09:07 +0000)]
Merging r57816 through r57896 from trunk into soc-2013-depsgraph_mt

7 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!

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

7 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`

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

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

7 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

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

7 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)

7 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

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

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

7 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

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

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

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

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

7 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

7 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

7 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

7 years agoTowards threaded object update
Sergey Sharybin [Fri, 28 Jun 2013 21:58:56 +0000 (21:58 +0000)]
Towards threaded object update

This commit contains changes related on running function
BKE_object_handle_update_ex from multiple threads in order
to increase scene update time when having multiple
independent groups of objects.

Currently this required changes to two areas:

- scene.c, where scene_update_tagged_recursive is now using
  threads for updating the object

  There're some tricks to prevent threads from being spawned
  when it's not needed:

  * Threading will only happen if there're more than one CPU
    core.

  * Threading will happen only if there're more than single
    object which needed to be updated.

  There's currently one crappy part of the change: which is
  freeing object caches (derivedFinal, derivedDeform and so)
  from main thread. This is so because in case VBO are used
  freeing DM is not thread safe. This is because DrawObject
  used global array. Would look into possibility of making
  that code safe later.

  There're also currently some ifdef-ed debug-only code, which
  helps a lot troubleshooting whether everything is working
  fine. This code looks a bit ugly now, will either drop it
  later or make it more cleat.

  And one more thing: threaded update is CURRENTLY DISABLED.
  This is because of some thread-unsafe issues discovered
  while was working on this patch. Namely:

  * I have once a crash in Curve module. Wasn't been able
    to reproduce the crash, but could thing about some
    unsafe code there.

  * Virtual modifier list is not thread-safe (it uses static
    variables).

  * Armature modifier is also doesn't seem to be thread safe
    because of storing some temporary runtime data in actual
    armature.

  All this issues are to be solved next.

- depsgraph.c, where i've added a function which gives list
  of groups, each group contains objects and dependency is
  only allowed between objects inside one group.

  This is needed to make scheduling of objects easier, which
  means update threads will operate on groups, and will handle
  objects one-by-one inside group. Different threads will
  operate on different groups.

  Currently such groups will be generated on every update.
  Actually, on every run of scene_update_objects_threaded which
  only happens if there're objects marked for update. In the
  future we could consider storing such groups in graph itself,
  which will help saving CPU power on building such groups.
  But this is something to be discussed with Joshua first.

P.S. If you really want to test threaded update, you'll
     need to replace:

       #undef USE_THREADED_UPDATE

     with:

       #define USE_THREADED_UPDATE

7 years agoAllow some operators when interface is locked
Sergey Sharybin [Fri, 28 Jun 2013 21:58:52 +0000 (21:58 +0000)]
Allow some operators when interface is locked

Now it's possible to mark operator as safe to be used
in locked interface mode by adding OPTYPE_ALLOW_LOCKED
bit to operator template flags.

This bit is completely handled by wm_evem_system, not
with operator run routines, so it's still possible to
run operators from drivers and handlers.

Currently allowed image editor navigation and zooming.

7 years agoCode cleanup: replace bunch of ifdef+if(do_debug_handler) with
Sergey Sharybin [Fri, 28 Jun 2013 21:58:48 +0000 (21:58 +0000)]
Code cleanup: replace bunch of ifdef+if(do_debug_handler) with
a macro which checks all the stuff and keeps code easy to follow.

7 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().

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

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

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

7 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

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

7 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

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

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

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

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

7 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

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

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

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

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

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

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

7 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

7 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)

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

7 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

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

7 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)

7 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

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

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

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

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

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

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

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

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

7 years agoMerging r57729 through r57815 from trunk into soc-2013-depsgraph_mt
Sergey Sharybin [Thu, 27 Jun 2013 09:07:19 +0000 (09:07 +0000)]
Merging r57729 through r57815 from trunk into soc-2013-depsgraph_mt

7 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()

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

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

7 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

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

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

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

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

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

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

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

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

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

7 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

7 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,)

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

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

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

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

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

7 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

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

7 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)

7 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

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

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

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

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

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

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

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

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

7 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 ;)

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

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

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

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

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

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

7 years agoAvoid blender crash during collada export (when armature has animation data)
Gaia Clary [Wed, 26 Jun 2013 09:02:11 +0000 (09:02 +0000)]
Avoid blender crash during collada export (when armature has animation data)

7 years agoFix [#35750] list items in properties editor (text colors not following list item...
Bastien Montagne [Wed, 26 Jun 2013 07:28:55 +0000 (07:28 +0000)]
Fix [#35750] list items in properties editor (text colors not following list item theme).

Issue goes back since we stopped using LISTROW button to draw item's name (i.e. since we have custom buttons in list items!).

This commit:
* Adds a new flag to uiBlock, UI_BLOCK_LIST_ITEM, to mark blocks used for each list item.
* Adds a new button type, LISTLABEL, which basically behaves exactly as LABEL, but uses wcol_list_item color set.
* When uiItemL is called, it checks whether current block has UI_BLOCK_LIST_ITEM set, and if so, switch produced button to LISTLABEL type.
* Adds a new helper func, ui_layout_list_set_labels_active, called after the active list item has been "drawn", to set all LISTLABEL buttons as UI_SELECT.

Note custom widget_state_label() was removed, in interface_widgets.c, as it did nothing more than default widget_state().

Thanks to Brecht for the review and advices.

7 years agofix [#35507] BMesh module: Crash on to_mesh() if faces.layers.tex is used but no...
Campbell Barton [Wed, 26 Jun 2013 04:17:41 +0000 (04:17 +0000)]
fix [#35507] BMesh module: Crash on to_mesh() if faces.layers.tex is used but no loops.layers.uv

7 years agobmesh mirror operator was counting layers in inner loop for no good reason.
Campbell Barton [Wed, 26 Jun 2013 04:17:02 +0000 (04:17 +0000)]
bmesh mirror operator was counting layers in inner loop for no good reason.