blender.git
7 years agoAdd flag for bmesh docs
Campbell Barton [Tue, 9 Sep 2014 12:07:31 +0000 (22:07 +1000)]
Add flag for bmesh docs

7 years agoFix T41445: Inset creates separated UV's
Campbell Barton [Tue, 9 Sep 2014 08:54:50 +0000 (18:54 +1000)]
Fix T41445: Inset creates separated UV's

7 years agoCleanup: const correctness, no change to generated code.
Campbell Barton [Tue, 9 Sep 2014 06:12:07 +0000 (16:12 +1000)]
Cleanup: const correctness, no change to generated code.

7 years agoremove invalid comments
Campbell Barton [Tue, 9 Sep 2014 02:21:28 +0000 (12:21 +1000)]
remove invalid comments

7 years agoWarn when --engine arg isn't found
Campbell Barton [Mon, 8 Sep 2014 15:44:01 +0000 (01:44 +1000)]
Warn when --engine arg isn't found

7 years agoCMake: Add missing WITH_OPENIMAGEIO define
Campbell Barton [Mon, 8 Sep 2014 15:43:25 +0000 (01:43 +1000)]
CMake: Add missing WITH_OPENIMAGEIO define

7 years agoFix crash happening with external engines and dependent objects in an invisible layers
Sergey Sharybin [Mon, 8 Sep 2014 14:36:40 +0000 (20:36 +0600)]
Fix crash happening with external engines and dependent objects in an invisible layers

7 years agoFix T41744: Hidden keymap properties uneditable
Bastien Montagne [Mon, 8 Sep 2014 11:09:24 +0000 (21:09 +1000)]
Fix T41744: Hidden keymap properties uneditable

For UI & operator toolbar this makes sense,
but for keymaps - hidden props can make an important difference.

7 years agoFix T41573: Compositing reroute converts floats to red color
Bastien Montagne [Mon, 8 Sep 2014 10:27:00 +0000 (12:27 +0200)]
Fix T41573: Compositing reroute converts floats to red color

At compo level, only skip data type conversion if both ends of a link do not require it.

Thanks to Lukas for advices and review.

7 years agoFix T41703: Blender crashes trying to load character file.
Bastien Montagne [Mon, 8 Sep 2014 09:49:55 +0000 (11:49 +0200)]
Fix T41703: Blender crashes trying to load character file.

Core of the issue is that pointcache handling in depsgraph were (re-) tagging
for update some objects on hidden layers, when all their dependencies remained
untag.

Since we do not want to update objects on hidden layers, take this data into account
when flushing pointcache.

Investigations and org patch by self, reviews, advices and final patch by sergey, many thanks! :)

7 years agoAttempt to fix compilation error on ubuntu linux
Sergey Sharybin [Mon, 8 Sep 2014 08:28:50 +0000 (14:28 +0600)]
Attempt to fix compilation error on ubuntu linux

7 years agoFix T41746: WPaint: gradient+mirror fails
Campbell Barton [Mon, 8 Sep 2014 08:01:06 +0000 (18:01 +1000)]
Fix T41746: WPaint: gradient+mirror fails

7 years agoFix building as Python module (manpage-generation)
Campbell Barton [Mon, 8 Sep 2014 01:22:40 +0000 (11:22 +1000)]
Fix building as Python module (manpage-generation)

7 years agoComment out SVM fresnel_conductor() function for now, still unused.
Thomas Dinges [Sun, 7 Sep 2014 19:13:00 +0000 (21:13 +0200)]
Comment out SVM fresnel_conductor() function for now, still unused.

7 years agoCycles / OSL: Add a conductive fresnel shader template.
Thomas Dinges [Sun, 7 Sep 2014 16:28:59 +0000 (18:28 +0200)]
Cycles / OSL: Add a conductive fresnel shader template.

This adds a fresnel conductive OSL preset to the Text Editor. Based on a patch by Lukas Stockner.
Differential revision: https://developer.blender.org/D145

