2 months agoCleanup: style, use braces for render
Campbell Barton [Sun, 21 Apr 2019 23:08:06 +0000 (09:08 +1000)]
Cleanup: style, use braces for render

2 months agoCleanup: comments (long lines) in render
Campbell Barton [Sun, 21 Apr 2019 17:05:53 +0000 (03:05 +1000)]
Cleanup: comments (long lines) in render

2 months agoCleanup: comments (long lines) in avi, blf & blt
Campbell Barton [Sun, 21 Apr 2019 15:50:49 +0000 (01:50 +1000)]
Cleanup: comments (long lines) in avi, blf & blt

2 months agoCleanup: comments (long lines) in gpu
Campbell Barton [Sun, 21 Apr 2019 15:45:43 +0000 (01:45 +1000)]
Cleanup: comments (long lines) in gpu

2 months agoCleanup: comments (long lines) in makesrna
Campbell Barton [Sun, 21 Apr 2019 16:48:05 +0000 (02:48 +1000)]
Cleanup: comments (long lines) in makesrna

2 months agoCleanup: comments (long lines) in makesdna
Campbell Barton [Sun, 21 Apr 2019 15:42:45 +0000 (01:42 +1000)]
Cleanup: comments (long lines) in makesdna

2 months agoCleanup: comments (long lines) in imbuf
Campbell Barton [Sun, 21 Apr 2019 15:18:55 +0000 (01:18 +1000)]
Cleanup: comments (long lines) in imbuf

2 months agoCleanup: comments (long lines) in blenloader
Campbell Barton [Sun, 21 Apr 2019 15:10:29 +0000 (01:10 +1000)]
Cleanup: comments (long lines) in blenloader

2 months agoCleanup: comments (long lines) in blenlib
Campbell Barton [Sun, 21 Apr 2019 14:54:27 +0000 (00:54 +1000)]
Cleanup: comments (long lines) in blenlib

2 months agoCleanup: comments (long lines) in editors
Campbell Barton [Sun, 21 Apr 2019 14:18:34 +0000 (00:18 +1000)]
Cleanup: comments (long lines) in editors

2 months agoFix error renaming Lamp to Light
Campbell Barton [Sun, 21 Apr 2019 20:21:49 +0000 (06:21 +1000)]
Fix error renaming Lamp to Light

Introduced in batch rename 3051e2f4ae8fd3e72a4.

2 months agoFix T63698: Eevee crash after recent clang-format changes
Brecht Van Lommel [Sun, 21 Apr 2019 09:32:48 +0000 (11:32 +0200)]
Fix T63698: Eevee crash after recent clang-format changes

Some GLSL compilers seem to not have problems with \ to break preprocessor
directives. I couldn't find other places with similar code, but fixing this
case by case is not ideal and the same issue may come up again.

2 months agoCleanup: comments (mainly long lines)
Campbell Barton [Sun, 21 Apr 2019 03:44:06 +0000 (13:44 +1000)]
Cleanup: comments (mainly long lines)

Comments after code can cause awkward line breaks.

2 months agoMerge branch 'blender2.7'
Brecht Van Lommel [Sun, 21 Apr 2019 01:08:58 +0000 (03:08 +0200)]
Merge branch 'blender2.7'

2 months agoFix T62408: Cycles viewport adaptive subdivision hangs after updates
Brecht Van Lommel [Thu, 4 Apr 2019 18:06:22 +0000 (20:06 +0200)]
Fix T62408: Cycles viewport adaptive subdivision hangs after updates

Backporting fix from the master branch.

2 months agoFix T63431: crash adding driver to a keyframed property with Ctrl+D
Brecht Van Lommel [Sun, 21 Apr 2019 00:34:26 +0000 (02:34 +0200)]
Fix T63431: crash adding driver to a keyframed property with Ctrl+D

