blender.git
2 hours agoLANPR: modified "item" into prev/next in lanpr_data_types.h soc-2019-npr
Yiming Wu [Wed, 26 Jun 2019 13:50:13 +0000 (21:50 +0800)]
LANPR: modified "item" into prev/next in lanpr_data_types.h

6 hours agoLANPR: collection GP target now working.
YimingWu [Wed, 26 Jun 2019 09:02:18 +0000 (17:02 +0800)]
LANPR: collection GP target now working.

7 hours agoLANPR: collection and object usage flags now effective. object flags overrides modifier.
YimingWu [Wed, 26 Jun 2019 08:28:21 +0000 (16:28 +0800)]
LANPR: collection and object usage flags now effective. object flags overrides modifier.

8 hours agoLANPR: Object usage flag is effective now.
YimingWu [Wed, 26 Jun 2019 07:32:53 +0000 (15:32 +0800)]
LANPR: Object usage flag is effective now.

8 hours agoLANPR: move "usage" settings into struct ObjectLANPR.
YimingWu [Wed, 26 Jun 2019 07:20:35 +0000 (15:20 +0800)]
LANPR: move "usage" settings into struct ObjectLANPR.

9 hours agoLANPR: separate thresholds for image/geometry space chaining.
YimingWu [Wed, 26 Jun 2019 06:29:28 +0000 (14:29 +0800)]
LANPR: separate thresholds for image/geometry space chaining.

9 hours agoLANPR: Fixed occlusion bugs in first-step chaining.
YimingWu [Wed, 26 Jun 2019 06:02:20 +0000 (14:02 +0800)]
LANPR: Fixed occlusion bugs in first-step chaining.

10 hours agoLANPR: shaders now support main color/thickness.
YimingWu [Wed, 26 Jun 2019 05:28:02 +0000 (13:28 +0800)]
LANPR: shaders now support main color/thickness.

11 hours agoMerge branch 'master' into soc-2019-npr
YimingWu [Wed, 26 Jun 2019 04:44:13 +0000 (12:44 +0800)]
Merge branch 'master' into soc-2019-npr

13 hours agoRNA: only search necessary space types when unregistered panels
Campbell Barton [Wed, 26 Jun 2019 02:50:42 +0000 (12:50 +1000)]
RNA: only search necessary space types when unregistered panels

13 hours agoCleanup: un-wrap lines in headers, use doxy comments
Campbell Barton [Wed, 26 Jun 2019 02:40:22 +0000 (12:40 +1000)]
Cleanup: un-wrap lines in headers, use doxy comments

16 hours agoRevert "GPU: Create and use new GPU_texture_read_rect utility."
mano-wii [Tue, 25 Jun 2019 23:26:46 +0000 (20:26 -0300)]
Revert "GPU: Create and use new GPU_texture_read_rect utility."

This reverts commit e061cb44378efaf159a30fb1c5834db48ffb2bb3.
This function is problematic on some operating systems.

# Conflicts:
# source/blender/draw/intern/draw_manager.c
# source/blender/gpu/GPU_texture.h
# source/blender/gpu/intern/gpu_texture.c

18 hours agoMSVC: Don't share pch between debug and release builds.
Ray Molenkamp [Tue, 25 Jun 2019 21:27:21 +0000 (15:27 -0600)]
MSVC: Don't share pch between debug and release builds.

Precompiled headers were sharing the PCH file between debug and
release builds which is 'bad'. Adding the configuration to the
path fixes the issue.

Reported on chat by @mano-wii

18 hours agoPartial fix to T66126: Non-Active Grease Pencil object stuck in drawmode
Dalai Felinto [Tue, 25 Jun 2019 21:00:33 +0000 (18:00 -0300)]
Partial fix to T66126: Non-Active Grease Pencil object stuck in drawmode

This only handles the issue after file load.

To make it an all-around solution we need to deal with
this in ed_object_select_pick, do_outliner_item_activate_tree_element(),
...

