Blender Git Commit Log

Git Commits -> Revision 4d99df8

January 30, 2018, 06:04 (GMT)
GP Add Primitives: De-duplicate code

Most of the logic in gp_primitive_rectangle() and gp_primitive_circle()
was duplicated, and responsible for performing space-conversion stuff
on the 2d/screen-space coordinates.

This commit properly separates out these concerns, de-duplicating
code, and fixing a few other minor issues at the same time
(e.g. superfluous copies, and "edges" not getting initialised properly)

Commit Details:

Full Hash: 4d99df8a9bbfc3f38b5d2463342d7f97b4bd4e07
Parent Commit: de29d5f
Lines Changed: +76, -98

1 Modified Path:

/source/blender/editors/gpencil/gpencil_primitive.c (+76, -98) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021