See the differential for details.

7 years agoSeveral tweaks for Quick Smoke:
Thomas Dinges [Sun, 7 Sep 2014 15:01:24 +0000 (17:01 +0200)]
Several tweaks for Quick Smoke:

* Improved Cycles fire, patch by Gottfried Hofmann. Differential revision: https://developer.blender.org/D777

* Added Smoke + Fire type to the operator too.

* Cleanup.

7 years agoUpdate readme for Blender 2.72.
Thomas Dinges [Sun, 7 Sep 2014 14:37:53 +0000 (16:37 +0200)]
Update readme for Blender 2.72.

7 years agoFix T41737 using append from menu will result in error message
Andrea Weikert [Sun, 7 Sep 2014 12:56:21 +0000 (14:56 +0200)]
Fix T41737 using append from menu will result in error message

message in terminal was: RNA_boolean_get: WM_OT_append.relative_path not found.
Added check for existence of the relative path property which was removed from append
since it is not needed and used.

7 years agoSome updates for Quick Smoke / Cycles.
Thomas Dinges [Sun, 7 Sep 2014 13:26:12 +0000 (15:26 +0200)]
Some updates for Quick Smoke / Cycles.

* Add Density multiplier.
* Use Smoke color attribute.

Patch by Gottfried Hofmann, with some small tweaks by myself.
Differential revision: https://developer.blender.org/D776

7 years agoFix for line style shader nodes also shown in the Add menu of other shader types.
Tamito Kajiyama [Sun, 7 Sep 2014 13:15:18 +0000 (22:15 +0900)]
Fix for line style shader nodes also shown in the Add menu of other shader types.

Problem report by Nahuel Belich through Facebook, thanks!

7 years agoFix T41740: Different behaviour of custom hotkey
Bastien Montagne [Sun, 7 Sep 2014 12:45:05 +0000 (14:45 +0200)]
Fix T41740: Different behaviour of custom hotkey

Quick fix, this is actually a demonstration of why we should use modal keymaps!
We can give any event to *start* the op, but then hard-code how to *end* it... tsk.

7 years agoFix T41419: Quick Smoke doesn´t work with Cycles
Thomas Dinges [Sun, 7 Sep 2014 03:15:26 +0000 (05:15 +0200)]
Fix T41419: Quick Smoke doesn´t work with Cycles

Now the Quick Smoke operator creates a basic node setup for smoke and fire. This could be made more fancy still, but that's for later. :)

7 years agoNo need for try/except in D766
Campbell Barton [Sun, 7 Sep 2014 02:05:44 +0000 (12:05 +1000)]
No need for try/except in D766

7 years agoCycles: Several fixes for Presets.
Thomas Dinges [Sun, 7 Sep 2014 02:03:23 +0000 (04:03 +0200)]
Cycles: Several fixes for Presets.

* Fix caustic properties, was not updated.
* Remove wrong items, leftovers from panel splitting.
* Add missing items. Even if the bundled presets do not set those, a user expects that all properties inside the panel are taken into account, when adding a new preset.

7 years agoCycles: Fix Caustic tooltips.
Thomas Dinges [Sat, 6 Sep 2014 23:35:20 +0000 (01:35 +0200)]
Cycles: Fix Caustic tooltips.

Now that the option has been reversed, the tooltips should be changed too.
Thanks to David Black, for bringing this up!

7 years agoFix T40507: Blender Internal Render's Gather don't use node's emit color.
Bastien Montagne [Sat, 6 Sep 2014 20:50:31 +0000 (22:50 +0200)]
Fix T40507: Blender Internal Render's Gather don't use node's emit color.

Node was simply ignored by occ shading (noted as TODO), though it's a mere matter
of a very few lines of code, nowadays... Just copied from similar task in bake code.

