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:

Differential revision:

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:

Differential revision:

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

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:

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:

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

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:

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

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

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:

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

7 years agoFix crash part of T41561: custom properties don't see in drivers windiw
Bastien Montagne [Sat, 30 Aug 2014 20:02:05 +0000 (22:02 +0200)]
Fix crash part of T41561: custom properties don't see in drivers windiw

Do not try to access ID_OB data from an ID_MA one (or anything else)!

7 years agoFix Cycles Integrator presets, not taking Volume bounces into account.
Thomas Dinges [Sat, 30 Aug 2014 14:48:34 +0000 (16:48 +0200)]
Fix Cycles Integrator presets, not taking Volume bounces into account.

7 years agoFix T41642: Zoom View hotkey: Zoom Position Y doesn't working
Bastien Montagne [Sat, 30 Aug 2014 14:38:06 +0000 (16:38 +0200)]
Fix T41642: Zoom View hotkey: Zoom Position Y doesn't working

Hide zoom settings that have no use in UI/shortcuts definitions.

7 years agoUse UI_BUT_ prefix as other flags do
Campbell Barton [Sat, 30 Aug 2014 07:11:07 +0000 (17:11 +1000)]
Use UI_BUT_ prefix as other flags do

7 years agoFix T41629: Won't open blend files with non-Latin charasters in the name
Sergey Sharybin [Fri, 29 Aug 2014 17:05:14 +0000 (23:05 +0600)]
Fix T41629: Won't open blend files with non-Latin charasters in the name

7 years agoFix T41630: Edge Split Modifier don't work anymore when a Array Modifier is after...
Bastien Montagne [Fri, 29 Aug 2014 16:07:54 +0000 (18:07 +0200)]
Fix T41630: Edge Split Modifier don't work anymore when a Array Modifier is after the Edge Split Modifier added.

Dirty normals flag has to be passed to new dm...

7 years agoFix wrong result with sharpen brush on float images in projective
Antony Riakiotakis [Fri, 29 Aug 2014 15:18:06 +0000 (17:18 +0200)]
Fix wrong result with sharpen brush on float images in projective

7 years agoFix T41596 GLSL error on ATIs after clipping workaround commit.
Antony Riakiotakis [Fri, 29 Aug 2014 14:23:37 +0000 (16:23 +0200)]
Fix T41596 GLSL error on ATIs after clipping workaround commit.

This was a little difficult to track down, basically it was a missing
escape sequence that only manifested itself when GPU did not support
bicubic filtering.


* Fix memory leaks when an error occurs in shader compilation
* Display full shader when a compilation error occurs. Makes it easier
to diagnose if problem is caused by a syntax or compatibility error.

7 years agoFix T41631: Connect acts on unrelated vert
Campbell Barton [Fri, 29 Aug 2014 14:13:56 +0000 (00:13 +1000)]
Fix T41631: Connect acts on unrelated vert

7 years agoFix for blender.exe -r being registering blender-app.exe
Sergey Sharybin [Fri, 29 Aug 2014 11:36:59 +0000 (17:36 +0600)]
Fix for blender.exe -r being registering blender-app.exe

7 years agoCycles: Fix triangle ribbons hair in viewport and ortho camera
Sergey Sharybin [Fri, 29 Aug 2014 10:44:16 +0000 (16:44 +0600)]
Cycles: Fix triangle ribbons hair in viewport and ortho camera

There were several issues involved into triangle ribbons hair:

- Even for the viewport rendering the blender scene camera was
  used for orientation. This made hair triangles oriented to
  the scene camera, not to the viewport camera.

- Triangle orientation was actually supposing the camera is
  perspective. Triangles weren't oriented properly for the
  orthographic camera resulting in different hair width across
  it's length.

This issues are solved now, but there are some related TODOs:

- Rotating viewport doesn't re-orient the triangles, so after
  viewport navigation hair might not look correct. However,
  with this fix toggling viewport render (to force hair sync)
  makes viewport render correct.

  This isn't so much trivial fix, would require making BVH
  aware of the dynamic triangle orientation, so they get
  properly oriented without full hair re-sync.

