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:
authorCampbell Barton <ideasman42@gmail.com>2011-03-15 11:38:08 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-15 11:38:08 +0300
commit2bd375dd5214ac09a14f53733faea0f58397ae7f (patch)
tree0cbf635a64e0c332832ca890fd641a1689e44b4d /source/blender/editors/screen
parentb65a56ccb52e656cbdc9033180c26fb56d5c5ffd (diff)
fix for crash with textbox add poll function, missing NULL check.
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r--source/blender/editors/screen/screen_ops.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c
index 0c3a430089f..72cc4a48105 100644
--- a/source/blender/editors/screen/screen_ops.c
+++ b/source/blender/editors/screen/screen_ops.c
@@ -282,6 +282,12 @@ int ED_operator_object_active_editable_mesh(bContext *C)
return ((ob != NULL) && !(ob->id.lib) && !(ob->restrictflag & OB_RESTRICT_VIEW) && ob->type == OB_MESH);
}
+int ED_operator_object_active_editable_font(bContext *C)
+{
+ Object *ob = ED_object_active_context(C);
+ return ((ob != NULL) && !(ob->id.lib) && !(ob->restrictflag & OB_RESTRICT_VIEW) && ob->type == OB_FONT);
+}
+
int ED_operator_editmesh(bContext *C)
{
Object *obedit= CTX_data_edit_object(C);