Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
There were some problems when converted several objects at the same time, especially with the material conversion. The problems were more visible when bake an animation with several objects at the same time.
* Now the layer name include the object name.
* Reorganize how the materials are generated including object name.
* Fix color not converted to sRGB.
* Avoid triangles when generate the stroke. This fix a draw manager issue and also add more geometry to use later.
* Code cleanup.
|
|
The Eraser Point mode was erasing too much points.
This eraser existed before the new Soft erasers were created and now it was working wrongly. The eraser point mode must remove the points below the eraser cursor at the first contact. For more soft erasers, the new Soft modes can be used.
|
|
|
|
|
|
|
|
|
|
|
|
Conflicts:
source/blender/blenkernel/BKE_gpencil_geom.h
|
|
Sometimes interpolate all frames is not convenient and it's better, for example, interpolate in twos.
The new parameter allows to define the number of frame for each step, by default is set to 1 as before.
{F8812621}
This is a request of animators to improve interpolate tools.
Reviewed By: mendio
Maniphest Tasks: T80190
Differential Revision: https://developer.blender.org/D8723
239b0b
|
|
Also remove capitalization of the term "object".
|
|
|
|
|
|
Some underlying functionality was not ready for greasepencil:
- BKE_modifiers_get_virtual_modifierlist (now introduce dedicated BKE_gpencil_modifiers_get_virtual_modifierlist)
- BKE_modifiers_is_deformed_by_armature
- checks in drawing code
- checks in (pose) selection code
A couple of changes to make this work:
- `eGpencilModifierType_Armature` has to be respected (not only `eModifierType_Armature`)
- `OB_MODE_WEIGHT_GPENCIL` has to be respected (not only `OB_MODE_WEIGHT_PAINT`) -- (now use new `OB_MODE_ALL_WEIGHT_PAINT`)
- `gpencil_weightmode_toggle_exec` now shares functionality from `wpaint_mode_toggle_exec` -- moved to new `ED_object_posemode_set_for_weight_paint`
This patch will also set the context member "weight_paint_object" for greasepencil (otherwise some appropriate pose operators wont work when in weightpaint mode)
Reviewed By: campbellbarton
Maniphest Tasks: T63125
Differential Revision: https://developer.blender.org/D8483
|
|
|
|
|
|
Selecting in empty space wasnt considered as 'changed'.
Differential Revision: https://developer.blender.org/D8770
|
|
Implement the duplicate operator for curve points.
|
|
Conflicts:
source/blender/blenloader/intern/writefile.c
|
|
With the new changes in the Draw Manager, GPU_depth_mask must be set to ON, before clear depth.
|
|
|
|
Conversion to curve was only working for click slection.
This commit adds conversion to curve to box, circle and lasso selection.
|
|
|
|
Use invert_m4_m4_safe_ortho when joining objects so zero scaled axis
doesn't cause all points to be scaled to zero.
Instead geometry is left un-scaled on degenerate axes.
Report a warning in this case since users may want to adjust the
active objects scale.
|
|
|
|
|
|
The memory of the stroke is not avaliable after calling `BKE_gpencil_free_stroke` and cannot free the link.
Instead, before calling the free function, remove the link of the listbase.
|
|
Generating the curve for a stroke with one or two strokes could
crash because it was not handled properly.
|
|
|
|
This replace `GPU_clear()` by `GPU_clear_color()` and `GPU_clear_depth()`.
Since we always set the clear value before clearing, it is unecessary
to track the clear color state.
Moreover, it makes it clearer what we clear the framebuffer to.
|
|
|
|
Mistake in b077de086e14. I did the same fix for a few operators there,
but missed the object "Join" one.
The joining operator changes the layer content. So it must send a
notifier for that.
Before b077de086e14 that didn't cause a noticeable issue, because the
Outliner happened to listen to other notifiers (active/selection
changes) the operator sent and fully rebuilt its tree in response. Now
missing these notifiers can be more problematic, since we try to avoid
more rebuilds.
Added comments to the notifier types to avoid at least this pitfall.
|
|
|
|
|
|
|
|
|
|
|
|
This patch includes all the changes made in the soc-2020-greasepencil-curve branch.
Major changes:
* Add a new "sub-mode" to grease pencil edit mode called "curve edit mode".
* Grease pencil stroke data structure has a pointer to a grease pencil curve. It will be saved with the stroke to the blend file.
* Most edit mode operators have been changed to work in curve edit mode.
* Transformation code has been adjusted to work for grease pencil curves.
* New source file added (gpencil_edit_curve.c) for operators exclusive to curve edit mode.
Differential Revision: https://developer.blender.org/D8660
|
|
|
|
|
|
|
|
|
|
We now use GPU_blend for enabling / disabling blending and explicitly
set the blend equation.
|
|
|
|
Conflicts:
source/blender/editors/gpencil/gpencil_edit.c
|
|
Reviewers: sergey
Differential Revision: https://developer.blender.org/D8613
|
|
|
|
This parameter allows the user to control at what angle corners are
detected and considered by the fitting algorithm.
|