- Panorama camera behavior didn't change but looks like it
  should, however not really sure atm what's the right thing
  to do here.

7 years agoFix T41617: Color ramp crashes user preferences
Campbell Barton [Fri, 29 Aug 2014 06:56:19 +0000 (16:56 +1000)]
Fix T41617: Color ramp crashes user preferences

Color ramps with no handles caused issues.

7 years agoAdd callback for starting a render-job
Campbell Barton [Fri, 29 Aug 2014 06:17:31 +0000 (16:17 +1000)]
Add callback for starting a render-job

We had complete/cancel, but no matching init for rendering,
render_pre/post callbacks aren't always usable.

7 years agoRemove redundant casts
Campbell Barton [Fri, 29 Aug 2014 06:16:28 +0000 (16:16 +1000)]
Remove redundant casts

7 years agoCleanup
Campbell Barton [Fri, 29 Aug 2014 05:35:19 +0000 (15:35 +1000)]

7 years agoFix Text editor home/end keys when theres a selection
Campbell Barton [Fri, 29 Aug 2014 04:52:23 +0000 (14:52 +1000)]
Fix Text editor home/end keys when theres a selection

7 years agoSolve another case of invalid indices.
Antony Riakiotakis [Thu, 28 Aug 2014 21:26:52 +0000 (23:26 +0200)]
Solve another case of invalid indices.

7 years agoFix some crash cases after last commit
Antony Riakiotakis [Thu, 28 Aug 2014 19:30:29 +0000 (21:30 +0200)]
Fix some crash cases after last commit

7 years agoFix another part of the issue T41604
Sergey Sharybin [Thu, 28 Aug 2014 20:52:36 +0000 (02:52 +0600)]
Fix another part of the issue T41604

Missed that part of the report somehow, thought it's all about world..

7 years agoTexture painting:
Antony Riakiotakis [Thu, 28 Aug 2014 14:40:38 +0000 (16:40 +0200)]
Texture painting:

Include explicit control for texturing:

This commit introduces a painting mode option, available in
the slots panel. The default value "Material"  will create slots from the
blender material, same as just merged from the paint branch.

The new option "Image", will use an explicit image field that artists can use
to select the image to paint on. This will should allow painting regardless
of the renderer used or for use in modifiers.

7 years agoTexture paint system:
Antony Riakiotakis [Thu, 28 Aug 2014 13:48:26 +0000 (15:48 +0200)]
Texture paint system:

* Add ability to choose blend type and enable/disable toggle for each
slot for blender internal.

7 years agoFollowup for the previous commit: apparently for CMake py files are hardcoded
Sergey Sharybin [Thu, 28 Aug 2014 13:49:20 +0000 (19:49 +0600)]
Followup for the previous commit: apparently for CMake py files are hardcoded

7 years agoFix T41473: Cycles volume rendering is too dark
Sergey Sharybin [Thu, 28 Aug 2014 12:58:21 +0000 (18:58 +0600)]
Fix T41473: Cycles volume rendering is too dark

The issue was caused by the changed defaults from the Cycles side.
Because of those properties being saved as an IDProp and not being
saved to the file, every change to the defaults would ruin someone's
day updating the values.

Added a which is run after the regular
do_versions() are done and could be sued by the scripts to apply
versioning code on their settings.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Differential Revision:

7 years agoFix T41602: Camera draw size ignores scene scale
Campbell Barton [Thu, 28 Aug 2014 10:24:43 +0000 (20:24 +1000)]
Fix T41602: Camera draw size ignores scene scale

7 years agoAdd debug information for maximum opengl limits in system info
Antony Riakiotakis [Thu, 28 Aug 2014 10:19:44 +0000 (12:19 +0200)]
Add debug information for maximum opengl limits in system info

7 years agoBake-API: silencing warnings (and fixing a potential memory-access crash)
Dalai Felinto [Thu, 28 Aug 2014 10:14:14 +0000 (12:14 +0200)]
Bake-API: silencing warnings (and fixing a potential memory-access crash)