blender.git
4 years agoSupport displaying metadata for images in sequencer preview windows (not
Antony Riakiotakis [Mon, 4 May 2015 10:17:49 +0000 (12:17 +0200)]
Support displaying metadata for images in sequencer preview windows (not
backdrop)

4 years agoBGE Player: Fix compilation error after cleanup commit da8a62a
Sergey Sharybin [Mon, 4 May 2015 09:38:46 +0000 (14:38 +0500)]
BGE Player: Fix compilation error after cleanup commit da8a62a

4 years agoFix T29029: Grease pencil fails in Quad View
Campbell Barton [Mon, 4 May 2015 09:11:08 +0000 (19:11 +1000)]
Fix T29029: Grease pencil fails in Quad View

4 years agoFreestyle: Compilation error fix after recent changes in BKE_object_add()
Sergey Sharybin [Mon, 4 May 2015 08:51:51 +0000 (13:51 +0500)]
Freestyle: Compilation error fix after recent changes in BKE_object_add()

4 years agoCMake: Only consider it INFO is ld.gold is missing
Campbell Barton [Mon, 4 May 2015 08:33:37 +0000 (18:33 +1000)]
CMake: Only consider it INFO is ld.gold is missing

4 years agoCorrect own error in recent quad-view ruler fix
Campbell Barton [Mon, 4 May 2015 08:32:47 +0000 (18:32 +1000)]
Correct own error in recent quad-view ruler fix

4 years agoFix Buttons context, invalid object data access
Campbell Barton [Mon, 4 May 2015 08:02:56 +0000 (18:02 +1000)]
Fix Buttons context, invalid object data access

Another instance of T44376.
Crash where the Python context would access a stale pointer to the active object.

4 years agoButton Space: clear pin flag when NULL'ing pointer
Campbell Barton [Mon, 4 May 2015 06:12:12 +0000 (16:12 +1000)]
Button Space: clear pin flag when NULL'ing pointer

4 years agoFix T44376: Buttons context, invalid data access
Campbell Barton [Mon, 4 May 2015 05:07:24 +0000 (15:07 +1000)]
Fix T44376: Buttons context, invalid data access

Removing a scene from the buttons window would crash from a Python operator.

4 years agoCleanup: WM_main_remove_notifier_reference
Campbell Barton [Mon, 4 May 2015 02:40:38 +0000 (12:40 +1000)]
Cleanup: WM_main_remove_notifier_reference

Assumed the `reference` pointer is an ID, currently true, but may not always be.
Add a callback specifically for this purpose since cleaning up notifiers and space-types are different operations.

4 years agoCleanup: naming for callback wrappers
Campbell Barton [Mon, 4 May 2015 02:29:38 +0000 (12:29 +1000)]
Cleanup: naming for callback wrappers

4 years agoRemove redundant outliner lookup freeing objects
Campbell Barton [Mon, 4 May 2015 05:55:52 +0000 (15:55 +1000)]
Remove redundant outliner lookup freeing objects

4 years agoAdd name argument to data creation API calls
Campbell Barton [Mon, 4 May 2015 02:25:33 +0000 (12:25 +1000)]
Add name argument to data creation API calls

Was adding then renaming, unnecessarily.

4 years agoBGE: Added 'ghost' arg to KX_GameObject.suspendDynamics() method
Sybren A. Stüvel [Mon, 4 May 2015 04:04:09 +0000 (12:04 +0800)]
BGE: Added 'ghost' arg to KX_GameObject.suspendDynamics() method

The implementation of this 'ghost' argument already existed in the C++
source, but wasn't exposed to Python yet.

4 years agoBGE: Fix: Activate collision mask/group in UI.
Porteries Tristan [Sun, 3 May 2015 17:12:45 +0000 (19:12 +0200)]
BGE: Fix: Activate collision mask/group in UI.

4 years agoFix typos.
Tamito Kajiyama [Sun, 8 Mar 2015 07:47:30 +0000 (16:47 +0900)]
Fix typos.

4 years agoRigidbody: Fix viewport update when changing collision shape in toolbar
Sergej Reich [Sun, 3 May 2015 15:52:54 +0000 (17:52 +0200)]
Rigidbody: Fix viewport update when changing collision shape in toolbar

4 years agoFix T44591: Set PBone Group operator did not handled predifined group index in its...
Bastien Montagne [Sun, 3 May 2015 14:51:16 +0000 (16:51 +0200)]
Fix T44591: Set PBone Group operator did not handled predifined group index in its invoke func.

4 years agoFix T44185, Fix T44090: hair texture density working unreliable.
Krzysztof Recko [Sun, 3 May 2015 14:01:07 +0000 (16:01 +0200)]
Fix T44185, Fix T44090: hair texture density working unreliable.

"Unexisting" particles must be freed after the unexist flag has been set,
which was no longer the case after 78c491e62a5.

Reviewers: brecht

Differential Revision: https://developer.blender.org/D1213

4 years agoFix T41739: 3D view solid draw mode missing some material node updates.
Brecht Van Lommel [Sun, 3 May 2015 13:36:47 +0000 (15:36 +0200)]
Fix T41739: 3D view solid draw mode missing some material node updates.

4 years agoFix T41893: inconsistent color management on sculpt texture nodes previews.
Brecht Van Lommel [Sun, 3 May 2015 13:06:17 +0000 (15:06 +0200)]
Fix T41893: inconsistent color management on sculpt texture nodes previews.

4 years agoCleanup: rename clear_skin & clear_mask operators to skin_clear and mask_clear.
Bastien Montagne [Sun, 3 May 2015 13:18:27 +0000 (15:18 +0200)]
Cleanup: rename clear_skin & clear_mask operators to skin_clear and mask_clear.

So that they match all other op names around - and sensible logic as well.

4 years agoFix T44589: No way to add a skin data layer manualy.
Bastien Montagne [Sun, 3 May 2015 13:09:48 +0000 (15:09 +0200)]
Fix T44589: No way to add a skin data layer manualy.

There are several ways to end up with an object with skin modifier, but no
skin data on the geometry. So we need an operator to add it by hands.

Also tweaked a bit UI of this modifier.

4 years agoWe do need to transform lnors in BKE_mesh_transform(), much handy for scripts.
Bastien Montagne [Sun, 3 May 2015 09:55:58 +0000 (11:55 +0200)]
We do need to transform lnors in BKE_mesh_transform(), much handy for scripts.

4 years agoAdded name attribute to instance_geometry nodes (request for Second Life)
Gaia Clary [Fri, 1 May 2015 10:15:55 +0000 (12:15 +0200)]
Added name attribute to instance_geometry nodes (request for Second Life)

4 years agoBMesh: rip-tool can now split off isolated fans
Campbell Barton [Sat, 2 May 2015 20:15:51 +0000 (06:15 +1000)]
BMesh: rip-tool can now split off isolated fans

Useful since there wasn't a good way to do this previously.

4 years agoBMesh: utility to split isolated loop regions
Campbell Barton [Sat, 2 May 2015 20:15:24 +0000 (06:15 +1000)]
BMesh: utility to split isolated loop regions

4 years agoCleanup: redundant vars
Campbell Barton [Sat, 2 May 2015 19:20:36 +0000 (05:20 +1000)]
Cleanup: redundant vars

4 years agoFix rna default value in BGE UI.
Porteries Tristan [Sat, 2 May 2015 17:46:27 +0000 (19:46 +0200)]
Fix rna default value in BGE UI.

4 years agoBMesh: rework BM_vert_is_manifold (simplify logic)
Campbell Barton [Sat, 2 May 2015 18:40:02 +0000 (04:40 +1000)]
BMesh: rework BM_vert_is_manifold (simplify logic)

- simplify boundary handling (walk from boundary - no need to reset walking)
- early exit when the vert has >2 boundaries
- use BM_vert_step_fan_loop to walk the fan

4 years agoBMesh: replace radial count with simple checks
Campbell Barton [Sat, 2 May 2015 07:12:32 +0000 (17:12 +1000)]
BMesh: replace radial count with simple checks

4 years agoSound now returns even if file fails to load
Campbell Barton [Sat, 2 May 2015 17:28:43 +0000 (03:28 +1000)]
Sound now returns even if file fails to load

With various codecs its hard to ensure a sound will load or not.

4 years agoFix ghash assert during BGE libload.
Porteries Tristan [Sat, 2 May 2015 16:02:19 +0000 (18:02 +0200)]
Fix ghash assert during BGE libload.

The assert message was caused by the multi call of BLO_library_append_begin in KX_BlenderSceneConverter::LinkBlendFile.

4 years agoFix T44586: Viet language problem for Blender Interface
Bastien Montagne [Sat, 2 May 2015 14:49:12 +0000 (16:49 +0200)]
Fix T44586: Viet language problem for Blender Interface

We were missing many of the complex diacritics combinations in latin extended additional code block...

Alawyas a pleasure to edit this font... :|

4 years agoCMake: use ld.gold linker when available
Campbell Barton [Sat, 2 May 2015 12:11:29 +0000 (22:11 +1000)]
CMake: use ld.gold linker when available

Gives noticeable speedup linking blender

4 years agoTurn bpy.utils into a package, so that we can easily add submodules to it.
Bastien Montagne [Sat, 2 May 2015 08:38:51 +0000 (10:38 +0200)]
Turn bpy.utils into a package, so that we can easily add submodules to it.

4 years agoBMesh: BM_mesh_edgesplit
Campbell Barton [Sat, 2 May 2015 06:05:32 +0000 (16:05 +1000)]
BMesh: BM_mesh_edgesplit

Did quite a few checks not to tag bad splits (which wasn't working perfectly)

Instead rely on BM_vert_separate not to create invalid geometry.

4 years agoBMesh: BM_vert_separate double edge fix
Campbell Barton [Sat, 2 May 2015 06:04:02 +0000 (16:04 +1000)]
BMesh: BM_vert_separate double edge fix

Splitting edges could give duplicates.

4 years agoBMesh: return error on mesh validate
Campbell Barton [Sat, 2 May 2015 05:52:27 +0000 (15:52 +1000)]
BMesh: return error on mesh validate

4 years agoCleanup: bmesh src/dst order in API args
Campbell Barton [Fri, 1 May 2015 09:30:41 +0000 (19:30 +1000)]
Cleanup: bmesh src/dst order in API args

4 years agoCleanup: use function attrs for BMesh inline funcs
Campbell Barton [Fri, 1 May 2015 09:16:58 +0000 (19:16 +1000)]
Cleanup: use function attrs for BMesh inline funcs

4 years agoObject Align Operator: Make it use modifiers in high quality bounding box calculation
Daniel Salazar [Fri, 1 May 2015 22:17:23 +0000 (16:17 -0600)]
Object Align Operator: Make it use modifiers in high quality bounding box calculation

4 years agoUpdated install_deps' Collada to 3335ac164e68b2512a40914b14c74db260e6ff7d.
Bastien Montagne [Fri, 1 May 2015 19:18:08 +0000 (21:18 +0200)]
Updated install_deps' Collada to 3335ac164e68b2512a40914b14c74db260e6ff7d.

4 years agoOSX: remove collada from fading out 32bit buildbot
Jens Verwiebe [Fri, 1 May 2015 19:09:21 +0000 (21:09 +0200)]
OSX: remove collada from fading out 32bit buildbot

4 years agoFix T44353, Fix T43981: random particle distribution overlaps if number is greater...
Brecht Van Lommel [Fri, 1 May 2015 17:14:28 +0000 (19:14 +0200)]
Fix T44353, Fix T43981: random particle distribution overlaps if number is greater than 256.

4 years agoFix T43711: dual quaternion deform bug with shearing in deform matrix.
Brecht Van Lommel [Fri, 1 May 2015 14:19:06 +0000 (16:19 +0200)]
Fix T43711: dual quaternion deform bug with shearing in deform matrix.

This also increases the tolerances in is_orthogonal / is_orthonormal functions,
which were much too low for practical purposes.

4 years agoAuto pack: don't show "No new files have been packed" on every .blend file save.
Brecht Van Lommel [Fri, 1 May 2015 14:03:45 +0000 (16:03 +0200)]
Auto pack: don't show "No new files have been packed" on every .blend file save.

4 years agoFix T44433: print "unknown" rather than "1970-01-01" when .blend date is unknown.
Brecht Van Lommel [Fri, 1 May 2015 13:52:53 +0000 (15:52 +0200)]
Fix T44433: print "unknown" rather than "1970-01-01" when .blend date is unknown.

4 years agoFix a couple of harmless compiler warnings.
Brecht Van Lommel [Fri, 1 May 2015 17:17:14 +0000 (19:17 +0200)]
Fix a couple of harmless compiler warnings.

4 years agoFix T44560: Merge Collapse tool - UVs operator panel option ignored with Collapse...
Bastien Montagne [Fri, 1 May 2015 15:10:39 +0000 (17:10 +0200)]
Fix T44560: Merge Collapse tool - UVs operator panel option ignored with Collapse but not with other merge types.

Was missing parameter for collapse bmesh operator...

4 years agoFix T44577: writing tessellated cddata when we should not...
Bastien Montagne [Fri, 1 May 2015 14:11:55 +0000 (16:11 +0200)]
Fix T44577: writing tessellated cddata when we should not...

Own mistake in rBf75c89b3f42ffac51603e6e53459f9d94a8782cc...

4 years agoUse mono font for metadata
Antony Riakiotakis [Fri, 1 May 2015 12:27:44 +0000 (14:27 +0200)]
Use mono font for metadata

4 years agoFix T44565 World background artifacts when world shader is void (or
Antony Riakiotakis [Fri, 1 May 2015 10:06:05 +0000 (12:06 +0200)]
Fix T44565 World background artifacts when world shader is void (or
compilation fails).

4 years agoLeft some debug prints in here...
Joshua Leung [Fri, 1 May 2015 00:42:40 +0000 (12:42 +1200)]
Left some debug prints in here...

4 years agoFix T43867: Clicking outside the viewport exits now Grease Pencil "Continous Draw...
Joshua Leung [Fri, 1 May 2015 00:42:10 +0000 (12:42 +1200)]
Fix T43867: Clicking outside the viewport exits now Grease Pencil "Continous Draw" mode

When working with a pen only, it was previously impossible to exit Grease Pencil
draw mode (when continous drawing was enabled). Now, clicking outside the drawing region
(e.g. in the timeline, properties editor, or the header/properties/toolshelf regions)
where you are drawing will exit this mode.

Some corner cases to be aware of:
* When Region Overlap is enabled, clicking on the overlapping panels still exits
  draw mode (even though you can see behind the buttons)
* In the Nodes Editor, clicking on a node (while in drawmode) will still draw a
  dot/stroke. But, you can still exit drawmode by clicking on any of the panels
  (properties/toolshelf/header) mentioned earlier
* To cope with cases where the operator is launched from the toolshelf, the
  code now sets a new "active region" when the first stroke is performed
  (based on what region is under the cursor at the time of that stroke),
  overwriting the setting that got stored when invoking the operator (i.e. the toolshelf).
  This change doesn't have any real user-visible effects, other than making it possible for
  this fix to actually work without breaking that use case.

4 years agoBMesh: correct bmesh_edge_vert_swap
Campbell Barton [Thu, 30 Apr 2015 20:51:16 +0000 (06:51 +1000)]
BMesh: correct bmesh_edge_vert_swap

Missed swapping out loops.

4 years agoBMesh: add bmesh_disk_vert_replace
Campbell Barton [Thu, 30 Apr 2015 20:18:04 +0000 (06:18 +1000)]
BMesh: add bmesh_disk_vert_replace

4 years agoCleanup: typos
Campbell Barton [Thu, 30 Apr 2015 19:45:41 +0000 (05:45 +1000)]
Cleanup: typos

4 years agoData transfer - Loop Islands Hell Fixes.
Bastien Montagne [Thu, 30 Apr 2015 18:58:34 +0000 (20:58 +0200)]
Data transfer - Loop Islands Hell Fixes.

This commit fixes several issues:
* island_store->items_to_islands_num was reset each time we added a new island, this is stupid! Harmless too, though, afaikt.
* partial verts bvhtree (with several islands) was hugely over-allocated...
* we would 'leak' in neighbor islands when geometry itself was contiguous.
* best_nor_dot was used incorrectly, leading to smaller weights for better matching normal!

All those fixes are related to T44522 (through personal communications with reporter).

4 years agoUI: use enum for thumbnail size
Campbell Barton [Thu, 30 Apr 2015 15:49:58 +0000 (01:49 +1000)]
UI: use enum for thumbnail size

4 years agoCorrect warning
Campbell Barton [Thu, 30 Apr 2015 15:36:36 +0000 (01:36 +1000)]
Correct warning

4 years agoRNA defaults test
Campbell Barton [Thu, 30 Apr 2015 15:03:55 +0000 (01:03 +1000)]
RNA defaults test

Alternative to T32894, simple test which creates new data and compares with RNA defaults.

Can be used to keep the values in sync without having to maintain a large set of defines.

4 years agoBetter fix for T44556: Crash on the World Properties > Preview
Dalai Felinto [Thu, 30 Apr 2015 15:11:48 +0000 (12:11 -0300)]
Better fix for T44556: Crash on the World Properties > Preview

4 years agoRevert "Fix T44556: Crash on the World Properties > Preview"
Dalai Felinto [Thu, 30 Apr 2015 13:22:47 +0000 (10:22 -0300)]
Revert "Fix T44556: Crash on the World Properties > Preview"

This reverts commit 4bcc7a2ec6bf6937778a2227c7f938c50a0fafe5.

4 years agoPy/RNA: support to load and remove sounds
Campbell Barton [Thu, 30 Apr 2015 14:57:12 +0000 (00:57 +1000)]
Py/RNA: support to load and remove sounds

4 years agoFix opengl rendering always looking through camera
Antony Riakiotakis [Thu, 30 Apr 2015 13:06:10 +0000 (15:06 +0200)]
Fix opengl rendering always looking through camera

Actually check if we have a camera and looking through it before
rendering in multiview.

4 years agoFix T44439: outliner's treestore could keep invalid ID pointers, could crash on undo...
Bastien Montagne [Thu, 30 Apr 2015 12:04:41 +0000 (14:04 +0200)]
Fix T44439: outliner's treestore could keep invalid ID pointers, could crash on undo due to invalid mem access.

We cannot nuke treestore in readfile's `blo_lib_link_screen_restore()`, because this will
destroy all UI-state data (like opened/closed items, etc.).

Since we cannot know for sure whether an ID pointer from tselem->id is valid here, we
have to ensure they are never invalid, i.e. to always set them to NULL when we delete them.

To do so, this commit uses a similar approach as what already exists for ID references
in WM notifiers - it extends `free_notifier_reference_cb()` to also nullify those IDs in
all outliners.

Note that some ID types are not used(shown) by outliner currently, so `TREESTORE_ID_TYPE` macro
was added, that checks whether an ID is possibly used by outliner. Avoids a few searches
in whole tree whene deleting some IDs.

Reviewers: campbellbarton, sergey

Maniphest Tasks: T44439

Differential Revision: https://developer.blender.org/D1272

4 years agoMissed this last commit
Antony Riakiotakis [Thu, 30 Apr 2015 12:24:05 +0000 (14:24 +0200)]
Missed this last commit

4 years agoMinor tweaks to make fill and invert support gpixel operations
Antony Riakiotakis [Thu, 30 Apr 2015 11:52:25 +0000 (13:52 +0200)]
Minor tweaks to make fill and invert support gpixel operations

4 years agoCode Cleanup: Simplified insert_keyframe_button and delete_keyframe_button
Joshua Leung [Thu, 30 Apr 2015 10:58:53 +0000 (22:58 +1200)]
Code Cleanup: Simplified insert_keyframe_button and delete_keyframe_button

As a followup for the previous commit, do the same thing for the insert/delete
keyframe button operators as is done for the clear keyframes op. There really isn't
much need/reason for conducting the looping there, as those functions natively
handle this themselves already.

4 years agoCode Cleanup: Simplify Clear Keyframes operator's code
Joshua Leung [Thu, 30 Apr 2015 10:50:31 +0000 (22:50 +1200)]
Code Cleanup: Simplify Clear Keyframes operator's code

On second thought, the previous commit was just adding additional complexity which
wasn't needed, as the operator was wasting effort by doing this looping itself.

4 years agoFix T44558 - "Clear Keyframes" complains when operating on an array property and...
Joshua Leung [Thu, 30 Apr 2015 10:43:48 +0000 (22:43 +1200)]
Fix T44558 - "Clear Keyframes" complains when operating on an array property and it had deleted the action in the process

4 years agoCycles: Fix possible uninitialized XML read state which might cause crashes
Sergey Sharybin [Thu, 30 Apr 2015 10:46:09 +0000 (15:46 +0500)]
Cycles: Fix possible uninitialized XML read state which might cause crashes

4 years agoFix T44541 aka gigapixel image render support in blender.
Antony Riakiotakis [Thu, 30 Apr 2015 10:10:58 +0000 (12:10 +0200)]
Fix T44541 aka gigapixel image render support in blender.

Moral of the story: Make sure that size_t is used whenever pointer
arithmetic is involved. For images, that basically means whenever any
squared dimensions are involved. Casting an operand to size_t early in
the operation is usually sufficient to force the entire operation to
size_t.

There might still be places lurking where we don't support this
correctly. This has been tested with render pipeline, quite a few image
functions (meaning we can paint on such images now, albeit somewhat
slowly ;) ) and export to jpeg. Too many places in code to check so I
guess we'll be handling cases as they come.

Don't try this at home unless you have an immense ammount of RAM.
First GPixel render of suzanne in the multiverse can be found here:

http://download.blender.org/demo/test/suzanne-billion-pixel.jpg

Can be viewed from blender (takes about 3.3 GB after loading but may
take more during loading so 8GB might be more safe to try this).

4 years agoFix T44556: Crash on the World Properties > Preview
Sergey Sharybin [Thu, 30 Apr 2015 09:52:59 +0000 (14:52 +0500)]
Fix T44556: Crash on the World Properties > Preview

Issue was caused by de-referencing NULL pointer, rres did not have any
views because nothing was rendered yet.

Needs more closer look about where else such a de-reference could happen.

4 years agoFix T44548: Cycles Tube Mapping off / not compatible with BI
Sergey Sharybin [Thu, 30 Apr 2015 09:21:32 +0000 (14:21 +0500)]
Fix T44548: Cycles Tube Mapping off / not compatible with BI

Was a typo in original implementation, probably a result of some code reshuffle
happened for optimization reasons.

4 years agoView3D: expose size as a distance in units
Campbell Barton [Thu, 30 Apr 2015 08:45:47 +0000 (18:45 +1000)]
View3D: expose size as a distance in units

also note that size/rotation doesn't work for camera views. see T44511

4 years agoCMake: Solve compilation error from path with a space
Sergey Sharybin [Thu, 30 Apr 2015 07:55:52 +0000 (12:55 +0500)]
CMake: Solve compilation error from path with a space

4 years agoCorrect docstring
Campbell Barton [Wed, 29 Apr 2015 23:55:54 +0000 (09:55 +1000)]
Correct docstring

4 years agoCorrect missing break
Campbell Barton [Wed, 29 Apr 2015 22:18:32 +0000 (08:18 +1000)]
Correct missing break

4 years agoCleanup: style
Campbell Barton [Wed, 29 Apr 2015 22:07:15 +0000 (08:07 +1000)]
Cleanup: style

4 years agoCleanup: Update some comments and add ToDo.
Thomas Dinges [Wed, 29 Apr 2015 21:56:46 +0000 (23:56 +0200)]
Cleanup: Update some comments and add ToDo.

4 years agoCycles: Record all possible volume intersections for SSS and camera checks
Thomas Dinges [Wed, 29 Apr 2015 21:21:05 +0000 (23:21 +0200)]
Cycles: Record all possible volume intersections for SSS and camera checks

This replaces sequential ray moving followed with scene intersection with
single BVH traversal, which gives us all possible intersections.

Only implemented for CPU, due to qsort and a bigger memory usage on GPU
which we rather avoid. GPU still uses the regular bvh volume intersection code, while CPU now uses the new code.

This improves render performance for scenes with:
a) Camera inside volume mesh
b) SSS mesh intersecting a volume mesh/domain