2 months agoFix T63415: no Cycles displacement update when updating OSL code
Brecht Van Lommel [Sun, 21 Apr 2019 00:18:19 +0000 (02:18 +0200)]
Fix T63415: no Cycles displacement update when updating OSL code

2 months agoFix T63681: bad clipping of very long tooltips
Brecht Van Lommel [Sat, 20 Apr 2019 23:22:07 +0000 (01:22 +0200)]
Fix T63681: bad clipping of very long tooltips

2 months agoFix T63686: missing data path for 3D cursor location and rotation.
Brecht Van Lommel [Sat, 20 Apr 2019 23:11:12 +0000 (01:11 +0200)]
Fix T63686: missing data path for 3D cursor location and rotation.

2 months agoFix T63764: error when using library.users_id() function
Brecht Van Lommel [Sat, 20 Apr 2019 22:58:38 +0000 (00:58 +0200)]
Fix T63764: error when using library.users_id() function

Fix suggested by Vilem Duha.

2 months agomake.bat: remove --expand-tabs from "make format" on windows.
Ray Molenkamp [Sat, 20 Apr 2019 19:10:30 +0000 (13:10 -0600)]
make.bat: remove --expand-tabs from "make format" on windows.

following the change on linux.

2 months agoCorrect error in last commit
Campbell Barton [Sat, 20 Apr 2019 18:58:52 +0000 (04:58 +1000)]
Correct error in last commit

2 months agoUI: remove redundant row for header template
Campbell Barton [Sat, 20 Apr 2019 18:49:19 +0000 (04:49 +1000)]
UI: remove redundant row for header template

If it's members need to be aligned the template can handle it.

2 months agoCleanup: add missing macros to clang-format
Campbell Barton [Sat, 20 Apr 2019 18:40:16 +0000 (04:40 +1000)]
Cleanup: add missing macros to clang-format

2 months agoGNUMakefile: disable tab expansion for 'make format'
Campbell Barton [Sat, 20 Apr 2019 18:36:16 +0000 (04:36 +1000)]
GNUMakefile: disable tab expansion for 'make format'

This was only needed for initial migration.

2 months agoUI Overlays: Align checkbox with slider for Wireframes, X-Ray, Shadows.
Pablo Vazquez [Sat, 20 Apr 2019 17:01:46 +0000 (19:01 +0200)]
UI Overlays: Align checkbox with slider for Wireframes, X-Ray, Shadows.

2 months agoUI Overlays: One line layout for Mask opacity.
Pablo Vazquez [Sat, 20 Apr 2019 17:01:03 +0000 (19:01 +0200)]
UI Overlays: One line layout for Mask opacity.

Saves one line of space and matches Wireframe, X-Ray, Shadows.

2 months agoFix invalid stack memory use with GPencil drawing
Campbell Barton [Sat, 20 Apr 2019 11:35:14 +0000 (13:35 +0200)]
Fix invalid stack memory use with GPencil drawing

2 months agoFix error in recent image preference change
Campbell Barton [Sat, 20 Apr 2019 13:13:04 +0000 (15:13 +0200)]
Fix error in recent image preference change

2 months agoNLA: check that properties are animatable.
Alexander Gavrilov [Sat, 20 Apr 2019 11:15:30 +0000 (14:15 +0300)]
NLA: check that properties are animatable.

2 months agoGPU: automatically draw images with GLSL shader depending on resolution
Brecht Van Lommel [Sat, 20 Apr 2019 10:47:06 +0000 (12:47 +0200)]
GPU: automatically draw images with GLSL shader depending on resolution

This adds a new "Automatic" image display method which uses GLSL shaders for
most images. It only does CPU side color management for higher res images
where sending big float buffers to the GPU is likely to be a bottleneck or
cause memory usage problem.

Automatic is the default now, previously it was 2D Texture.

2 months agoCleanup: remove unused OpenGL functions, rename some for clarity
Brecht Van Lommel [Sat, 20 Apr 2019 10:56:29 +0000 (12:56 +0200)]
Cleanup: remove unused OpenGL functions, rename some for clarity

