Blender Git Loki

Blender Git "temp-greasepencil-vfx" branch commits.

Page: 61 / 145

February 1, 2018, 15:22 (GMT)
Cleanup: Define a shared poll method for edit 3D
February 1, 2018, 15:22 (GMT)
Cleanup: Remove unnecessary flags and fix typo
February 1, 2018, 15:22 (GMT)
New Separate operator

This operator works similar to mesh separate operator, but for grease pencil strokes.

Two options:

a) Selected Strokes
b) Active Layer
February 1, 2018, 07:38 (GMT)
Move int <-> float 2d vector funcs from GP code to Math Lib

We now have the following two new functions:
* copy_v2fl_v2i(float r[2], const int a[2]) <-- Copies 2D int vector to float vector
* round_v2i_v2fl(int r[2], const float a[2]) <-- Copies 2D float vector to int vector, by rounding the values
January 31, 2018, 09:17 (GMT)
Merge branch 'blender2.8' into greasepencil-object
January 31, 2018, 05:58 (GMT)
Cleanup: Use standard mathlib functions here, instead of inlined pointer magic/etc.
January 31, 2018, 05:32 (GMT)
More self-contained fix for previous commit
January 31, 2018, 05:30 (GMT)
Cleanup: Various fixes

* Remove redundant operations (e.g. extra copies of data)

* Remove duplicate functions (e.g. vector copying, for non-floats)
TODO: We still have copy_v2int_v2float() and copy_v2float_v2int()
to fix (i.e. rename + move to BLI_math.h)

* Cleanup redundant struct forward defs in headers (including some duplicates)

* Hacky fix for compiler warning in gpencil_colorpick.c (about const vs non-const)
UI_FSTYLE_WIDGET is const, but UI_text_clip_middle_ex() needs non-const
January 31, 2018, 04:27 (GMT)
Cleanup: More simple fixes
January 31, 2018, 04:22 (GMT)
Cleanup: Style fixes
January 31, 2018, 04:06 (GMT)
Cleanup: Move ED_gpencil_stroke_minmax() to blenkernel

The rest of the boundbox/minmax code is already there. We might as well
have the function for grabbing this info from a single stroke there too.
January 31, 2018, 02:50 (GMT)
Cleanup: Reshuffling order of code in file

In future: Keep related code together, instead of just dumping
it "wherever" (aka at the end of the file, since it's most
convenient right now)

(In the process, I've ended up flagging a few pieces of code
for further investigation. They likely duplicate some code
elsewhere in other modules)
January 31, 2018, 01:23 (GMT)
Cleanup: Prefix all exported functions with module prefix
January 31, 2018, 01:21 (GMT)
Cleanup: Fix mixed use of tab/space whitespace
January 31, 2018, 01:10 (GMT)
Cleanup: Move private/internal operator state data out of public header for GPencil module

This commit moves the defines for several modal operators
(Interpolate, Fill, and Add Primitives) out of the editors/gpencil
module's public headerfile ("ED_gpencil.h") into the module's
internal headerfile ("gpencil_intern.h").

We should not be spraying the internal implementation details of
operators in public headers. In this case, these defines weren't
even being used outside of the gpencil module - they were only
put in a header so that drawgpencil.c (which lives in the same
module) could access this data (and even then, I wonder those
callbacks need access to everything).

Note: I couldn't get rid of the ED_numinput.h include in the header
yet, as several of the operators define NumInput members inline.
January 30, 2018, 16:45 (GMT)
Fix error in fill stroke thickness

To avoid gaps, the thickness of the internal strokes must be reduced, but the previous code only worked when the factor was different of 0.
January 30, 2018, 16:18 (GMT)
Merge branch 'blender2.8' into greasepencil-object
January 30, 2018, 16:18 (GMT)
Rename "lazy Mouse" to "Stabilizer"

Also changed "Radius" to "Distance"

Thanks Pablo Vazquez for the feedback.
January 30, 2018, 08:52 (GMT)
Merge branch 'blender2.8' into greasepencil-object
January 30, 2018, 06:04 (GMT)
GP Add Primitives: Attempted fix for double-clicking on the toolbar button

Check for what type of mouse-press it was, instead of just assuming
that the clicks are what we think they are.

Note: If things still go wrong, there's also now a debug-print there
(debug-mode only) to help track things down.
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021