In simple volume files (not much geometry) performance is roughly the same
(slightly faster). In files with a lot of geometry, the performance
increase is larger. bmps.blend with a volume shader and camera inside the
mesh, it renders ~10% faster here.

Patch by Sergey and myself.

Differential Revision: https://developer.blender.org/D1264

4 years agoFix T44484: Edge-split corrupts mesh
Campbell Barton [Wed, 29 Apr 2015 21:22:18 +0000 (07:22 +1000)]
Fix T44484: Edge-split corrupts mesh

Splitting non-manifold edges could produce duplicate edges.

4 years agoBMesh: use BM_face_loop_separate_multi for rip
Campbell Barton [Wed, 29 Apr 2015 20:23:01 +0000 (06:23 +1000)]
BMesh: use BM_face_loop_separate_multi for rip

Resolves bug over-splitting non-manifold connected edges.

4 years agoBMesh: add BM_face_loop_separate_multi
Campbell Barton [Wed, 29 Apr 2015 19:52:48 +0000 (05:52 +1000)]
BMesh: add BM_face_loop_separate_multi

New utility function to handle splitting off multiple loops from a face at once.

4 years agoBMesh: simplify/optimize loop splitting logic
Campbell Barton [Wed, 29 Apr 2015 16:37:21 +0000 (02:37 +1000)]
BMesh: simplify/optimize loop splitting logic

