Commit Graph

67144 Commits

Author SHA1 Message Date
Philipp Oeser
65b4ebbbd5 Fix T60056: Make Duplicates Real with Keep Hierarchy does nothing
Caused by rB36ca072375deea4803df4681716c1d3224095e07
[one instance of `DEG_get_original_object` was neccesary, the other one
breaks getting the parent in `BLI_ghash_lookup`]

Reviewed by: brecht

Differential Revision: https://developer.blender.org/D4154
2019-01-03 12:12:12 +01:00
Antonioya
da8febb319 Fix T59527: Segment fault changing layer visibility and onion skin
In some situation when the layer is hidden, the onion skin must be disabled too, because the material is not available.
2019-01-03 10:39:14 +01:00
Campbell Barton
bef06a658a Cleanup: indentation 2019-01-03 17:30:54 +11:00
Campbell Barton
d2c941def3 DRW: remove INDEX4 normal flipping
Added in 531e5ad49a but I couldn't find a case when it's needed,
It's not needed for solid-mode viewport drawing for eg.
2019-01-03 17:25:21 +11:00
Campbell Barton
052150bbcc Revert "GPU: add negated normal conversion functions"
This reverts commit d28b29d428.
2019-01-03 17:19:05 +11:00
Campbell Barton
4c7b303256 Fix T59842: Curve flat shading doesn't work
Calculate flat shaded normals when creating batch cache.

Note that 2.7x was using vertex normals as flat-face normals.
2019-01-03 16:56:53 +11:00
Campbell Barton
d28b29d428 GPU: add negated normal conversion functions
Saves having to negate to a temporary variable.
2019-01-03 16:56:16 +11:00
Campbell Barton
6cb3972063 Cleanup: variable name 2019-01-03 16:02:26 +11:00
Campbell Barton
9200dc0eb1 Cleanup: preprocessor indentation 2019-01-03 15:52:07 +11:00
Campbell Barton
b01f2607a6 Transform: default shrink/fatten even-offset to false
Changed for 2.8 but this cases spikes for some geometry, see: T59968
2019-01-03 15:13:46 +11:00
Campbell Barton
487df02198 Fix new material for pinned objects
Grease pencil check was using active object.
2019-01-03 12:34:31 +11:00
Campbell Barton
ba9e10fd6a Merge branch 'blender2.7' 2019-01-03 12:25:37 +11:00
Campbell Barton
847b21ee08 Fix T60014: material link pref ignored
The PreferencesEdit.material_link only worked for adding slots,
adding an initial new material didn't respect the preference.
2019-01-03 12:20:08 +11:00
mano-wii
11f2c65128 Fix (unreported): unpredictable crashes when it is done snap after automerge.
The `em->tottri` of an evaluated object can be different from the actual amount of looptris.
2019-01-02 16:59:20 -02:00
Brecht Van Lommel
56d6d13b0d Fix T58859: render with compositor does not render other scenes. 2019-01-02 20:22:16 +01:00
Brecht Van Lommel
7e7657da29 Fix wrong alpha blending for datablock preview icons. 2019-01-02 20:11:10 +01:00
Brecht Van Lommel
8063d72b08 Fix T60037: single column layout breaks file browse button. 2019-01-02 19:22:56 +01:00
Brecht Van Lommel
26e0dc5d15 Fix T59063: operator search menu loses background in some cases. 2019-01-02 18:56:36 +01:00
Brecht Van Lommel
f8ce4ebf07 Fix wrong grease pencil shader FX usage of object location.
It should use the evaluated object location, and not add any unnecessary
dependency on geometry data.
2019-01-02 18:18:11 +01:00
Antonioya
0ee97bd5c4 Fix T60051: Wrong stroke projection when viewmode set to Front
As the z-depth is calculated using the internal drawing, if we use the front mode the z-depth is wrong. The Front or Back mode must be used only for display, but not for calculation.
2019-01-02 17:43:27 +01:00
Antonioya
7765277240 Fix T60031: Joining two Grease Pencilobjects sometimes crashes
The drawing cache was not set as dirty and drawing engine used old data.
2019-01-02 17:10:37 +01:00
Campbell Barton
ae50a7df03 Fixes and edits to studio light operators
- Remove pathlib use
  (was converting to/from string with no real advantage).
- Use user_resource(..., create=True) to ensure the path exists.
- Pass full path to BKE_studiolight_create, don't add extension after.
- Fix 'sl' filtering glob and move from ui code to operator.
- Fix string copy length.
2019-01-03 02:13:00 +11:00
Campbell Barton
72e2a0cfb6 Cleanup: py-gpu error checks
Move gpu initialization checks to the start of each function instead
of mixing with argument parsing.
2019-01-03 01:08:26 +11:00
Campbell Barton
d07bc44a96 Revert file rename from T59773 fix
Mixing file rename with other changes should be avoided.

Using 'module_py_api' convention here
is in keeping with imbuf, idprop, blf & bmesh.
No reason for gpu to have a different convention.
2019-01-03 00:55:07 +11:00
mano-wii
945007b32e Fix T59773: Raise exception if the gpu module is used in backgound mode.
Instead of crashing, an error message is displayed if a function of the gpu module is called without a GPU context.

