Fix #33522: Crash when "rotate arond selection" is on, and when no object in scene

Own regression in recent fix
This commit is contained in:
2012-12-13 20:07:16 +00:00
parent ae2a9a6e7a
commit fd755d2550

View File

@@ -435,7 +435,7 @@ static void viewops_data_create(bContext *C, wmOperator *op, wmEvent *event)
Scene *scene = CTX_data_scene(C);
Object *ob = OBACT;
if (ob->mode & OB_MODE_ALL_PAINT) {
if (ob && ob->mode & OB_MODE_ALL_PAINT) {
/* transformation is disabled for painting modes, which will make it
* so previous offset is used. This is annoying when you open file
* saved with active object in painting mode