Fix crash introduced w/ snap refactor
Create snapping context when in the 3d view, transforming pose bones and grease-pencil crashed.
This commit is contained in:
@@ -596,7 +596,6 @@ static void initSnappingMode(TransInfo *t)
|
||||
t->tsnap.mode = SCE_SNAP_MODE_INCREMENT;
|
||||
}
|
||||
|
||||
if (t->flag & (T_OBJECT | T_EDIT)) {
|
||||
if (t->spacetype == SPACE_VIEW3D) {
|
||||
if (t->tsnap.object_context == NULL) {
|
||||
t->tsnap.object_context = ED_transform_snap_object_context_create_view3d(
|
||||
@@ -612,7 +611,6 @@ static void initSnappingMode(TransInfo *t)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void initSnapping(TransInfo *t, wmOperator *op)
|
||||
{
|
||||
|
Reference in New Issue
Block a user