2 months agoUI: correct accidental removal of TOPBAR_PT_name
Campbell Barton [Sat, 20 Apr 2019 11:28:16 +0000 (13:28 +0200)]
UI: correct accidental removal of TOPBAR_PT_name

Mistake in 9573bf432c4b0

2 months agoCleanup: re-use test for ELEM & STR_ELEM
Campbell Barton [Sat, 20 Apr 2019 11:02:20 +0000 (13:02 +0200)]
Cleanup: re-use test for ELEM & STR_ELEM

Avoid having same test running at the end of each macro.

2 months agoCleanup: quiet warning for NULL pointer use
Campbell Barton [Sat, 20 Apr 2019 10:31:22 +0000 (12:31 +0200)]
Cleanup: quiet warning for NULL pointer use

Warning was false positive but avoid repeating the same check.

2 months ago3D View: add opacity for sculpt mask display
Pablo Dobarro [Sat, 20 Apr 2019 09:58:44 +0000 (11:58 +0200)]
3D View: add opacity for sculpt mask display

This matches vertex/texture paint opacity options.

Useful because 0.75 is sometimes too dark to see the surface shading.

Resolves T63746

2 months agoCleanup: de-duplicate flag setting macro
Campbell Barton [Sat, 20 Apr 2019 09:39:25 +0000 (11:39 +0200)]
Cleanup: de-duplicate flag setting macro

2 months agoCleanup: quiet extra-semicolon warning
Campbell Barton [Sat, 20 Apr 2019 09:28:21 +0000 (11:28 +0200)]
Cleanup: quiet extra-semicolon warning

2 months agoFix T63732: GPencil Onion now working with multiwindows
Antonioya [Sat, 20 Apr 2019 08:26:15 +0000 (10:26 +0200)]
Fix T63732: GPencil Onion now working with multiwindows

If you had several windows or, after last changes in topbar, several areas, the swith of overlays or Onion Skin was not working by area, but as whole switch, so it was impossible to have different status by window.

2 months agoCleanup: comment line length (tests)
Campbell Barton [Sat, 20 Apr 2019 08:06:01 +0000 (10:06 +0200)]
Cleanup: comment line length (tests)

2 months agoCleanup: comment line length (windowmanager)
Campbell Barton [Sat, 20 Apr 2019 08:02:28 +0000 (10:02 +0200)]
Cleanup: comment line length (windowmanager)

2 months agoCleanup: formatting, unused args
Campbell Barton [Sat, 20 Apr 2019 07:15:06 +0000 (09:15 +0200)]
Cleanup: formatting, unused args

2 months agoOutliner: Simplify logic for parent nesting
Dalai Felinto [Fri, 19 Apr 2019 22:02:05 +0000 (19:02 -0300)]
Outliner: Simplify logic for parent nesting

2 months agoEdit Mode: Make edit edges black by default
Clément Foucault [Fri, 19 Apr 2019 17:39:44 +0000 (19:39 +0200)]
Edit Mode: Make edit edges black by default

This is in order to have better contrast now that
the edges are half transparent if not
in edge selection.

2 months agoDRW: Expose VBO garbage collection timings
Clément Foucault [Fri, 19 Apr 2019 16:52:38 +0000 (18:52 +0200)]
DRW: Expose VBO garbage collection timings

This adds user side options to tweak the behavior
of the vbo garbage collection.

2 months agoT63644: Editing while parented is not rotating correctly
Antonioya [Fri, 19 Apr 2019 15:07:45 +0000 (17:07 +0200)]
T63644:  Editing while parented is not rotating correctly

This commit tries to fix the rotation problem when the parent is at layer level.

The problem was the object location was not used, so all object not in origin got weird transformations.

