Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-05-06 03:25:12 +0400
committerJoshua Leung <aligorith@gmail.com>2009-05-06 03:25:12 +0400
commit8858546ab4786dbd044c5717a926440a8a839df5 (patch)
tree61b89d32fd2b4c5272826d0714089ba228a722c3 /source/blender/editors/gpencil
parent405cf80eb8dc2df8ae160aee70aef34052add24a (diff)
2.5 - Scons compiling fix for BDiego's commit
Was missing includes for blenfont module in a few places.
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/drawgpencil.c2
-rw-r--r--source/blender/editors/gpencil/editaction_gpencil.c6
-rw-r--r--source/blender/editors/gpencil/gpencil_edit.c16
3 files changed, 8 insertions, 16 deletions
diff --git a/source/blender/editors/gpencil/drawgpencil.c b/source/blender/editors/gpencil/drawgpencil.c
index 5c6294022ee..e5868338f75 100644
--- a/source/blender/editors/gpencil/drawgpencil.c
+++ b/source/blender/editors/gpencil/drawgpencil.c
@@ -872,6 +872,7 @@ static void gp_draw_data (bGPdata *gpd, int offsx, int offsy, int winx, int winy
glDisable(GL_LINE_SMOOTH); // smooth lines
/* show info for debugging the status of gpencil */
+#if 0
if ( ((dflag & GP_DRAWDATA_NOSTATUS)==0) && (gpd->flag & GP_DATA_DISPINFO) ) {
char printable[256];
short xmax;
@@ -908,6 +909,7 @@ static void gp_draw_data (bGPdata *gpd, int offsx, int offsy, int winx, int winy
BLF_draw_default(winx-xmax, winy-20, 0.0f, printable);
}
}
+#endif
/* restore initial gl conditions */
glLineWidth(1.0);
diff --git a/source/blender/editors/gpencil/editaction_gpencil.c b/source/blender/editors/gpencil/editaction_gpencil.c
index 8be56dc416e..beb4ed06810 100644
--- a/source/blender/editors/gpencil/editaction_gpencil.c
+++ b/source/blender/editors/gpencil/editaction_gpencil.c
@@ -66,6 +66,8 @@
#include "gpencil_intern.h"
+#if 0 // XXX disabled until grease pencil code stabilises again
+
/* XXX */
static void actdata_filter() {} // is now ANIM_animdata_filter()
static void BIF_undo_push() {}
@@ -505,7 +507,8 @@ void paste_gpdata (Scene *scene)
ScrArea *sa;
/* get area that gp-data comes from */
- sa= gpencil_data_findowner((bGPdata *)ale->owner);
+ //sa= gpencil_data_findowner((bGPdata *)ale->owner);
+ sa = NULL;
/* this should be the right frame... as it may be a pre-existing frame,
* must make sure that only compatible stroke types get copied over
@@ -736,3 +739,4 @@ void mirror_gplayer_frames (bGPDlayer *gpl, Scene *scene, short mode)
}
/* ***************************************** */
+#endif // XXX disabled until Grease Pencil code stabilises again...
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c
index d84b93267a6..bad86c170ab 100644
--- a/source/blender/editors/gpencil/gpencil_edit.c
+++ b/source/blender/editors/gpencil/gpencil_edit.c
@@ -522,6 +522,7 @@ static void gp_stroke_to_bonechain (bGPDlayer *gpl, bGPDstroke *gps, bArmature *
}
/* convert a given grease-pencil layer to a 3d-curve representation (using current view if appropriate) */
+// XXX depreceated... we now have etch-a-ton for this...
static void gp_layer_to_armature (bGPdata *gpd, bGPDlayer *gpl, Scene *scene, View3D *v3d, short mode)
{
bGPDframe *gpf= gpencil_layer_getframe(gpl, scene->r.cfra, 0);
@@ -620,21 +621,6 @@ void gpencil_convert_operation (short mode)
BIF_undo_push("GPencil Convert");
}
-/* display a menu for converting grease-pencil strokes */
-void gpencil_convert_menu (void)
-{
- bGPdata *gpd= gpencil_data_getactive(NULL);
- short mode;
-
- /* only show menu if it will be relevant */
- if (gpd == NULL) return;
-
- mode= pupmenu("Grease Pencil Convert %t|Active Layer To Path%x1|Active Layer to Bezier%x2|Active Layer to Armature%x3");
- if (mode <= 0) return;
-
- gpencil_convert_operation(mode);
-}
-
/* ************************************************** */
/* GREASE-PENCIL EDITING MODE - Painting */