blender.git
5 years agoFreestyle: Fix for missing quality control on line rendering in Cycles.
Tamito Kajiyama [Thu, 11 Sep 2014 04:41:14 +0000 (13:41 +0900)]
Freestyle: Fix for missing quality control on line rendering in Cycles.

Freestyle was using the default Cycles rendering settings (e.g., the number
of samples) and users could not change them.  Now all render parameters
(except for film_transparent) are inherited for Freestyle stroke rendering.

Problem report by Danny Grimm on Facebook, thanks!

5 years agoFix T41778: Crash on animate boids xith a goal
Campbell Barton [Thu, 11 Sep 2014 02:49:46 +0000 (12:49 +1000)]
Fix T41778: Crash on animate boids xith a goal

No need to copy/restore entire object struct (just to read location)

5 years agoFix crash in BLI_kdtree_range_search
Campbell Barton [Thu, 11 Sep 2014 02:34:30 +0000 (12:34 +1000)]
Fix crash in BLI_kdtree_range_search

Called memcpy with a NULL pointer,
causing the following NULL check to get optimized away.

5 years agoFix crash in project-from view without a brush or active object
Campbell Barton [Wed, 10 Sep 2014 13:02:31 +0000 (23:02 +1000)]
Fix crash in project-from view without a brush or active object

5 years agoText3d: assert for <0 len text
Campbell Barton [Wed, 10 Sep 2014 13:01:22 +0000 (23:01 +1000)]
Text3d: assert for <0 len text

also add operator to test blacklist

5 years agoText3D: fixes to selection
Campbell Barton [Wed, 10 Sep 2014 11:08:40 +0000 (21:08 +1000)]
Text3D: fixes to selection

- clamp selection on entering editmode (Python may have changed).
- BKE_vfont_select_get no longer succeeds with an empty selection
  this caused many operators to go ahead and operate on zero size array.

5 years agoFix crash in active_paint_texture_index callback
Campbell Barton [Wed, 10 Sep 2014 11:56:45 +0000 (21:56 +1000)]
Fix crash in active_paint_texture_index callback

5 years agoFix T41767: Memory free problem when console area copy fail.
Bastien Montagne [Wed, 10 Sep 2014 11:14:29 +0000 (13:14 +0200)]
Fix T41767: Memory free problem when console area copy fail.

Nice little memleak!

Patch by reporter (randon (Dun Liang)) with minor own cleanup, thanks!

5 years agoFix two bugs with searchbox UI items.
Bastien Montagne [Wed, 10 Sep 2014 10:53:22 +0000 (12:53 +0200)]
Fix two bugs with searchbox UI items.

First one, reported by Sergey, was searchbox not closing when validating it (enter or LMB click)
without any active item (we need to enable escapecancel here, to close menu too).

Second one was SEARCH_MENU_UNLINK variant not unlinking at validation when no active item.

Thanks a bunch to Campbell for help here!

5 years agoFix T41112: Rotate manipulator (Trackball) + release confirm not working?
Anthony Edlin [Wed, 10 Sep 2014 09:59:21 +0000 (11:59 +0200)]
Fix T41112: Rotate manipulator (Trackball) + release confirm not working?

Usual same issue (unset property != set property to default value).

Review and minor edits by mont29 (Bastien Montagne).

5 years agoUI: Disable operator search menu setting an unset state key key-input
Campbell Barton [Wed, 10 Sep 2014 09:22:29 +0000 (19:22 +1000)]
UI: Disable operator search menu setting an unset state key key-input

5 years agoCancel edge-rip macro if no changes are made.
Campbell Barton [Wed, 10 Sep 2014 06:20:08 +0000 (16:20 +1000)]
Cancel edge-rip macro if no changes are made.

5 years agoFix for mesh-inset modifying hidden faces
Campbell Barton [Wed, 10 Sep 2014 06:02:24 +0000 (16:02 +1000)]
Fix for mesh-inset modifying hidden faces

5 years agoPartial fix T41749
Campbell Barton [Wed, 10 Sep 2014 05:01:39 +0000 (15:01 +1000)]
Partial fix T41749

2d & 3d cached text now draws pixel aligned now.

5 years agoPartial fix for T41749
Campbell Barton [Wed, 10 Sep 2014 03:34:17 +0000 (13:34 +1000)]
Partial fix for T41749

Tool-tips and header-text used a different pixel alignment from the rest of the UI.
This causes blurry text with multi-sample with NVidia.

Other text still needs the issue resolved (View3d info for eg)

5 years agoWM: Add utility wmOrtho2_*** funcs
Campbell Barton [Wed, 10 Sep 2014 03:24:31 +0000 (13:24 +1000)]
WM: Add utility wmOrtho2_*** funcs

Currently there are inconsistencies with pixel alignment.
but this commit has no functional changes.

- wmOrtho2_region_ui for UI/Text.
- wmOrtho2_region_pixelspace for 2D drawing.
- wmOrtho2_pixelspace - when the region isn't used.

5 years agoFix for rna2xml
Campbell Barton [Wed, 10 Sep 2014 01:06:18 +0000 (11:06 +1000)]
Fix for rna2xml

- follow references to Bone, Sequence, Node (non ID types) by name only.
  was causing infinite recursion.
- add support to skip individual class properties.

This can now write an entire blend-file.

5 years agoCurve: Remove assert in BKE_curve_bevelList_make
Campbell Barton [Wed, 10 Sep 2014 00:46:29 +0000 (10:46 +1000)]
Curve: Remove assert in BKE_curve_bevelList_make

Failed on any cyclic poly line.

5 years agoUsual UI messages fixes...
Bastien Montagne [Tue, 9 Sep 2014 17:55:11 +0000 (19:55 +0200)]
Usual UI messages fixes...

5 years agoFix crash reading ParticleEdit.is_editable
Campbell Barton [Tue, 9 Sep 2014 12:07:55 +0000 (22:07 +1000)]
Fix crash reading ParticleEdit.is_editable

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

5 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

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

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

5 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

5 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

5 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

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

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

5 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! :)

5 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

5 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

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

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

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

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

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

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

5 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

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

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

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

5 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

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

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

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

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

5 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

5 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

5 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

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

5 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

5 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

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

5 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

5 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

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

5 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

5 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

5 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

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

5 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

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

5 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

5 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

5 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

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

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

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

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

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

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

5 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

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

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

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

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

5 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

5 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"

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

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

5 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

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

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

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

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

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

5 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

5 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

5 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

5 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

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

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

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

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

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

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

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

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

5 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