To split off a single loop, was splitting all fans off the vertex, then merging back together (except for one).

Now simply splits off one loop.

4 years agoBMesh: refactor edge-vert swapping into API call
Campbell Barton [Wed, 29 Apr 2015 16:25:32 +0000 (02:25 +1000)]
BMesh: refactor edge-vert swapping into API call

4 years agoBMesh: minor change to swap-vert api
Campbell Barton [Wed, 29 Apr 2015 15:45:20 +0000 (01:45 +1000)]
BMesh: minor change to swap-vert api

- assert if the verts not in the edge (all callers assume success)
- rename to bmesh_disk_vert_swap
- swap src/dst arg order.

4 years agoCycles: Fix wrong termination criteria in SSS volume stack update
Sergey Sharybin [Wed, 29 Apr 2015 20:20:17 +0000 (01:20 +0500)]
Cycles: Fix wrong termination criteria in SSS volume stack update

Another issue spotted with Thomas.

4 years agoCycles: Fix wrong order in object flags calculations
Sergey Sharybin [Wed, 29 Apr 2015 20:07:38 +0000 (01:07 +0500)]
Cycles: Fix wrong order in object flags calculations

Object flags are depending on bounding box which is only available after
mesh synchronization.

This was broken since 7fd4c44 which happened quite close to the release
and oddly enough was not sopped by anyone. Render test is coming for this.