2 months agoFix T63669: Particle editing bypassing occlusion.
mano-wii [Fri, 19 Apr 2019 14:49:17 +0000 (11:49 -0300)]
Fix T63669: Particle editing bypassing occlusion.

The problem occurs because status changes between BackBuffer and Offscreen.

Reviewers: fclem

Differential Revision:

2 months agoFix T63648: Missing update when changing particle force fields
Sergey Sharybin [Fri, 19 Apr 2019 13:38:45 +0000 (15:38 +0200)]
Fix T63648: Missing update when changing particle force fields

Force fields requires relations update in the dependency graph.

2 months agoCleanup: Remove dead code
Sergey Sharybin [Fri, 19 Apr 2019 13:36:18 +0000 (15:36 +0200)]
Cleanup: Remove dead code

There is no more sorting happening, so the comment is out of date
by manu reasons. If something extra is needed there it would need
to be done differently anyway.

2 months agoEdit Mode: Reduce Selected face alpha
Clément Foucault [Fri, 19 Apr 2019 13:18:45 +0000 (15:18 +0200)]
Edit Mode: Reduce Selected face alpha

This is to be less intrusive when doing UV mapping. They remain enough visible
in every select mode

2 months agoEdit Mode: Change face mode edges display
Clément Foucault [Fri, 19 Apr 2019 13:08:46 +0000 (15:08 +0200)]
Edit Mode: Change face mode edges display

This improve visibility in edit face select mode by using the face select color
instead of the edge select color (which is in default theme a bit more red). Also
makes the selected edges in this mode a bit more opaque (0.75 instead of  0.4).
Full opacity is still reserved for edge select mode.

2 months agoDRW: Add batch garbage collection
Clément Foucault [Fri, 19 Apr 2019 00:22:22 +0000 (02:22 +0200)]
DRW: Add batch garbage collection

This is only working for shading batches for the moment and only if some Custom data layer are not needed anymore.

The collection rate is hardcoded at 60 sec but could be exposed to the user.

This system can be extended and discard most unused batches in the future.

This commit is in prevision of removing BKE_MESH_BATCH_DIRTY_SHADING when changing shader parameters.

2 months agoDRW: Make shaded batch validation more correct
Clément Foucault [Thu, 18 Apr 2019 15:25:04 +0000 (17:25 +0200)]
DRW: Make shaded batch validation more correct

This is in order to support garbage collection of unused Custom data layer uploaded to the GPU.

Actual Garbage Collection is not added by this commit.

2 months agoCleanup: Remove image preview code
Sergey Sharybin [Fri, 19 Apr 2019 10:05:51 +0000 (12:05 +0200)]
Cleanup: Remove image preview code

Was commented out for literally 10 years.

2 months agoCleanup: Remove unneeded compositor update function
Sergey Sharybin [Fri, 19 Apr 2019 09:53:00 +0000 (11:53 +0200)]
Cleanup: Remove unneeded compositor update function

Similar to previous commit.

Compositing with animation on socket values and image sequences
still works fine.

2 months agoCleanup: Remove unneeded texture nodes update function
Sergey Sharybin [Fri, 19 Apr 2019 09:11:27 +0000 (11:11 +0200)]
Cleanup: Remove unneeded texture nodes update function

The function was calling update() on the time curve, but there
is no update callback on that node. So, effectively the function
was doing nothing.

2 months agoFix error in recently added STR_ELEM macro
Campbell Barton [Fri, 19 Apr 2019 12:49:57 +0000 (14:49 +0200)]
Fix error in recently added STR_ELEM macro

Very bad oversight, using pointer comparison instead of strcmp
for all but the first item.

2 months agoCMake: fix Cycles linking with OpenCL
Campbell Barton [Fri, 19 Apr 2019 12:00:16 +0000 (14:00 +0200)]
CMake: fix Cycles linking with OpenCL

2 months agoCMake: fix building without smoke enabled
Campbell Barton [Fri, 19 Apr 2019 11:54:43 +0000 (13:54 +0200)]
CMake: fix building without smoke enabled