Reviewers: brecht, campbellbarton, JacquesLucke, mont29

Subscribers: abdelmatinboulbayam, amir.shehata

Differential Revision: https://developer.blender.org/D4143
2019-01-02 10:01:46 -02:00
Bastien Montagne
f15205b93f Fix T60060: Corrective Smooth Modifier binding process is broken.
Same as with the other modifiers' binding ops, those need to be
performed outside of regular depsgraph eval.
2019-01-02 11:26:31 +01:00
Antonioya
39e0bfe5a2 GP: Cleanup pad to _pad 2019-01-02 10:55:17 +01:00
Campbell Barton
0e81191596 Fix T59886: Missing transform gizmo update 2019-01-02 18:46:43 +11:00
Campbell Barton
3788f58e74 3D View: use grid & all axes in axis-views
Matches 2.7x behavior.
2019-01-02 18:33:07 +11:00
Campbell Barton
a76b045326 UI: add scale option for template_icon_view button
The existing scale option only changed the scale if icons in the popup.
2019-01-02 18:18:54 +11:00
Campbell Barton
15e63742e2 Cleanup: use RNA icon instead of passing as an arg 2019-01-02 17:24:24 +11:00
Campbell Barton
1a208f0326 Cleanup: indentation, naming
Use rna naming conventions for unit-settings callbacks.
2019-01-02 17:07:47 +11:00
Campbell Barton
09f46ef6fa PyRNA: enum no longer returns first item when the value isn't found
This hides errors & makes it confusing to debug mistakes
when the enum items aren't correct.

Return an empty string instead.
2019-01-02 16:39:45 +11:00
Campbell Barton
aae5f2b046 Fix image editor tool-settings missing from topbar 2019-01-02 16:26:52 +11:00
Campbell Barton
8fbba22205 Cleanup: rename manipulator references 2019-01-02 15:43:58 +11:00
Campbell Barton
5484ed01ad Cleanup: use '_pad' in DNA
Convention used elsewhere, has advantage pad vars don't autocomplete
with other vars beginning w/ 'p'.
2019-01-02 15:38:45 +11:00
Campbell Barton
2b3effe0ce Cleanup: rename target_weight -> weight
Match name of mesh weight paint.
2019-01-02 15:31:56 +11:00
Antonioya
4dd0a90f42 GP: Don't use offset for Stroke projection
The offset is only used in Surface mode.
2019-01-01 16:44:10 +01:00
mano-wii
4d795cee49 Fix T60015: snap to grid - snaps only to largest increment
Caused by rBc7a96651dfa4 when trying to remove all uses of the deprecated `rv3d->gridview`.
2018-12-31 13:45:20 -02:00
Brecht Van Lommel
82e0739f64 Outliner: expand view layer collections by default, revealing objects. 2018-12-31 16:39:15 +01:00
Brecht Van Lommel
c1d82e5849 Templates: tweaks to startup templates.
* 2D Animation: lots of changes from the grease pencil team. Properties
  editor layouts, brush and material settings, and more.
* 3D Viewport: wireframes set to 1.0.
* World: use nodes by default.
* Node Editor: use narrow toolbar.
2018-12-31 16:26:22 +01:00
Brecht Van Lommel
93fa7417d5 Cleanup: specify default studiolight name, instead using first alphabetically. 2018-12-31 15:40:42 +01:00
William Reynish
27619d7271 UI: icon set updates by Andrzej Ambroz. 2018-12-31 13:52:45 +01:00
Campbell Barton
bcf0c71433 Cleanup: remove non-existing function declarations 2018-12-31 00:58:54 +11:00
Antonioya
d273e84c41 GP: Mew Merge Strokes operator
This operator allows to create a new stroke joining several selected points of different strokes.

The new stroke will use the current material.

To use, first select the points to be merged. Optionally can remove the old points and strokes.

The operator is available in Edit mode in the Specials menu and Stroke menu.
2018-12-30 13:08:04 +01:00
Campbell Barton
543ddbe6bf Cleanup: warnings (clang) 2018-12-30 15:15:05 +11:00
Severin
266b1e2cdb Fix: Scrolling Preferences could cause blank UI
Steps to reproduce were:
* Open Preferences
* Choose "Input" category
* Scroll to the bottom
* Choose "Interface" category

The newly activated category should now use the scrolling set previously
in the other category, causing the contents to be out of view. You
would have to scroll to bring it back.

Now scrolling is stored per category.
2018-12-29 19:10:21 +01:00
Jacques Lucke
07569a333b Fix T59675: Motion path frame numbers at wrong positions
Reviewed By: brecht

Differential Revision: https://developer.blender.org/D4113
2018-12-29 18:34:25 +01:00
Campbell Barton
363cf1152f Cleanup: use bool, style 2018-12-29 10:04:39 +11:00
Brecht Van Lommel
3f4e3f718f Cycles: restore old sample and material override settings for view layers.
Since there will be no view layer overrides in 2.80, this is needed still.
2018-12-28 18:59:33 +01:00