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:
authorMartin Poirier <theeth@yahoo.com>2009-08-10 02:22:40 +0400
committerMartin Poirier <theeth@yahoo.com>2009-08-10 02:22:40 +0400
commit8512b30d31e84ff20d4d25c3e3f52f388af9d369 (patch)
tree480c285fa138dbabcbbd3b3fe65d2107e3f03943 /source/blender/editors/armature
parent6c5c58e05799f2b593cd81fcff57e6ef72ad57fb (diff)
fix crash caused by stroke selection
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r--source/blender/editors/armature/editarmature_sketch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/armature/editarmature_sketch.c b/source/blender/editors/armature/editarmature_sketch.c
index f3f7bccde04..ce3bcc8aed5 100644
--- a/source/blender/editors/armature/editarmature_sketch.c
+++ b/source/blender/editors/armature/editarmature_sketch.c
@@ -2466,8 +2466,10 @@ static int sketch_delete(bContext *C, wmOperator *op, wmEvent *event)
void BIF_sk_selectStroke(bContext *C, short mval[2], short extend)
{
+ ToolSettings *ts = CTX_data_tool_settings(C);
SK_Sketch *sketch = contextSketch(C, 0);
- if (sketch)
+
+ if (sketch != NULL && ts->bone_sketching & BONE_SKETCHING)
{
sk_selectStroke(C, sketch, mval, extend);
}