Was removed when removing sorted libs however it's needed for stubs.

2 months agoFix/workaround crash using ED_area_do_msg_notify_tag_redraw
Campbell Barton [Fri, 19 Apr 2019 10:42:09 +0000 (12:42 +0200)]
Fix/workaround crash using ED_area_do_msg_notify_tag_redraw

Temporary workaround for crash when refreshing the active tool.

Currently ED_region_tag_redraw fails, use notifiers until
this is resolved.

2 months agoUI: minor layout tweaks to 3D viewport gizmo menu
Brecht Van Lommel [Fri, 19 Apr 2019 10:26:11 +0000 (12:26 +0200)]
UI: minor layout tweaks to 3D viewport gizmo menu

2 months agoUI: tweak header context menu, gray out items when they have no effect
Brecht Van Lommel [Fri, 19 Apr 2019 09:53:06 +0000 (11:53 +0200)]
UI: tweak header context menu, gray out items when they have no effect

2 months agoKeymap: add 'Adjust Last Operation' as F9
Campbell Barton [Fri, 19 Apr 2019 07:49:36 +0000 (09:49 +0200)]
Keymap: add 'Adjust Last Operation' as F9

Adding this back was a frequent request.

Now the panel can be hidden - some users may prefer only to access this
via a shortcut.

Unfortunately this uses an F-Key we'd intended to keep free for users.

This still keeps the middle block of F-Keys (5..8) free.

2 months agoKeymap: add set start/end shortcuts to graph editor
Campbell Barton [Fri, 19 Apr 2019 07:36:44 +0000 (09:36 +0200)]
Keymap: add set start/end shortcuts to graph editor

2 months agoKeymap: restore Ctrl-Tab in the dopesheet (removed by accident)
Campbell Barton [Fri, 19 Apr 2019 07:35:53 +0000 (09:35 +0200)]
Keymap: restore Ctrl-Tab in the dopesheet (removed by accident)

Mistake in 6aef124e7d2869a6

2 months agoCorrect cleanup marking keyword args unused
Campbell Barton [Fri, 19 Apr 2019 06:26:18 +0000 (08:26 +0200)]
Correct cleanup marking keyword args unused

2 months agoCleanup: remove redundant poll functions
Campbell Barton [Fri, 19 Apr 2019 06:13:56 +0000 (08:13 +0200)]
Cleanup: remove redundant poll functions

2 months agoCleanup: logical checks in UI scripts
Campbell Barton [Fri, 19 Apr 2019 06:10:39 +0000 (08:10 +0200)]
Cleanup: logical checks in UI scripts

2 months agoCleanup: trailing commas
Campbell Barton [Fri, 19 Apr 2019 06:07:46 +0000 (08:07 +0200)]
Cleanup: trailing commas

2 months agoCleanup: unused vars
Campbell Barton [Fri, 19 Apr 2019 05:52:53 +0000 (07:52 +0200)]
Cleanup: unused vars

2 months agoCleanup: use staticmethod where appropriate
Campbell Barton [Fri, 19 Apr 2019 05:51:14 +0000 (07:51 +0200)]
Cleanup: use staticmethod where appropriate

2 months agoMissing from last commit
Campbell Barton [Fri, 19 Apr 2019 05:49:49 +0000 (07:49 +0200)]
Missing from last commit

2 months agoCleanup: correct misleading classmethod arg
Campbell Barton [Fri, 19 Apr 2019 05:36:07 +0000 (07:36 +0200)]
Cleanup: correct misleading classmethod arg

2 months agoCleanup: mark unused arguments in UI scripts
Campbell Barton [Fri, 19 Apr 2019 05:32:24 +0000 (07:32 +0200)]
Cleanup: mark unused arguments in UI scripts

Quiet's pylint W0613 warning, also remove some unused args.

