Commit Graph

67011 Commits

Author SHA1 Message Date
Campbell Barton
0dabd312d4 Library: correct BKE_id_to_unique_string_key fix 2018-12-21 08:37:18 +11:00
Antonioya
4d9606ef19 GP: Use only selected points to calc transform center 2018-12-20 21:25:29 +01:00
Antonioya
b49699b1ec GP: Enable center for Local Origins only
This produces very interesting effects when move using proportional editing.
2018-12-20 19:32:22 +01:00
Antonioya
cb95d20595 GP: Undo center calculation
This is breaking the transformation with falloff enabled.
2018-12-20 19:15:01 +01:00
Antonioya
9ebd309e2b GP: Change default parameters for convert curves.
Now the link strokes is disabled by default.

Also some minor changes to adapt to new GP object.
2018-12-20 17:35:59 +01:00
Antonioya
545f3f1728 Fix T59648: Linking material to greasepencil object causes crash 2018-12-20 17:14:03 +01:00
Antonioya
36121a1bdc GP: Changes in API to make internal update
Now, the internal data is recalculated when add or remove a point.

The change in the API affect to stroke.points.add() that now requires a datablock parameter. This parameter is required to identify the datablock affected.

For example:  stroke.points.add(gpencil, 1) instead of  stroke.points.add(1)

This is the second try to fix T59600
2018-12-20 16:52:42 +01:00
Jacques Lucke
8095e660c0 Fix T59672: UVs are not updating when changed in panel
Reviewers: brecht

Differential Revision: https://developer.blender.org/D4111
2018-12-20 13:40:36 +01:00
Antonioya
30dea81fb6 Revert "GP: New Python update API functions (WIP)"
This reverts commit e79f401ffa.

The new API were against general design rules.
2018-12-20 13:38:51 +01:00
Sebastian Parborg
a8103a0256 Fix T59083: normal transform orientation ignores absolute grid snap.
Absolute grid snap now takes into account the transform local axis.

Differential Revision: https://developer.blender.org/D4069
2018-12-20 12:49:59 +01:00
Antonioya
e79f401ffa GP: New Python update API functions (WIP)
For strokes:

myframe.strokes.update(mystroke)

For datablock:

gpencil = bpy.data.grease_pencil['gpencil']
gpencil.update()

Still need a manual refresh of viewport.
2018-12-20 12:37:12 +01:00
Jacques Lucke
c02f67fa8a Fix T57777: Decimate modifier face count does not work
Reviewers: brecht

Differential Revision: https://developer.blender.org/D4106
2018-12-20 11:17:45 +01:00
Jacques Lucke
ae028ef206 Fix T57045: Unhandled degenerate case in bevel code
Reviewers: howardt

Differential Revision: https://developer.blender.org/D4104
2018-12-20 10:58:50 +01:00
Jacques Lucke
b047866459 Fix T58404: Node/Socket grabbing with Lasso tool
Reviewers: brecht

Differential Revision: https://developer.blender.org/D4108
2018-12-20 10:55:30 +01:00
Campbell Barton
7d8f57e0c0 Correct own error in 1ce9a142b6
Enum for scene orientations included default.
2018-12-20 18:18:42 +11:00
Campbell Barton
d5f87bdde6 Merge branch 'master' into blender2.8 2018-12-20 17:53:12 +11:00
Campbell Barton
f7d216c1b6 Fix T59074: BMesh intersect hangs
This is a degenerate intersection, exit early instead of hanging.
2018-12-20 17:50:36 +11:00
Campbell Barton
320e7f5322 Cleanup: naming 2018-12-20 17:34:30 +11:00
Campbell Barton
669b23daed Tool System: default node editor to select tool
With box select you can't cut-links with RMB select.
2018-12-20 14:26:50 +11:00
Campbell Barton
5921656655 Merge branch 'master' into blender2.8 2018-12-20 12:24:37 +11:00
Campbell Barton
306bc5fd1a PyAPI: don't truncate enums in exception messages
Not necessary and confusing when only some of the items are displayed.

See: T59044
2018-12-20 12:20:34 +11:00
Campbell Barton
91240f15c5 UI: add UILayout.direction
Read only attribute, needed for introspection.
2018-12-20 11:59:31 +11:00
Campbell Barton
756be8f4d8 UI: add method to draw menu contents
This supports expanding menu contents into an existing layout.

Needed to fix T58937.
2018-12-20 11:33:08 +11:00
Campbell Barton
a91886e76e Fix possible key collision w/ BKE_id_to_unique_string_key
BKE_id_full_name_get doesn't ensure unique output, use a simple
method to create a unique key, guaranteed not to collide.
2018-12-20 09:35:46 +11:00
Antonioya
ab144437e2 Fix T59579: Grease Pencil copy buffer loses material information 2018-12-19 22:57:03 +01:00
Clément Foucault
a9706476e3 Mesh Batch Cache: Fix uninitialized loop variable 2018-12-19 22:56:15 +01:00
Campbell Barton
c0e6cbadfc Fix crash clicking on trackball widget
Missing check in newly added gizmo orientations.
2018-12-20 08:14:48 +11:00
Campbell Barton
65bc931306 Cleanup: argument wrapping indentation 2018-12-20 08:03:48 +11:00
Campbell Barton
1ce9a142b6 UI: expose gizmo orientation as a single enum
Avoids awkward logic from the popover,
by faking an extra item in the enum.
2018-12-20 07:46:06 +11:00
Sebastian Parborg
2bc27d3dc5 Fix T59391: Crash snapping to active 2018-12-20 06:51:28 +11:00
Sebastian Parborg
90e253d974 Fix T59387: Axis target crash 2018-12-20 06:33:55 +11:00
Antonioya
205b0d4651 GP: Fix error drawing on Camera view for Surface/Stroke
This bug was introduced fixing task T59595
2018-12-19 19:50:28 +01:00
Charlie Jolly
a8198e6fbf GP: Primitive: Add MMB to confirm
Based on GP team feedback
2018-12-19 17:39:37 +00:00
mano-wii
ad7dd7d8e2 Fix (unreported): Wireframe fails in the sculpt mode on some AMD GPUs. 2018-12-19 13:26:32 -02:00
Antonioya
1fc75dbbce Fix T59595: Grease Pencil and CameraView
The perspective effect deformed the stroke. Now when you are in camera view and the lock axis is not enabled, the stroke is reprojected flat over the view to remove any deformation.

