diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-03-26 06:26:17 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-03-26 06:26:17 +0300 |
commit | c60f291b647f8d8f5942389718bf6312781a1e34 (patch) | |
tree | 54ccd8987cffc3ef613b97e03ab9ae09dc12dcc8 /source | |
parent | 386e97f73a891f7162cc578d05cf5720ef51df14 (diff) |
#21728: Grease pencil at cursor gives wrong results when the object is not at location 0,0,0.
Removed some code that I never finished working on to try and make the sketches get added relative to the owner. Perhaps will come back to that someday, but maybe we can just do without.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_paint.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index e8c42afe00a..59c9150fc14 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -161,7 +161,9 @@ static void gp_get_3d_reference (tGPsdata *p, float *vec) float *fp= give_cursor(p->scene, v3d); /* the reference point used depends on the owner... */ - if (p->ownerPtr.type == &RNA_Object) { +#if 0 // XXX: disabled for now, since we can't draw relative ot the owner yet + if (p->ownerPtr.type == &RNA_Object) + { Object *ob= (Object *)p->ownerPtr.data; /* active Object @@ -169,7 +171,9 @@ static void gp_get_3d_reference (tGPsdata *p, float *vec) */ sub_v3_v3v3(vec, fp, ob->loc); } - else { + else +#endif + { /* use 3D-cursor */ copy_v3_v3(vec, fp); } |