7 years agoPy Mathutils: add `invert_safe()` and `inverted_safe()` to `Matrix`.
Bastien Montagne [Sat, 6 Sep 2014 12:54:08 +0000 (14:54 +0200)]
Py Mathutils: add `invert_safe()` and `inverted_safe()` to `Matrix`.

Those two mimic our BLI invert_m4_m4_safe - they add a small offset to diagonal values,
in case org matrix is degenerated, and if still non-invertible, return identity matrix.

Org patch by me, final enhanced version by ideasman42, many thanks!

7 years agoFix T41709: Bump not rendered correctly behind transparency using Branched Path Tracing
Sergey Sharybin [Sat, 6 Sep 2014 12:16:38 +0000 (18:16 +0600)]
Fix T41709: Bump not rendered correctly behind transparency using Branched Path Tracing

7 years agoCycles: Workaround cuda 6.5 compiler bug with sm_50
Sergey Sharybin [Sat, 6 Sep 2014 09:10:17 +0000 (15:10 +0600)]
Cycles: Workaround cuda 6.5 compiler bug with sm_50

7 years agoFix T41730: Knife Cut fails on concave faces
Campbell Barton [Sat, 6 Sep 2014 08:32:49 +0000 (18:32 +1000)]
Fix T41730: Knife Cut fails on concave faces

7 years agoKnife: remove redundant allocations
Campbell Barton [Sat, 6 Sep 2014 08:28:33 +0000 (18:28 +1000)]
Knife: remove redundant allocations

7 years agoCycles: Fix for the BSDF evaluation init
Sergey Sharybin [Sat, 6 Sep 2014 08:30:58 +0000 (14:30 +0600)]
Cycles: Fix for the BSDF evaluation init

7 years agoMath Lib: Add copy_m2_m2, unit_m2, zero_m2
Campbell Barton [Sat, 6 Sep 2014 01:19:34 +0000 (11:19 +1000)]
Math Lib: Add copy_m2_m2, unit_m2, zero_m2

7 years agoKnife: no need to find the face-loops
Campbell Barton [Fri, 5 Sep 2014 06:24:46 +0000 (16:24 +1000)]
Knife: no need to find the face-loops

Just check if verts are used in the face.

7 years agoCycles: Split caustics option, to allow separate control for Reflection and Refractio...
Thomas Dinges [Fri, 5 Sep 2014 18:39:35 +0000 (20:39 +0200)]
Cycles: Split caustics option, to allow separate control for Reflection and Refraction caustics.

This way artists can only disable/enable refraction or reflection caustics.
See Cycles logs for an example: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.72/Cycles

Differential revision: https://developer.blender.org/D766

7 years agoCycles: Initial support for volume ray visibility.
Thomas Dinges [Fri, 5 Sep 2014 14:17:24 +0000 (16:17 +0200)]
Cycles: Initial support for volume ray visibility.

This adds a new "Volume Scatter" option to the "Ray Visibility" panels and can be used to e.g. exclude lamps from having an influence on the volume. See release logs for an example: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.72/Cycles

Differential revision: https://developer.blender.org/D771

7 years agoCleanup:
Antony Riakiotakis [Fri, 5 Sep 2014 13:48:03 +0000 (15:48 +0200)]
Cleanup:

Move projection paint data ensure function to projective texture
painting. Also, cleanup draw data when generating a new image for
painting in image paint mode.

7 years agoFix T41723, different tints in texture painting.
Antony Riakiotakis [Fri, 5 Sep 2014 13:46:10 +0000 (15:46 +0200)]
Fix T41723, different tints in texture painting.

Blend brush color with texture before converting to srgb

7 years agoFix T41721: Muting render layer input nodes has no effect
Sergey Sharybin [Fri, 5 Sep 2014 10:01:52 +0000 (16:01 +0600)]
Fix T41721: Muting render layer input nodes has no effect