20 hours agoFix (unreported) missing Scene's GPencil pointer handling in library_query...
Bastien Montagne [Tue, 25 Jun 2019 19:17:29 +0000 (21:17 +0200)]
Fix (unreported) missing Scene's GPencil pointer handling in library_query...

20 hours agoGPencil: Fix User count error when use python to create object
Antonioya [Tue, 25 Jun 2019 16:52:22 +0000 (18:52 +0200)]
GPencil: Fix User count error when use python to create object

The user count was 2, when the real value must be 1.

The problem was the datablock was created with one user by default.

See: D5131
Reviewers: @mont29

21 hours agoIndustry Compat keymap: LMB-dragging in UV Editor box selects
William Reynish [Tue, 25 Jun 2019 18:04:09 +0000 (20:04 +0200)]
Industry Compat keymap: LMB-dragging in UV Editor box selects

This makes it possible to drag outside of the Transform gizmo to select

22 hours agoIndustry Compat keymap: Use Move, Rotate, Scale tools for UV transform, instead of...
William Reynish [Tue, 25 Jun 2019 17:28:08 +0000 (19:28 +0200)]
Industry Compat keymap: Use Move, Rotate, Scale tools for UV transform, instead of modal operators

22 hours agoFix T65999: Crash when disabling an addon while its panel is visible
Dalai Felinto [Fri, 21 Jun 2019 16:19:16 +0000 (13:19 -0300)]
Fix T65999: Crash when disabling an addon while its panel is visible

Note, the performance of the tests we run here is still bad since we have plenty
of panels around. But better than the crash.

Reviewers: brecht

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

24 hours agoUI: rename navigation buttons -> controls
Campbell Barton [Tue, 25 Jun 2019 15:40:27 +0000 (01:40 +1000)]
UI: rename navigation buttons -> controls

24 hours agoTool System: add UV transform tools
Campbell Barton [Tue, 25 Jun 2019 15:39:58 +0000 (01:39 +1000)]
Tool System: add UV transform tools

24 hours agoCleanup: tweaks to fix for T66065
Campbell Barton [Tue, 25 Jun 2019 15:44:58 +0000 (01:44 +1000)]
Cleanup: tweaks to fix for T66065

This fix changed repr() to str().

24 hours agoFix T66065: Missing text in the UI translations files due to 'fstring' usages.
Bastien Montagne [Tue, 25 Jun 2019 15:26:56 +0000 (17:26 +0200)]
Fix T66065: Missing text in the UI translations files due to 'fstring' usages.

Am not even sure that it is possible to use fstrings at all when UI
translation is required (that is, is a sensible, reasonable way that
does not make things even more complicated than they already are), but
one thing is certain, this won't be trivial to get it working, so
definitively not a job for now.

Instead just do not use fstrings for UI translatable strings.

25 hours agoFix related to T65963: Ctest: Failing test script_load_keymap passes.
Bastien Montagne [Tue, 25 Jun 2019 14:07:28 +0000 (16:07 +0200)]
Fix related to T65963: Ctest: Failing test script_load_keymap passes.

Fix things to make test actually fail as expected (one cannot compare
functions to strings, so no more sorting for now).

Not sure how to actually fix the test though, not even sure test make
any sense anymore actually, with all those weirdo gizmos and tools
keymaps thingy...

25 hours agoFix (unreported) call to wrong func in gizmos' keymaps code.
Bastien Montagne [Tue, 25 Jun 2019 14:06:29 +0000 (16:06 +0200)]
Fix (unreported) call to wrong func in gizmos' keymaps code.

Found while investigating T65963.

26 hours agoPreferences: changes to navigation gizmo
Campbell Barton [Tue, 25 Jun 2019 11:34:21 +0000 (21:34 +1000)]
Preferences: changes to navigation gizmo