Was spotted by Thomas Dinges while working on another patch.

4 years agoFix filename has "new render view" suffix reported by Jason van Gumster (Fweeb)
Dalai Felinto [Wed, 29 Apr 2015 19:35:19 +0000 (16:35 -0300)]
Fix filename has "new render view" suffix reported by Jason van Gumster (Fweeb)

Bug introduced in f8540d7fd5a47bc9d1d676d5aaaa0de379c71637

4 years agoFile browser - change thumbnails size with a slider
Bastien Montagne [Wed, 29 Apr 2015 19:25:34 +0000 (21:25 +0200)]
File browser - change thumbnails size with a slider

We can now scale from 32px up to 256px (default has been upgraded to 128px).
Thumbnails are now generated as 'large', i.e. 256px.

Previews are scaled up if necessary, unlike icons (for folders or files without preview images).

Note that .blend thumbnails themselves remain in 128px for now (they are embeded in .blend files,
not quite sure we want to make them four times bigger...).

Patch by DMS (Yaron Dames), with final edits by myself.

Reviewers: mont29

Subscribers: Severin, mont29

Differential Revision: https://developer.blender.org/D1260

4 years agoFix T44132: Crash after open EXR format
Sergey Sharybin [Wed, 29 Apr 2015 18:44:57 +0000 (23:44 +0500)]
Fix T44132: Crash after open EXR format