7 years agoDisable msvc runtime fma3 use in an attempt to fix msvc 2013 + windows 7 issues.
Martijn Berger [Fri, 5 Sep 2014 09:09:54 +0000 (11:09 +0200)]
Disable msvc runtime fma3 use in an attempt to fix msvc 2013 + windows 7 issues.
MS report:
https://connect.microsoft.com/VisualStudio/feedback/details/811093

7 years agoFix uninitialized variable use
Campbell Barton [Fri, 5 Sep 2014 00:58:44 +0000 (10:58 +1000)]
Fix uninitialized variable use

7 years agoCleanup: de-duplicate link/append props
Campbell Barton [Fri, 5 Sep 2014 00:16:11 +0000 (10:16 +1000)]
Cleanup: de-duplicate link/append props

7 years agoFix broken maya/max keyconfigs (again) after link/append separation.
Bastien Montagne [Thu, 4 Sep 2014 18:32:58 +0000 (20:32 +0200)]
Fix broken maya/max keyconfigs (again) after link/append separation.

7 years agoFix T41716, crash with image mode when painting without materials.
Antony Riakiotakis [Thu, 4 Sep 2014 18:23:03 +0000 (20:23 +0200)]
Fix T41716, crash with image mode when painting without materials.

* As always, make sure all slots of the object have a material

7 years agoFix T41715 fill tools not respecting alpha lock
Antony Riakiotakis [Thu, 4 Sep 2014 18:04:03 +0000 (20:04 +0200)]
Fix T41715 fill tools not respecting alpha lock

7 years agoSeparate operators for Link and Append.
Andrea Weikert [Thu, 4 Sep 2014 17:35:18 +0000 (19:35 +0200)]
Separate operators for Link and Append.

Since the choice to link or append has been removed in the file browser operator panel,
there was no way to tell whether as a user you were linking or appending.
To fix this the proposed patch separates the operators.

Reviewers: campbellbarton, carter2422, venomgfx

Subscribers: fsiddi

Maniphest Tasks: T41593

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

7 years agoFix T41714: Maya and 3DS keymaps throw error when.
Bastien Montagne [Thu, 4 Sep 2014 17:17:57 +0000 (19:17 +0200)]
Fix T41714: Maya and 3DS keymaps throw error when.

Change in SEQUENCER_OT_select's left_right parameter...

7 years agoAttempt to solve T41708,
Antony Riakiotakis [Thu, 4 Sep 2014 15:21:01 +0000 (17:21 +0200)]
Attempt to solve T41708,

Refresh always when clicking on a palette color (state here may be same
as state of button, not causing a refresh as it should)

7 years agoMetastrips: disallow making a metastrip with only one strip present.
Antony Riakiotakis [Thu, 4 Sep 2014 14:59:18 +0000 (16:59 +0200)]
Metastrips: disallow making a metastrip with only one strip present.

7 years agoFix T41713: Lattice - Influence vertexgroup in curve modifier gets ignored
Bastien Montagne [Thu, 4 Sep 2014 14:43:52 +0000 (16:43 +0200)]
Fix T41713: Lattice - Influence vertexgroup in curve modifier gets ignored

This was never implemented, actually... Was also the occasion to rework a bit
`curve_deform_verts()`, code there was sometimes needlessly complicated and slowish
(like getting weight from dm vertex per vertex, instead of whole array at once...).

7 years agoFix related to previous commit: do not store panels (state, position, etc.) in defaul...
Bastien Montagne [Thu, 4 Sep 2014 13:03:03 +0000 (15:03 +0200)]
Fix related to previous commit: do not store panels (state, position, etc.) in default startup.

In this case, we want to use defaults as defined by UI code (among other, from order of registering),
there is no point in storing those data in factory startup.

7 years agoFix T41704: 2.71.6 no longer reading user ui panel arrangement from earlier saved...
Bastien Montagne [Thu, 4 Sep 2014 12:38:29 +0000 (14:38 +0200)]
Fix T41704: 2.71.6 no longer reading user ui panel arrangement from earlier saved blend files.