Also fixed reproject operator to use the origin set in topbar and not cursor 3D always.
2018-12-19 17:09:30 +01:00
Bastien Montagne
d9ac4653e7 Fix T59574: Prop_search fails to set objects from scene.
Another case where editstr from search button would be used, when we
actually have desired pointer itself already available in button.

Am growing tired of doing bandaids fixes on that search menu stuff,
whole thing would require some real re-coding imho, to get rid of that
tantacular dependency over string 'identifier' only (when we should also
have access to at the very least, the active index, and also probably
active data pointer itself...).
And/or clearly separate string identifier from 'UI' string shown to user.
2018-12-19 17:02:55 +01:00
Jacques Lucke
be98fcc6e2 Fix T59273: Text object disappears when Fill Mode is set to None
Reviewers: fclem

Differential Revision: https://developer.blender.org/D4103
2018-12-19 15:56:15 +01:00
Sergey Sharybin
4563849c1b Fixes for particle system and physics
- Silence harmless error print about relation.

  Object with particle system which doesn't use physics will
  not have point cache component.

- Tag relations for update when particle system physics type
  change.

  This ensures correct state of point cache component.

This is all part of T59258.
2018-12-19 15:36:09 +01:00
Sergey Sharybin
259879e135 Fix T58739: Camera Location, keyframe Bug
This was originally caused by fix for T53788. Not sure why extra
`where_is` is needed there, the object is supposed to be evaluated
already.
2018-12-19 15:02:49 +01:00
Alexander Gavrilov
d211c9aa0a BLI_bitmap: add functions operating on the whole bitmask.
There is no point having operations that iterate over the whole
bit array as macros, so convert BLI_BITMAP_SET_ALL to a function.
Also, add more utilities for copying and manipulating masks.

Reviewers: brecht, campbellbarton

Differential Revision: https://developer.blender.org/D4101
2018-12-19 15:53:12 +03:00
Charlie Jolly
dad260c164 GP: Primitive: Fix jitter
Missing vector calculation.
2018-12-19 12:18:45 +00:00
Charlie Jolly
ac8cde69f5 GP: Primitive: Add RMB behaviour to Grab/Move 2018-12-19 12:18:45 +00:00
Campbell Barton
2af0ec9457 UI: move gizmo orientation settings into popover
Instead of link toggle with enum, use a single popover that contains
both settings. The code for this isn't nice - needing 3x panels for now.

See D4075
2018-12-19 22:45:36 +11:00
Philipp Oeser
25fcb44d2d Merge branch 'master' into blender2.8 2018-12-19 12:38:31 +01:00
Philipp Oeser
684898cfbf Fix Proportional Edit Projected 2D method skiped center calculation
rBa520e7c85c83 defined T_OVERRIDE_CENTER(1 << 25)
which was already in use T_PROP_PROJECTED(1 << 25)
thus skipping center calculation

Fixes T58882, T59518

Reviewers: campbellbarton, brecht

Maniphest Tasks: T58882, T59518

Differential Revision: https://developer.blender.org/D4100
2018-12-19 12:33:11 +01:00
Clément Foucault
1a7fe54a85 Fix T59578: enabling "vertex group weights" in edit mode results in crash 2018-12-19 12:32:13 +01:00
Alexander Gavrilov
61c941f040 RNA: support setting default values for custom properties.
NLA requires a usable default value for all properties that
are to be animated via it, without any exceptions. This is
the real cause of T36496: using the default of 0 for a scale
related custom property obviously doesn't work.

Thus, to really fix this it is necessary to support configurable
default values for custom properties, which are very frequently
used in rigs for auxiliary settings. For common use it is enough
to support this for scalar float and integer properties.

The default can be set via the custom property configuration
popup, or a right click menu option. In addition, to help in
updating old rigs, an operator that saves current values as
defaults for all object and bone properties is added.

Reviewers: campbellbarton, brecht

Differential Revision: https://developer.blender.org/D4084
2018-12-19 14:20:35 +03:00
Sergey Sharybin
908a274240 Fix T59237: Instancing on a path doesn't do anything
This commit makes it so curve path parent solving accepts an explicit
arguments for both time and curve speed flag, making it so we don't
have to mock around with scene's frame.

One unfortunate issue still is that if the instancing object is used
for something else, we might be running into a threading conflict.
Possible solution would be to create a temp copy of an object, but
then it will be an issue of preventing drivers from modifying other
datablocks.

At least the original issue is fixed now, and things behave same as
in older Blender version. Additionally, the global variable which
was defining curve speed flag behavior is gone now!
2018-12-19 11:59:47 +01:00
Philipp Oeser
bc8f2e9ee4 Fix T59500: Weight Smoothing Not Working
Reviewers: brecht, dfelinto

Maniphest Tasks: T59500

Differential Revision: https://developer.blender.org/D4094
2018-12-19 11:51:49 +01:00
Campbell Barton
1a21c0c239 UI: show panel type in Python tooltips
Handy when editing UI scripts.
2018-12-19 21:49:04 +11:00