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:
Diffstat (limited to 'source/blender/editors/curve')
-rw-r--r--source/blender/editors/curve/CMakeLists.txt9
-rw-r--r--source/blender/editors/curve/editfont.c7
2 files changed, 11 insertions, 5 deletions
diff --git a/source/blender/editors/curve/CMakeLists.txt b/source/blender/editors/curve/CMakeLists.txt
index ab45d73a2de..8e47dc9c264 100644
--- a/source/blender/editors/curve/CMakeLists.txt
+++ b/source/blender/editors/curve/CMakeLists.txt
@@ -19,8 +19,6 @@
#
# ***** END GPL LICENSE BLOCK *****
-FILE(GLOB SRC *.c)
-
SET(INC
../include
../../blenkernel
@@ -31,4 +29,11 @@ SET(INC
../../../../intern/guardedalloc
)
+SET(SRC
+ curve_ops.c
+ editcurve.c
+ editfont.c
+ lorem.c
+)
+
BLENDERLIB(bf_editor_curve "${SRC}" "${INC}")
diff --git a/source/blender/editors/curve/editfont.c b/source/blender/editors/curve/editfont.c
index 44a664b5f30..13678b0dfe5 100644
--- a/source/blender/editors/curve/editfont.c
+++ b/source/blender/editors/curve/editfont.c
@@ -1696,7 +1696,8 @@ static int open_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
cu = ob->data;
font = cu->vfont;
}
- path = (font && font->name)? font->name: U.fontdir;
+ printf("%s\n", font->name);
+ path = (font && strcmp(font->name, FO_BUILTIN_NAME) != 0)? font->name: U.fontdir;
if(RNA_property_is_set(op->ptr, "filepath"))
return open_exec(C, op);
@@ -1737,7 +1738,7 @@ static int font_unlink_poll(bContext *C)
if (ob->type != OB_FONT) return 0;
cu = ob->data;
- if (cu && strcmp(cu->vfont->name, "<builtin>")==0) return 0;
+ if (cu && strcmp(cu->vfont->name, FO_BUILTIN_NAME)==0) return 0;
return 1;
}
@@ -1755,7 +1756,7 @@ static int font_unlink_exec(bContext *C, wmOperator *op)
return OPERATOR_CANCELLED;
}
- if (strcmp(font->name, "<builtin>")==0) {
+ if (strcmp(font->name, FO_BUILTIN_NAME)==0) {
BKE_report(op->reports, RPT_WARNING, "Can't unlink the default builtin font.");
return OPERATOR_FINISHED;
}