2 months agoUI: move top-bar into the spaces header
Campbell Barton [Thu, 18 Apr 2019 19:13:22 +0000 (21:13 +0200)]
UI: move top-bar into the spaces header

Currently this is only in the 3D viewport however all spaces
that use the tool-system will have this region added.

D4680 by @brecht with own updates.

2 months agoArmature: remove remains of the object-level deformation data cache.
Alexander Gavrilov [Thu, 18 Apr 2019 20:17:04 +0000 (23:17 +0300)]
Armature: remove remains of the object-level deformation data cache.

Now that B-Bone shape data is kept in bPoseChannel_Runtime, the
armature level cache only holds one quaternion value per bone.
It can also be moved to runtime, and the structure removed.

This has an additional effect that, as far as I can tell, now
the Armature modifier can run as soon as all of the bones it
actually needs are done, thus making T59848 a purely depsgraph
level problem.

2 months agoUI: Revert fix T37463: Y-clamp for header-only spaces
Campbell Barton [Thu, 18 Apr 2019 19:19:49 +0000 (21:19 +0200)]
UI: Revert fix T37463: Y-clamp for header-only spaces

This reverts 91d8519c4782 since I can't redo the reported error
which was in the old header-only info space.

2 months agoPyTests: do not load addons in load_py_modules test.
Bastien Montagne [Thu, 18 Apr 2019 19:11:40 +0000 (21:11 +0200)]
PyTests: do not load addons in load_py_modules test.

It makes no sense to load add-ons here, we already do that (in a more
complete way) in load_addons test, this is only adding overhead and
doubling code to maintain).

Also do not try to load-as-modules add-ons that are not 2.8-ready, and
some other misc fix.

load_py_modules test should be passing again now.

Thanks to @sergey who did part of the work here as well.

2 months agoFix T63332: backup and restore bPoseChannel_Runtime data during COW.
Alexander Gavrilov [Thu, 18 Apr 2019 18:19:57 +0000 (21:19 +0300)]
Fix T63332: backup and restore bPoseChannel_Runtime data during COW.

2 months agoImages: support packing edited images as OpenEXR or PNG.
Brecht Van Lommel [Sat, 20 Feb 2016 13:52:36 +0000 (14:52 +0100)]
Images: support packing edited images as OpenEXR or PNG.

This way float and multilayer images can now be packed without data loss. This
removes the as_png option and always uses the appropriate file format depending
on the image contents.

2 months agoCleanup: unused region init functions
Campbell Barton [Thu, 18 Apr 2019 18:02:09 +0000 (20:02 +0200)]
Cleanup: unused region init functions

2 months agoUI: collapse 3D view collections visibility panel by default.
Brecht Van Lommel [Thu, 18 Apr 2019 17:14:19 +0000 (19:14 +0200)]
UI: collapse 3D view collections visibility panel by default.

2 months agoOpenEXR: add support for writing EXR files to memory.
Brecht Van Lommel [Sat, 20 Feb 2016 13:52:36 +0000 (14:52 +0100)]
OpenEXR: add support for writing EXR files to memory.

2 months agoCleanup: deduplicate single/multiview image packing code.
Brecht Van Lommel [Sat, 3 Mar 2018 15:55:08 +0000 (16:55 +0100)]
Cleanup: deduplicate single/multiview image packing code.

2 months agoCleanup: move image saving code to blenkernel.
Brecht Van Lommel [Sun, 14 Apr 2019 22:24:00 +0000 (00:24 +0200)]
Cleanup: move image saving code to blenkernel.

2 months agoCleanup: make image saving code reusable outside operator.
Brecht Van Lommel [Sat, 20 Feb 2016 21:39:20 +0000 (22:39 +0100)]
Cleanup: make image saving code reusable outside operator.

2 months agoCleanup: deduplicate image user initialization, make consistent.
Brecht Van Lommel [Sat, 20 Feb 2016 21:36:02 +0000 (22:36 +0100)]
Cleanup: deduplicate image user initialization, make consistent.