- Add 'Navigation Buttons' preference, used for 2D views
  (previously this couldn't be disabled).
- Add "Off" option for 3D view axis.
- Support minimal axis with navigation buttons.

27 hours agoFix: Remove 'Separate Images' from Sequencer Movie options
William Reynish [Tue, 25 Jun 2019 12:23:21 +0000 (14:23 +0200)]
Fix: Remove 'Separate Images' from Sequencer Movie options

Separate Images does not have any effect on Movie strips, so this removes this option from the Movie menu.

Author: Peter Fog

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

27 hours agoUse prop_factor instead of prop_percentage for Sequencer text placement
William Reynish [Tue, 25 Jun 2019 12:10:15 +0000 (14:10 +0200)]
Use prop_factor instead of prop_percentage for Sequencer text placement

Since it goes from 0-1 and not 0-100.

27 hours agoSequencer: Fix missing icons for text alignment
William Reynish [Tue, 25 Jun 2019 12:06:47 +0000 (14:06 +0200)]
Sequencer: Fix missing icons for text alignment

Now is consistent with Text objects

Also fix wrong unit for text placement and tooltip-

27 hours agoGPencil: Add Lattice modifier when use Ctrl+P to Lattice Deform
Antonioya [Tue, 25 Jun 2019 11:59:59 +0000 (13:59 +0200)]
GPencil: Add Lattice modifier when use Ctrl+P to Lattice Deform

When parent a Grease Pencil object to Lattice, automatically a Lattice modifier is added.

29 hours agoFix T63921: Unable to use confirm on release for keyboard shortcuts
Sebastian Parborg [Tue, 25 Jun 2019 10:24:25 +0000 (12:24 +0200)]
Fix T63921: Unable to use confirm on release for keyboard shortcuts

The issue was that we were still working around a Xorg bug that has been solved since a very long time:
https://bugs.freedesktop.org/show_bug.cgi?id=22515
The second issue was that the global "confirm on release for mouse clicks" was used for keyboard shortcuts as well.

Reviewed By: Campbell

Differential Revision: http://developer.blender.org/D5128

30 hours agoLANPR: all the if() statements now use {} brackets.
YimingWu [Tue, 25 Jun 2019 09:43:01 +0000 (17:43 +0800)]
LANPR: all the if() statements now use {} brackets.

30 hours agoCompress macOS DMG background image
William Reynish [Tue, 25 Jun 2019 09:37:02 +0000 (11:37 +0200)]
Compress macOS DMG background image

From 2.3 mb to 34 kb

Required adjusting background color. Also fixed blurry Blender logo.

30 hours agoLANPR: Added collection target and related options.
YimingWu [Tue, 25 Jun 2019 08:54:47 +0000 (16:54 +0800)]
LANPR: Added collection target and related options.

31 hours agoLANPR: make format
YimingWu [Tue, 25 Jun 2019 08:21:03 +0000 (16:21 +0800)]
LANPR: make format

31 hours agoLANPR: Added collection tab and put collection specific LANPR settings in it.
YimingWu [Tue, 25 Jun 2019 08:18:58 +0000 (16:18 +0800)]
LANPR: Added collection tab and put collection specific LANPR settings in it.

31 hours agoSequencer UI: Move Refresh button from header to the View menus
William Reynish [Tue, 25 Jun 2019 08:00:20 +0000 (10:00 +0200)]
Sequencer UI: Move Refresh button from header to the View menus

This button didn't need to be so prominent, and clashed with the Sequencer sidebar

32 hours agoFix: Wrong check in Sequencer sidebar
William Reynish [Tue, 25 Jun 2019 07:39:40 +0000 (09:39 +0200)]
Fix: Wrong check in Sequencer sidebar

Didn't reflect recent naming changes.

33 hours agoGPENCIL: Prevent sampling from crashing. Need a new implementation to calculate actur...
YimingWu [Tue, 25 Jun 2019 06:33:07 +0000 (14:33 +0800)]
GPENCIL: Prevent sampling from crashing. Need a new implementation to calculate acturate segment count.

33 hours agoTexturePaint: Fix Shader Compilation
Jeroen Bakker [Tue, 25 Jun 2019 06:07:50 +0000 (08:07 +0200)]
TexturePaint: Fix Shader Compilation

33 hours agoGPENCIL: removed weights sample. Needs new implementaion.
YimingWu [Tue, 25 Jun 2019 06:04:41 +0000 (14:04 +0800)]
GPENCIL: removed weights sample. Needs new implementaion.

34 hours agoLANPR: target GP material selection working
YimingWu [Tue, 25 Jun 2019 05:44:44 +0000 (13:44 +0800)]
LANPR: target GP material selection working

34 hours agoLANPR: red-out modifier name when target is not set.
YimingWu [Tue, 25 Jun 2019 05:25:36 +0000 (13:25 +0800)]
LANPR: red-out modifier name when target is not set.

34 hours agoLANPR: filter GP targets only.
YimingWu [Tue, 25 Jun 2019 05:24:35 +0000 (13:24 +0800)]
LANPR: filter GP targets only.

35 hours agoLANPR: Comment changed into C style.
YimingWu [Tue, 25 Jun 2019 04:39:39 +0000 (12:39 +0800)]
LANPR: Comment changed into C style.

35 hours agoMerge branch 'master' into soc-2019-npr
YimingWu [Tue, 25 Jun 2019 04:15:12 +0000 (12:15 +0800)]
Merge branch 'master' into soc-2019-npr

38 hours agoFix T66096: Crash in Cycles versioning
Campbell Barton [Tue, 25 Jun 2019 01:22:23 +0000 (11:22 +1000)]
Fix T66096: Crash in Cycles versioning

38 hours agoFix building without bullet enabled
Campbell Barton [Tue, 25 Jun 2019 01:27:25 +0000 (11:27 +1000)]
Fix building without bullet enabled

45 hours agoFix T65996: metaballs converted to meshes appear to render at an incorrect isosurface.
Bastien Montagne [Mon, 24 Jun 2019 18:40:56 +0000 (20:40 +0200)]
Fix T65996: metaballs converted to meshes appear to render at an incorrect isosurface.

Not much to be done here really, besides adding yet another hack to that
giant pile of hacks that are mballs...

So to avoid newly created copy of basis of mball to influence to mball
computation, we simply switch it to Empty object for the depsgraph
update run.

Not nice, but working (besides a weird change of basis obflag which
should not happen), and presumably reasonably safe change.

47 hours agoFix T63828, T62005: copy/paste or append loses rigid body object
Brecht Van Lommel [Mon, 24 Jun 2019 12:57:52 +0000 (14:57 +0200)]
Fix T63828, T62005: copy/paste or append loses rigid body object

Previously settings were removed, now add to the rigid body world automatically
even if it's a bit ill defined, since this is confusing for users.

Fundamentally the concept of a rigid body world collection could be revised, and
left only as an optional thing.

2 days agoCleanup: clarify branch which shouldn't be possible
Campbell Barton [Mon, 24 Jun 2019 15:16:51 +0000 (01:16 +1000)]
Cleanup: clarify branch which shouldn't be possible

2 days agoFix T66074: Number shortcut for brushes doesn't work
Campbell Barton [Mon, 24 Jun 2019 15:06:17 +0000 (01:06 +1000)]
Fix T66074: Number shortcut for brushes doesn't work

Add number brush switching for 2.7x map.

2 days agoWM: add operator to set the tool by it's index
Campbell Barton [Mon, 24 Jun 2019 15:06:09 +0000 (01:06 +1000)]
WM: add operator to set the tool by it's index

Needed for 2.7x brush switching keys.

2 days agoCleanup: use doxy groups
Campbell Barton [Mon, 24 Jun 2019 13:16:44 +0000 (23:16 +1000)]
Cleanup: use doxy groups

2 days agoFix T66030: [CRASH] Modifying Normals with Skin Modifier.
Bastien Montagne [Mon, 24 Jun 2019 14:29:37 +0000 (16:29 +0200)]
Fix T66030: [CRASH] Modifying Normals with Skin Modifier.

clnor editing code was simply not checking at all whether it has
something to work on... Guess nobody had idea to edit custom normals on
a mesh that has no normals before! :P

This should probably be handled in a poll function too, to completely
disable those tools when there are no faces/loops, but let's keep it to
minimal changes at that point.

2 days agoLANPR: Fix compiler issues
Antonioya [Mon, 24 Jun 2019 13:51:47 +0000 (15:51 +0200)]
LANPR: Fix compiler issues

Yo need define the variable to copy and not the pointer array.

Also some clang format fixes done automatically by VS editor.

2 days agoFix T66050: Textbox is not updated, when controlled with drivers
Sergey Sharybin [Mon, 24 Jun 2019 12:57:52 +0000 (14:57 +0200)]
Fix T66050: Textbox is not updated, when controlled with drivers

2 days agoFix T66076: crash deleting imported Alembic object
Brecht Van Lommel [Mon, 24 Jun 2019 12:47:46 +0000 (14:47 +0200)]
Fix T66076: crash deleting imported Alembic object

2 days agoCycles: Cleanup, remove unused argument
Sergey Sharybin [Mon, 24 Jun 2019 12:42:20 +0000 (14:42 +0200)]
Cycles: Cleanup, remove unused argument

Became obsolete/unused after recent fix.

2 days agoFix T65812: Image empty has wrong aspect with limit texture size
Campbell Barton [Mon, 24 Jun 2019 12:09:04 +0000 (22:09 +1000)]
Fix T65812: Image empty has wrong aspect with limit texture size

2 days agoFix T66053: hair shape panel shows for emitter particles
Brecht Van Lommel [Mon, 24 Jun 2019 12:02:23 +0000 (14:02 +0200)]
Fix T66053: hair shape panel shows for emitter particles

2 days agoCleanup: use doxy comments for DNA_windowmanager_types.h
Campbell Barton [Mon, 24 Jun 2019 11:41:55 +0000 (21:41 +1000)]
Cleanup: use doxy comments for DNA_windowmanager_types.h

2 days agoFix T65824: Span property ignored in mesh.fill_grid
Campbell Barton [Mon, 24 Jun 2019 11:41:17 +0000 (21:41 +1000)]
Fix T65824: Span property ignored in mesh.fill_grid

The fix for T60777 caused this operator not to work from Python.

Add a repeat_last flag for operator execution.

2 days agoFix T66075: memory leak in Cycles render tile updates
Brecht Van Lommel [Mon, 24 Jun 2019 11:34:31 +0000 (13:34 +0200)]
Fix T66075: memory leak in Cycles render tile updates

2 days agoGPENCIL: Sample function now handles weights as well.
YimingWu [Mon, 24 Jun 2019 11:16:18 +0000 (19:16 +0800)]
GPENCIL: Sample function now handles weights as well.

2 days agoFix errors raised at generating Python API docs
Campbell Barton [Mon, 24 Jun 2019 10:05:36 +0000 (20:05 +1000)]
Fix errors raised at generating Python API docs

D5121 by @Nutti

2 days agoLANPR: fix error in GPencilModifierType. allocate for GPencil weights.
YimingWu [Mon, 24 Jun 2019 09:15:35 +0000 (17:15 +0800)]
LANPR: fix error in GPencilModifierType. allocate for GPencil weights.

2 days agoMerge remote-tracking branch 'origin/soc-2019-npr' into soc-2019-npr
YimingWu [Mon, 24 Jun 2019 08:51:04 +0000 (16:51 +0800)]
Merge remote-tracking branch 'origin/soc-2019-npr' into soc-2019-npr

2 days agoLANPR: removed GP Stroke modifier, Object modifier now only create visible strokes...
YimingWu [Mon, 24 Jun 2019 08:49:04 +0000 (16:49 +0800)]
LANPR: removed GP Stroke modifier, Object modifier now only create visible strokes and follow level values.

2 days agoLANPR: Apply clang format
Antonioya [Mon, 24 Jun 2019 08:48:41 +0000 (10:48 +0200)]
LANPR: Apply clang format

2 days agoLANPR: Fix pointer mistakes.
YimingWu [Mon, 24 Jun 2019 08:15:39 +0000 (16:15 +0800)]
LANPR: Fix pointer mistakes.

2 days agoFix T66072: GPencil "stroke placement:surface" uses "stroke placement:stroke"s target...
Antonioya [Mon, 24 Jun 2019 08:14:39 +0000 (10:14 +0200)]
Fix T66072: GPencil "stroke placement:surface" uses "stroke placement:stroke"s target parameters

The stroke parameters were used in Surface mode becaus ethe mode was not checked.

2 days agoFix T66071: Navigation tooltip shows outside of 3D view
Campbell Barton [Mon, 24 Jun 2019 07:05:22 +0000 (17:05 +1000)]
Fix T66071: Navigation tooltip shows outside of 3D view

Clear gizmo highlight when the cursor leaves the region.

2 days agoLANPR: use "master style" instead of following contour style.
YimingWu [Mon, 24 Jun 2019 01:23:50 +0000 (09:23 +0800)]
LANPR: use "master style" instead of following contour style.

2 days agoGPENCIL: use copy_v3_v3 for gp points.
YimingWu [Mon, 24 Jun 2019 00:35:30 +0000 (08:35 +0800)]
GPENCIL: use copy_v3_v3 for gp points.

2 days agoUI: Rename "Dupli" to "Duplicate" in Spin Tool
Aaron Carlisle [Sun, 23 Jun 2019 23:29:57 +0000 (01:29 +0200)]
UI: Rename "Dupli" to "Duplicate" in Spin Tool

2 days agoUI: Rename Make Duplicates Real to Make Instances Real
Aaron Carlisle [Sun, 23 Jun 2019 22:54:42 +0000 (00:54 +0200)]
UI: Rename Make Duplicates Real to Make Instances Real

Part of T56648

2 days agoUI: Rename Dupli-Face to Instance Face
Aaron Carlisle [Sun, 23 Jun 2019 22:45:12 +0000 (00:45 +0200)]
UI: Rename Dupli-Face to Instance Face

Part of T56648

3 days agoGPencil: Cleanup code
Antonioya [Sun, 23 Jun 2019 15:49:46 +0000 (17:49 +0200)]
GPencil: Cleanup code

3 days agoDNA: reduce Object size by 16 bytes
Campbell Barton [Sun, 23 Jun 2019 10:58:24 +0000 (20:58 +1000)]
DNA: reduce Object size by 16 bytes

No need to use int for boolean value.

3 days agoCleanup: unused args
Campbell Barton [Sun, 23 Jun 2019 10:51:07 +0000 (20:51 +1000)]
Cleanup: unused args

3 days agoLANPR: make format
YimingWu [Sun, 23 Jun 2019 10:01:07 +0000 (18:01 +0800)]
LANPR: make format

3 days agoLANPR: two step chaining, need a toggle for switching 2d/3d space priority.
YimingWu [Sun, 23 Jun 2019 10:00:03 +0000 (18:00 +0800)]
LANPR: two step chaining, need a toggle for switching 2d/3d space priority.

3 days agoLANPR: Fixed modifier read pointer error by providing foreachObjectLink() callback.
YimingWu [Sun, 23 Jun 2019 08:11:21 +0000 (16:11 +0800)]
LANPR: Fixed modifier read pointer error by providing foreachObjectLink() callback.

3 days agoLANPR: modifier controlled stroke generation is working. (only manual)
YimingWu [Sun, 23 Jun 2019 07:30:16 +0000 (15:30 +0800)]
LANPR: modifier controlled stroke generation is working. (only manual)

3 days agoLANPR: feature line modifier manual update
YimingWu [Sun, 23 Jun 2019 06:28:29 +0000 (14:28 +0800)]
LANPR: feature line modifier manual update

3 days agoUI: Only Origins: Correct tooltip
Aaron Carlisle [Sun, 23 Jun 2019 01:57:53 +0000 (03:57 +0200)]
UI: Only Origins: Correct tooltip

3 days agoCleanup: pep8
Campbell Barton [Sun, 23 Jun 2019 01:33:50 +0000 (11:33 +1000)]
Cleanup: pep8

3 days agoCleanup: unused args
Campbell Barton [Sun, 23 Jun 2019 01:37:45 +0000 (11:37 +1000)]
Cleanup: unused args

3 days agoUI: Rename "Zoom Border --> Zoom Region"
Aaron Carlisle [Sun, 23 Jun 2019 01:31:49 +0000 (03:31 +0200)]
UI: Rename "Zoom Border --> Zoom Region"

Part of T56648

3 days agoUI: Rename "Viewer Border" to "Viewer Region"
Aaron Carlisle [Sun, 23 Jun 2019 01:16:33 +0000 (03:16 +0200)]
UI: Rename "Viewer Border" to "Viewer Region"

Part of T56648

3 days agoUI: Rename "Draw Thin" to "Display Thin"
Aaron Carlisle [Sat, 22 Jun 2019 23:56:20 +0000 (01:56 +0200)]
UI: Rename "Draw Thin" to "Display Thin"

Part of T56648

3 days agoUI: Adjust naming for recent Scene Strip options
William Reynish [Sat, 22 Jun 2019 22:19:28 +0000 (00:19 +0200)]
UI: Adjust naming for recent Scene Strip options

  - Use Sequencer rather than Sequence
  - Use Camera rather than 3D Camera

3 days agoUI: Add Strip Type Icons in the VSE Sidebar Header
William Reynish [Sat, 22 Jun 2019 22:16:26 +0000 (00:16 +0200)]
UI: Add Strip Type Icons in the VSE Sidebar Header

This helps users identify the active strip type much more clearly.

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

3 days agoFix T66022: crash adding subdivision surface modifier to some meshes
Brecht Van Lommel [Sat, 22 Jun 2019 21:43:25 +0000 (23:43 +0200)]
Fix T66022: crash adding subdivision surface modifier to some meshes

This reverts commit 7c9f64d00835:
"Fix T63766: Multiresolution behavior when using crease edge"

4 days agoGPencil: Fix Fast Drawing and MSAA disabled in previous commit
Antonioya [Sat, 22 Jun 2019 15:47:00 +0000 (17:47 +0200)]
GPencil: Fix Fast Drawing and MSAA disabled in previous commit

The previous commit disable the fast drawing if the background texture was not ready, but it did not detect the Painting mode, so the fast was always disabled.

Now the check is done inside paint mode.

4 days agoGPencil: Don't use MSAA for background texture
Antonioya [Sat, 22 Jun 2019 15:11:53 +0000 (17:11 +0200)]
GPencil: Don't use MSAA for background texture

This texture has already the MSAA applied.

4 days agoFix T65955: GPencil: drawing shapes on surface causes intense viewport flickering
Antonioya [Sat, 22 Jun 2019 14:47:18 +0000 (16:47 +0200)]
Fix T65955: GPencil: drawing shapes on surface causes intense viewport flickering

There were some problems in the engine because the data was saved inside e_data struct, but this struct is reset sometimes and the background texture is not valid.

Now, the data has been moved to stl->g_data and all creation and free has been moved to use stl->g_data. This fix also some small memory leak for the Buffer GPUBatch data.

The background texture has been moved to texture list because must be available all the time. When is not drawing, the texture is removed to safe memory. Also, if the mode is painting and the texture is not ready because it was removed by Draw Manager, the texture is reloaded with the background image again. This ensure the background image is always visible when painting.

Also I have used this patch to reduce the size of texture used for background to 16F instead of 32F and the blank texture to 1x1 pixels instead of 16x16.

Reviewed by: @fclem

See D5115 for more details

4 days agomacOS: tweaks for macOS bundle script
Brecht Van Lommel [Sat, 22 Jun 2019 13:51:35 +0000 (15:51 +0200)]
macOS: tweaks for macOS bundle script

* Follow Blender code style a bit more closely
* Fix mixed tabs and spaces
* Remove old README now that it's part of the script
* Make less tied to specific Blender version numbers

4 days agoNodes: show shader -> other socket type as invalid link
Brecht Van Lommel [Sat, 22 Jun 2019 13:36:29 +0000 (15:36 +0200)]
Nodes: show shader -> other socket type as invalid link