This reverts rB52c06440d8e51c8661a679bcb33742666ce8dbf9 and rBe40d8258bb46926a1aecf51236822532397993f3
(tabname is old 2.4x tabed panels system, *not* new 2.7x tool tabs!).

Also disabled (#idef'ed) everything regarding tabname/tabed panels for now, we may even remove it completely,
would make things clearer imho.

Note files saved with 2.71.6 up till now would have two versions of some panels in store (with two different
values for their tabname), can give some order oddities in those cases, which have to be fixed by hand...

7 years agoWrite Compressed blend files directly
Campbell Barton [Thu, 4 Sep 2014 11:48:36 +0000 (21:48 +1000)]
Write Compressed blend files directly

Writing compressed files would write the uncompressed blend, then re-compress on-disk.

Use a wrapper for open/write/close commands

7 years agoFix wrong track of the memory when doing device vector resize before freeing it
Sergey Sharybin [Thu, 4 Sep 2014 11:22:40 +0000 (17:22 +0600)]
Fix wrong track of the memory when doing device vector resize before freeing it

This is rather legit case which happens i.e. when having persistent images enabled
and session is updating the lookup tables.

Now device_memory keeps track of amount of memory being allocated on the device,
which makes freeing using the proper allocated size, not the CPU side buffer
size.

7 years agoFix T41463: Mirror Modifier breaks Automatic-Weights in weight-paint mode
Campbell Barton [Thu, 4 Sep 2014 07:53:10 +0000 (17:53 +1000)]
Fix T41463: Mirror Modifier breaks Automatic-Weights in weight-paint mode

The problem was it used copied verts on the opposite side.

7 years agoFix setting Curve-handle type moving the wrong one
Campbell Barton [Thu, 4 Sep 2014 06:14:02 +0000 (16:14 +1000)]
Fix setting Curve-handle type moving the wrong one

Issue noted in T35952, now if you convert a free handle to an aligned handle,
it will move the selected handle.

7 years agoFix View3D 'Auto Keying' alignment (when dpi!=72)
Campbell Barton [Thu, 4 Sep 2014 05:56:40 +0000 (15:56 +1000)]
Fix View3D 'Auto Keying' alignment (when dpi!=72)

7 years agoFix T35952: Switching a single handle to free would lock the others alignment
Campbell Barton [Thu, 4 Sep 2014 05:40:29 +0000 (15:40 +1000)]
Fix T35952: Switching a single handle to free would lock the others alignment

7 years agoFix T40595: File broken after "make local->all"
Campbell Barton [Thu, 4 Sep 2014 04:14:42 +0000 (14:14 +1000)]
Fix T40595: File broken after "make local->all"

7 years agoVert-rip left an invalid selection with (>1 verts)
Campbell Barton [Thu, 4 Sep 2014 02:12:25 +0000 (12:12 +1000)]
Vert-rip left an invalid selection with (>1 verts)

Now report the error and fail early.

7 years agoCleanup: Code deduplication for similar passes.
Thomas Dinges [Wed, 3 Sep 2014 23:00:40 +0000 (01:00 +0200)]
Cleanup: Code deduplication for similar passes.

7 years agoFix T41693: Volumes get brightened with extra volume samples on GPU + BPT
Sergey Sharybin [Wed, 3 Sep 2014 15:23:07 +0000 (21:23 +0600)]
Fix T41693: Volumes get brightened with extra volume samples on GPU + BPT

7 years agoCode cleanup, defined shared stroke properties to one central function.
Antony Riakiotakis [Wed, 3 Sep 2014 12:00:34 +0000 (14:00 +0200)]
Code cleanup, defined shared stroke properties to one central function.

7 years agoTexture painting:
Antony Riakiotakis [Wed, 3 Sep 2014 10:14:09 +0000 (12:14 +0200)]
Texture painting:

Free draw objects instead of tagging object update and doing
recalculation of derived meshes. The reason is that if user deletes all
slots and tries to paint, the system will invalidate the cached in
projection painting derivedmesh. This will promptly crash. Invalidating
the draw objects only is also much cheaper.

7 years agoExpose "select all strips to left/right" in the select menu.
Antony Riakiotakis [Wed, 3 Sep 2014 09:18:30 +0000 (11:18 +0200)]
Expose "select all strips to left/right" in the select menu.

Shortcut is ctrl click but might not be discoverable, as we found out
the hard way on gooseberry.

7 years agoFix T41691: Blender-internal crash (counting edges)
Campbell Barton [Wed, 3 Sep 2014 07:31:58 +0000 (17:31 +1000)]
Fix T41691: Blender-internal crash (counting edges)

7 years agoFix T41695: No label in UV/Image editor waveform mode
Sergey Sharybin [Wed, 3 Sep 2014 06:44:34 +0000 (12:44 +0600)]
Fix T41695: No label in UV/Image editor waveform mode

That's indeed rather creepy to show only icon for the enum where
all the elements have the same exact icon.

7 years agoSkip distortion of the grease pencil associated with the track
Sergey Sharybin [Wed, 3 Sep 2014 06:40:06 +0000 (12:40 +0600)]
Skip distortion of the grease pencil associated with the track

7 years agoFix FileSelector dividers disappearing
Campbell Barton [Wed, 3 Sep 2014 06:18:31 +0000 (16:18 +1000)]
Fix FileSelector dividers disappearing

Was clamped to short

7 years agoFix FileSelector drawing missing some files
Campbell Barton [Wed, 3 Sep 2014 06:00:44 +0000 (16:00 +1000)]
Fix FileSelector drawing missing some files

7 years agoFix set black/white points didn't operate in the linear space
Sergey Sharybin [Wed, 3 Sep 2014 05:49:29 +0000 (11:49 +0600)]
Fix set black/white points didn't operate in the linear space

7 years agoCleanup: Use function call and delete obsolete comment.
Thomas Dinges [Tue, 2 Sep 2014 21:26:29 +0000 (23:26 +0200)]
Cleanup: Use function call and delete obsolete comment.

7 years agoAdd missing update tag to material when adding texture slots.
Antony Riakiotakis [Tue, 2 Sep 2014 16:57:10 +0000 (18:57 +0200)]
Add missing update tag to material when adding texture slots.

7 years agoFix erase alpha not having any output on viewport after last commit.
Antony Riakiotakis [Tue, 2 Sep 2014 14:48:43 +0000 (16:48 +0200)]
Fix erase alpha not having any output on viewport after last commit.

7 years agoFix T41682.
Antony Riakiotakis [Tue, 2 Sep 2014 13:57:22 +0000 (15:57 +0200)]
Fix T41682.

Bring back shading in texture painting.

This works now but it uses 3 texture units instead of two. Most GPUs of
DirectX 8 (OpenGL 1.4 should cover that) functionality even should have
those, but some old GPUs might not work with that. In any case, I hope
we will be moving to OpenGL 2.1 requirement soon anyway where 4-8
texture units are usually the norm.

7 years agoBetter fix for T41464: Material Boundary bug in Freestyle.
Tamito Kajiyama [Tue, 2 Sep 2014 12:24:41 +0000 (21:24 +0900)]
Better fix for T41464: Material Boundary bug in Freestyle.

The problem addressed here is that there was no mean to check if an iterator
points the last of the elements being iterated over.  Such checking is necessary
to reliably dereference the iterator (i.e., calling the operator*() method of the
underlying C++ iterator object).

Now Interface0DIterator and StrokeVertexIterator have an .at_last property
to check if an iterator points the last element.  Using this new API feature,
the present commit partly reverts the previous commit rBeb8964fb7f19 to
better address T41464.

Differential revision: https://developer.blender.org/D752

Author: flokkievids (Folkert de Vries)

Reviewed by: kjym3 (Tamito Kajiyama)

7 years agoHacky fixes can apply to more then one compiler.
Martijn Berger [Tue, 2 Sep 2014 11:39:02 +0000 (13:39 +0200)]
Hacky fixes can apply to more then one compiler.
TODO: really get rid of any and all bare #include <windows.h> in
the codebase in favour of central BLI_winstuff.h.

7 years agoFixes localview and view-local layers
Campbell Barton [Tue, 2 Sep 2014 10:45:28 +0000 (20:45 +1000)]
Fixes localview and view-local layers

- Drawing grease pencil fail without scene-lock.
- Converting to curve failed without scene-lock.
- Outliner drag into viewport failed with local-view.

7 years agoHacky fix for cleanup rBc23733d290c095ab77310b55c75293465891d5b8
Martijn Berger [Tue, 2 Sep 2014 10:20:16 +0000 (12:20 +0200)]
Hacky fix for cleanup rBc23733d290c095ab77310b55c75293465891d5b8

7 years agoA bit of a code cleanup in GLSL shader
Sergey Sharybin [Tue, 2 Sep 2014 09:58:38 +0000 (15:58 +0600)]
A bit of a code cleanup in GLSL shader

7 years agoSupport window coordinates in cycles nodes.
Antony Riakiotakis [Tue, 2 Sep 2014 09:49:14 +0000 (11:49 +0200)]
Support window coordinates in cycles nodes.

7 years agoFix second part of T41068 -- reflection mapping was wrong
Sergey Sharybin [Tue, 2 Sep 2014 09:34:07 +0000 (15:34 +0600)]
Fix second part of T41068 -- reflection mapping was wrong

Few things:
- reflect() takes arguments in this order: N, I, it was swapped
  in the previous code for some reason.

- Normal and view vectors are to be normalized. For the view
  vector we're now using shade_view() in order to deal with the
  ortho camera. However, Cycles does not support ortho camera
  for reflection, but this is easy to do in a separate commit.

- Reflection vector is to be in the world space. Kudos to
  Antony Riakiotakis for figuring this out!

7 years agoFix editmesh-connect with adjacent vert selection
Campbell Barton [Tue, 2 Sep 2014 05:22:49 +0000 (15:22 +1000)]
Fix editmesh-connect with adjacent vert selection

The result of running connect wasn't deterministic when adjacent vertices selected.

7 years agoFix editmesh-connect with hidden geometry
Campbell Barton [Tue, 2 Sep 2014 04:31:45 +0000 (14:31 +1000)]
Fix editmesh-connect with hidden geometry

- ignore hidden faces & verts
- when cutting a pair, select edges co-linear to the cut.

Also support creating a buffer from hidden elem's even if BMO_FLAG_RESPECT_HIDE is enabled.
(if the hflag used includes BM_ELEM_HIDDEN).

7 years agoBMesh: report errors for invalid operator use
Campbell Barton [Tue, 2 Sep 2014 03:27:35 +0000 (13:27 +1000)]
BMesh: report errors for invalid operator use

- invalid htype's into a slot
- duplicate htype's args to BMO_op_vinitf

7 years agoFix T41665, stroke jittering used when setting the clone cursor
Antony Riakiotakis [Mon, 1 Sep 2014 19:10:17 +0000 (21:10 +0200)]
Fix T41665, stroke jittering used when setting the clone cursor

7 years agoEvents: Fix ISKEYBOARD macro seeing INPUTCHANGE, WINDEACTIVATE and TIMER events
Bastien Montagne [Mon, 1 Sep 2014 15:18:30 +0000 (17:18 +0200)]
Events: Fix ISKEYBOARD macro seeing INPUTCHANGE, WINDEACTIVATE and TIMER events
as keyboard ones!!!

Note: better solution would be to move those 'internal' events to the 0x5xxx area,
but need to talk with the team to be sure this won't break something first.

7 years agoCleanup: Event defines -> enums.
Bastien Montagne [Mon, 1 Sep 2014 15:08:33 +0000 (17:08 +0200)]
Cleanup: Event defines -> enums.

Also made all event type values as hexadecimal (mixing decimal, hexa and char values
is a nice way to make mistakes)!

7 years agoFix opencollada not compiling after recent changes.
Antony Riakiotakis [Mon, 1 Sep 2014 12:33:05 +0000 (14:33 +0200)]
Fix opencollada not compiling after recent changes.

7 years agoExpose preview setting operators on menus for sequencer and timeline
Antony Riakiotakis [Mon, 1 Sep 2014 12:22:34 +0000 (14:22 +0200)]
Expose preview setting operators on menus for sequencer and timeline
(could not find them anywhere before)

7 years agoCycles: Rebuild BVH from scratch if loading cache failed
Sergey Sharybin [Mon, 1 Sep 2014 12:03:03 +0000 (18:03 +0600)]
Cycles: Rebuild BVH from scratch if loading cache failed

Before this Cycles used to try using the cache even so it knew for the
fact that reading it from the disk failed. This change doesn't make it
more stable if someone will try to trick Cycles and give malformed data
but it solves general cases when Blender crashed during the cache write
and will preserve rendering from crashing when trying to use that partial
cache.

7 years agoSupport more object types scene-scale (on creation)
Campbell Barton [Mon, 1 Sep 2014 10:09:31 +0000 (20:09 +1000)]
Support more object types scene-scale (on creation)

- lamp
- camera
- font
- empty & effector

Also fix inconsistency with apply transform
(modified shape-keys for meshes but not curve/lattice)

7 years agoFix T41620
Antony Riakiotakis [Mon, 1 Sep 2014 10:35:10 +0000 (12:35 +0200)]
Fix T41620

Issue here is that indices of edges will be incorrect when index of
vertices forming the edge is 3-0 or 2-0.

There are still issues here at uv edges where seam polygons intersect
each other but to solve that we need a better pass that detects uv edges
and pushes polygons along the "normal" of the edge instead of scaling
the polygon itself.

7 years agoCleanup: Silence compiler warning.
Thomas Dinges [Mon, 1 Sep 2014 00:49:28 +0000 (02:49 +0200)]
Cleanup: Silence compiler warning.

7 years agoT41650
Antony Riakiotakis [Sun, 31 Aug 2014 14:47:54 +0000 (16:47 +0200)]
T41650

Typo in material localization code.

7 years agoFix T41657: Text Editor highlight bug when a very long line scrolls
Bastien Montagne [Sun, 31 Aug 2014 14:06:30 +0000 (16:06 +0200)]
Fix T41657: Text Editor highlight bug when a very long line scrolls

Based on patch by randon (Dun Liang), but no need to recompute lengths here, we already have the info.

7 years agoBake-API: more MEM_callocN replacements by MEM_mallocN
Dalai Felinto [Sun, 31 Aug 2014 12:44:42 +0000 (14:44 +0200)]
Bake-API: more MEM_callocN replacements by MEM_mallocN

Reviewed By: campbellbarton

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

7 years agoCycles: Always assign the proper value for volume bounces.
Thomas Dinges [Sun, 31 Aug 2014 12:00:51 +0000 (14:00 +0200)]
Cycles: Always assign the proper value for volume bounces.

I don't see a reason not to do this, and this also fixes update problems when 3D View rendering is running (no volume shader), and then a volume shader gets added.

7 years agoAdd sqlite3 dll's on windows.
Martijn Berger [Sun, 31 Aug 2014 07:08:07 +0000 (09:08 +0200)]
Add sqlite3 dll's on windows.
Fix T41144

7 years agoFix preview icons update script to work in OSX
Dalai Felinto [Sat, 30 Aug 2014 23:17:26 +0000 (01:17 +0200)]
Fix preview icons update script to work in OSX