[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27760] trunk/blender/source/blender/ editors/gpencil/gpencil_paint.c: #21728: Grease pencil at cursor gives wrong results when the object is not at location 0 , 0, 0.
Joshua Leung
aligorith at gmail.com
Fri Mar 26 04:26:19 CET 2010
Revision: 27760
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27760
Author: aligorith
Date: 2010-03-26 04:26:17 +0100 (Fri, 26 Mar 2010)
Log Message:
-----------
#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.
Modified Paths:
--------------
trunk/blender/source/blender/editors/gpencil/gpencil_paint.c
Modified: trunk/blender/source/blender/editors/gpencil/gpencil_paint.c
===================================================================
--- trunk/blender/source/blender/editors/gpencil/gpencil_paint.c 2010-03-26 03:10:58 UTC (rev 27759)
+++ trunk/blender/source/blender/editors/gpencil/gpencil_paint.c 2010-03-26 03:26:17 UTC (rev 27760)
@@ -161,7 +161,9 @@
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 @@
*/
sub_v3_v3v3(vec, fp, ob->loc);
}
- else {
+ else
+#endif
+ {
/* use 3D-cursor */
copy_v3_v3(vec, fp);
}
More information about the Bf-blender-cvs
mailing list