Was own mistake on adding Alpha socket for Combined pass.

4 years agoOSX: fix T44533, system_bookmarks not showing utf standard ( umlauts etc. )
Jens Verwiebe [Wed, 29 Apr 2015 18:07:38 +0000 (20:07 +0200)]
OSX: fix T44533, system_bookmarks not showing utf standard ( umlauts etc. )

4 years agoFix typo using interp_v3_v3v3 over float[2] variables...
Bastien Montagne [Wed, 29 Apr 2015 17:38:19 +0000 (19:38 +0200)]
Fix typo using interp_v3_v3v3 over float[2] variables...

Found by asan! ;)

4 years agoMake sure integer calculation uses large precision
Antony Riakiotakis [Wed, 29 Apr 2015 16:49:38 +0000 (18:49 +0200)]
Make sure integer calculation uses large precision

4 years agoRemove unused stubs
Sergey Sharybin [Wed, 29 Apr 2015 16:47:30 +0000 (21:47 +0500)]
Remove unused stubs

Noticed by TristanPorteries in IRC.

4 years agoCleanup: make grumpy asan happy and do not use `new []` to allocate data freed by...
Bastien Montagne [Wed, 29 Apr 2015 15:46:03 +0000 (17:46 +0200)]
Cleanup: make grumpy asan happy and do not use `new []` to allocate data freed by `free()`.

Probably nothing crucial, but asan build would crash on that stupid glitch... Annoying.

4 years agofix for double call to update callback in uiTemplateIconView
Ines Almeida [Wed, 29 Apr 2015 15:25:54 +0000 (16:25 +0100)]
fix for double call to update callback in uiTemplateIconView