2 months agoGPencil: Add option to mix color with texture
Antonioya [Thu, 18 Apr 2019 12:19:00 +0000 (14:19 +0200)]
GPencil: Add option to mix color with texture

This was already supported in Fill, but not in Strokes. This adds more artistic options when use textured strokes.

2 months agoCleanup: add trailing commas to avoid right shift
Campbell Barton [Thu, 18 Apr 2019 15:17:32 +0000 (17:17 +0200)]
Cleanup: add trailing commas to avoid right shift

2 months agoPyTests: do not try to load non-2.8-ready add-ons.
Bastien Montagne [Thu, 18 Apr 2019 15:14:17 +0000 (17:14 +0200)]
PyTests: do not try to load non-2.8-ready add-ons.

2 months agoGPencil: Fix Drawing Path follow error while drawing
Antonioya [Thu, 18 Apr 2019 14:59:01 +0000 (16:59 +0200)]
GPencil: Fix Drawing Path follow error while drawing

The strokes was aligned to drawing path only when the stroke was completed. Now, the stroke is aligned while drawing too.

2 months agoGPencil: Initialize variable to remove console warning
Antonioya [Thu, 18 Apr 2019 14:57:41 +0000 (16:57 +0200)]
GPencil: Initialize variable to remove console warning

2 months agoMissing 2.7x keymap update from last commit
Campbell Barton [Thu, 18 Apr 2019 14:41:38 +0000 (16:41 +0200)]
Missing 2.7x keymap update from last commit

2 months agoUI: replace toggle header with a property
Campbell Barton [Thu, 18 Apr 2019 14:35:11 +0000 (16:35 +0200)]
UI: replace toggle header with a property

2 months agoAlembic: catch weird exceptions from library instead of aborting Blender.
Bastien Montagne [Thu, 18 Apr 2019 14:19:17 +0000 (16:19 +0200)]
Alembic: catch weird exceptions from library instead of aborting Blender.

Similar to what is done e.g. in AbcMeshReader::read_mesh()...

2 months agoAMD glitch: missing changes in f41ab375f38b
mano-wii [Thu, 18 Apr 2019 13:53:00 +0000 (10:53 -0300)]
AMD glitch: missing changes in f41ab375f38b

It was committed an earlier version of the patch which missed these changes.

Differential Revision:

2 months agoCleanup: add 'if 0' comment why code is repeated
Campbell Barton [Thu, 18 Apr 2019 13:16:36 +0000 (15:16 +0200)]
Cleanup: add 'if 0' comment why code is repeated

Avoid potentially adding back the problem in the future.

2 months agoFix T62792: AMD glitch when clipping region in edit mode.
mano-wii [Thu, 18 Apr 2019 12:37:07 +0000 (09:37 -0300)]
Fix T62792: AMD glitch when clipping region in edit mode.

The `AMD Radeon HD 7600M` compiler is usually buggy for Geometry Shaders.
In this case, indexing was causing problems in `gl_in[i].gl_ClipDistance[0]`.

Reviewers: fclem

Differential Revision:

2 months agoPyAPI: remove support for importing text blocks as modules
Campbell Barton [Thu, 18 Apr 2019 12:45:23 +0000 (14:45 +0200)]
PyAPI: remove support for importing text blocks as modules

Allowing direct import of text blocks isn't especially useful,
instead add `text.as_module()` script authors can do this
explicitly if it's needed.

Now the text "Register" option executes
instead of loading as a module.

This removes the need to keep track of the current Main,
and C code to override Python's import & reload.

2 months agoFix T63590: Blender crashes when deleting particle hair keys
Sergey Sharybin [Thu, 18 Apr 2019 12:43:25 +0000 (14:43 +0200)]
Fix T63590: Blender crashes when deleting particle hair keys