Page MenuHome

GPencil: Add surface normal entry to bGPDspoint.
ClosedPublic

Authored by YimingWu (NicksBest) on Jun 9 2021, 7:31 AM.

Details

Summary

Does what it says. Also modified existing utility functions to take care of the new surface normal interpolation and so on.

Diff Detail

Repository
rB Blender

Event Timeline

YimingWu (NicksBest) requested review of this revision.Jun 9 2021, 7:31 AM
YimingWu (NicksBest) created this revision.

In general the patch LGTM., just my concern about variable name. Waiting for @Sebastian Parborg (zeddb) opinion before approve the patch.

source/blender/makesdna/DNA_gpencil_types.h
102–103

Remove extra blank line

source/blender/makesrna/intern/rna_gpencil.c
1297

Not totally sure if we must name the variable surface_normal. If we are going to use only for this is ok, but if we want use it in the future for more things, maybe would be vec_normalor something like that.

@Sebastian Parborg (zeddb) waht do you think?

Rename surface_normal to custom_vector

YimingWu (NicksBest) marked 2 inline comments as done.

Fix empty new line in DNA.

This revision is now accepted and ready to land.Jun 9 2021, 4:41 PM